Download the PHP package mrfrkayvaz/privata without Composer
On this page you can find all versions of the php package mrfrkayvaz/privata. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mrfrkayvaz/privata
More information about mrfrkayvaz/privata
Files in mrfrkayvaz/privata
Package privata
Short Description A Laravel package that provides tools for masking, anonymizing, and managing personal data to help with privacy compliance.
License MIT
Informations about the package privata
๐ก๏ธ Privata
A comprehensive Laravel package that provides tools for masking, anonymizing, and managing personal data to help with privacy compliance. Privata offers automatic encryption, data masking, and secure storage capabilities for sensitive information.
Features
- ๐ Automatic Encryption: Seamlessly encrypt sensitive data using AES encryption
- ๐ญ Data Masking: Built-in masking for emails, phones, names, and custom data types
- ๐ก๏ธ Privacy Compliance: Help meet GDPR, CCPA, and other privacy regulations
- ๐ง Flexible Configuration: Customizable encryption drivers and masking rules
- ๐ Eloquent Integration: Easy-to-use trait for Laravel models
- ๐งช Well Tested: Comprehensive test suite with Pest PHP
Installation
You can install the package via Composer:
Laravel Auto-Discovery
The package will automatically register itself with Laravel 5.5+.
Manual Registration
If you're using an older version of Laravel, add the service provider to your config/app.php:
And add the facade alias:
Configuration
Publish the configuration file:
Environment Variables
Add these variables to your .env file:
Generate Encryption Key
You can generate a secure encryption key using:
Usage
Basic Encryption/Decryption
Model Integration
Use the Encryptable trait in your Eloquent models:
Database Migration
Create the necessary database columns:
Working with Encrypted Models
Conditional Decryption
Control when data can be decrypted:
Built-in Masks
Email Mask
Phone Mask
String Mask
Custom Masks
Create your own masking classes:
Configuration Options
Encryption Settings
Security Considerations
- Key Management: Store your encryption key securely and never commit it to version control
- Key Rotation: Plan for key rotation if required by your compliance needs
- Access Control: Use the
canDecrypt()method to control when data can be decrypted - Backup Strategy: Ensure encrypted data is included in your backup strategy
Testing
The package includes a comprehensive test suite. Run tests using:
Requirements
- PHP 8.2+
- Laravel 12.0+
- OpenSSL extension
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This package is open-sourced software licensed under the MIT license.
Support
If you find this package useful, please consider starring it on GitHub. For issues and feature requests, please use the GitHub issue tracker.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Made with โค๏ธ for the Laravel community
All versions of privata with dependencies
ext-openssl Version *
illuminate/support Version ^12.0
illuminate/database Version ^12.0