Download the PHP package payamjafari/laravel-db-encrypter without Composer
On this page you can find all versions of the php package payamjafari/laravel-db-encrypter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download payamjafari/laravel-db-encrypter
More information about payamjafari/laravel-db-encrypter
Files in payamjafari/laravel-db-encrypter
Package laravel-db-encrypter
Short Description Provides database model attribute encryption/decryption
License MIT
Informations about the package laravel-db-encrypter
Laravel Db Encrypter Package For Mongodb
This package was created to encrypt and decrypt values of Eloquent model attributes.
🔷 🔷 🔷 🔷
🔷 🔷 🔷 🔷
Works on jenssegers/mongodb now
🔷 🔷 🔷 🔷
🔷 🔷 🔷 🔷
Donnations
If You think this package helped You, please donate. Thank You.
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SPYLWZ8Y5E4JE&source=url
Key features
- Encrypt, decrypt values stored in database fields
- Using standard Laravel's Crypt service
- Easy configuration
Requirements
- Laravel: 6.0 and up
- PHP: 7.1 and newer
Database schema
Encrypted values are stored as plain text so in most cases takes up more spaces then unencrypted one.
Recommendation is to alter table column to TEXT
type.
If you want use VARCHAR
or CHAR
column type still you need to check if encrypted value fit.
Note:
Do not worry if you have current data in your database not encrypted and added column to $encryptable
- they will return as is.
On save values will be encrypted and everything will work fine.
Installation
Via Composer command line:
Usage
- Use the
betterapp\LaravelDbEncrypter\Traits\EncryptableDbAttribute
trait in any Eloquent model that you wish to use encryption - Define a
protected $encryptable
array containing a list of the encrypted attributes.
For example:
- You can use Laravel's original $casts to cast decrypted values
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-db-encrypter with dependencies
laravel/framework Version ^6.0|^7.0|^8.0
jenssegers/mongodb Version >=3.7