Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Cloud Dlp Laravel Package

google/cloud-dlp

Idiomatic PHP client for Google Cloud Data Loss Prevention (DLP). Inspect, classify, and manage sensitive data using REST or gRPC. Install with Composer via google/cloud-dlp and authenticate with Google Cloud credentials.

View on GitHub
Deep Wiki
Context7

At a glance

Frequently asked questions about Cloud Dlp
What is google/cloud-dlp used for in Laravel applications?
It is the idiomatic PHP client for Google Cloud Data Loss Prevention, so you can inspect, classify, and de-identify sensitive data such as PII, financial records, or healthcare data. In Laravel, it fits workflows like scanning uploaded files, redacting text before storage, and supporting GDPR, HIPAA, or CCPA compliance. It also supports templated redaction and discovery across sources like BigQuery, Cloud Storage, and AWS S3.
How do I install google/cloud-dlp in a Laravel project?
Run composer require google/cloud-dlp in your Laravel project. The package is framework-agnostic, so you can use DlpServiceClient directly or wrap it in a Laravel service provider. For gRPC support you also need the grpc PHP extension and Google's gRPC installation guide; REST over HTTP/1.1 works without it.
How do I authenticate google/cloud-dlp in Laravel?
Create a Google Cloud service account and point the GOOGLE_APPLICATION_CREDENTIALS environment variable at its JSON key, preferably through Laravel's .env and config/services.php. Avoid committing credentials and restrict the service account to only the DLP permissions it needs. Catch Google\ApiCore\ApiException around calls so authentication or quota failures are logged and handled cleanly.
Does google/cloud-dlp work with Laravel queues for large DLP scans?
Yes. DLP operations such as large file scans or batch inspections can exceed typical HTTP timeouts, so dispatch them as Laravel queued jobs. Use chunking, streaming via gRPC where appropriate, and retry with backoff for RESOURCE_EXHAUSTED or other transient errors. Store scan results or job status so you can audit and avoid repeated billable calls.
Which Laravel and PHP versions are supported by google/cloud-dlp?
google/cloud-dlp is a PHP client, not a Laravel package, so it does not publish a Laravel version matrix. It works with Laravel applications that satisfy its Composer PHP and dependency constraints, and it supports both REST and gRPC. Check the package's composer.json and Google Cloud PHP requirements for the exact PHP version, then test against your Laravel version.
How do I redact or de-identify sensitive data with google/cloud-dlp?
Use DlpServiceClient with inspection and de-identification templates to define what to detect and how to transform it, such as masking, replacing, or tokenizing sensitive values. The API supports redaction for text, images, and structured data, and templates make rules reusable across Laravel jobs. Apply the template in your service layer or queued job before persisting or returning the data.
Can google/cloud-dlp inspect data in a local MySQL or PostgreSQL database?
Not directly. Google Cloud DLP natively discovers data in sources such as BigQuery, Cloud Storage, AWS S3, and secrets; for a local MySQL or PostgreSQL database you would typically export data to Cloud Storage or BigQuery first. Alternatively, use InspectContentItem for in-memory scans of individual records, but that is less efficient for large datasets.
How can I test a google/cloud-dlp integration in Laravel without calling the live API?
Keep DLP calls behind an interface or service class and fake that dependency in Laravel tests so you do not call the live, billable API. For integration tests, use a separate Google Cloud project with limited credentials and small sample payloads, and assert on your own response mapping rather than exact DLP output. Unit-test error handling with mocked Google\ApiCore\ApiException cases such as quota or permission failures.
What production concerns should I plan for with google/cloud-dlp in Laravel?
Plan for DLP API quotas, usage-based pricing, and retries with exponential backoff for rate-limit or RESOURCE_EXHAUSTED errors. Large payloads can hit PHP memory limits, so chunk work, stream with gRPC where useful, and queue long scans. Secure service account keys, log audit events, cache or store scan results to reduce repeat costs, and monitor GCP deprecations such as Data Catalog actions.
Is google/cloud-dlp actively maintained, and what alternatives exist for Laravel?
Yes, google/cloud-dlp is GA and part of the google-cloud-php project, with backward-compatibility guarantees for minor and patch releases and support handled through that repository. Alternatives depend on scope: Laravel validation or lighter libraries may be enough for basic format checks, while other cloud DLP services fit multi-cloud compliance needs. For GCP-native sensitive data discovery and enterprise redaction, this client is the direct option.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels