{"id":15724045,"url":"https://github.com/venturedrake/laravel-encryptable","last_synced_at":"2025-07-11T13:03:48.524Z","repository":{"id":62543944,"uuid":"310988638","full_name":"venturedrake/laravel-encryptable","owner":"venturedrake","description":"A Laravel package with an encryptable trait to manage encrypting database table fields","archived":false,"fork":false,"pushed_at":"2025-03-20T06:29:46.000Z","size":24,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-15T20:15:12.672Z","etag":null,"topics":["database","database-encryption","database-security","decryption","encryption","encryption-decryption","laravel","laravel-package","security-hardening","security-vulnerabilities"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/venturedrake.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"venturedrake"}},"created_at":"2020-11-08T04:56:05.000Z","updated_at":"2025-03-20T06:28:50.000Z","dependencies_parsed_at":"2024-10-24T17:53:39.545Z","dependency_job_id":"e1b92cb1-90b4-4347-afa8-723a43debda0","html_url":"https://github.com/venturedrake/laravel-encryptable","commit_stats":{"total_commits":22,"total_committers":2,"mean_commits":11.0,"dds":0.4545454545454546,"last_synced_commit":"1dd9e467a2215d7492b5b99377d34e716fb6b6b3"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/venturedrake/laravel-encryptable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/venturedrake%2Flaravel-encryptable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/venturedrake%2Flaravel-encryptable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/venturedrake%2Flaravel-encryptable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/venturedrake%2Flaravel-encryptable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/venturedrake","download_url":"https://codeload.github.com/venturedrake/laravel-encryptable/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/venturedrake%2Flaravel-encryptable/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264815587,"owners_count":23667972,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","database-encryption","database-security","decryption","encryption","encryption-decryption","laravel","laravel-package","security-hardening","security-vulnerabilities"],"created_at":"2024-10-03T22:14:28.993Z","updated_at":"2025-07-11T13:03:48.453Z","avatar_url":"https://github.com/venturedrake.png","language":"PHP","funding_links":["https://github.com/sponsors/venturedrake"],"categories":[],"sub_categories":[],"readme":"# Laravel Encryptable\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/venturedrake/laravel-encryptable.svg?style=flat-square)](https://packagist.org/packages/venturedrake/laravel-encryptable)\n[![Build Status](https://travis-ci.com/venturedrake/laravel-encryptable.svg?branch=master)](https://travis-ci.com/venturedrake/laravel-encryptable)\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/3e78594a3733454e9ebed819debed985)](https://www.codacy.com/gh/venturedrake/laravel-encryptable/dashboard?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=venturedrake/laravel-encryptable\u0026amp;utm_campaign=Badge_Grade)\n[![Total Downloads](https://img.shields.io/packagist/dt/venturedrake/laravel-encryptable.svg?style=flat-square)](https://packagist.org/packages/venturedrake/laravel-encryptable)\n\nAutomatically encrypt and decrypt database table fields.\n\n## Installation\n\nYou can install the package via composer:\n\n``` bash\ncomposer require venturedrake/laravel-encryptable\n```\n\nYou can publish the config file with:\n``` bash\nphp artisan vendor:publish --provider=\"VentureDrake\\LaravelEncryptable\\LaravelEncryptableServiceProvider\" --tag=\"config\"\n```\n\n## Usage\n\nAdd the trait to your model and your encryptable rules.\n``` php\n\u003c?php\n\nnamespace App;\n\nuse Illuminate\\Database\\Eloquent\\Model;\nuse VentureDrake\\LaravelEncryptable\\Traits\\LaravelEncryptableTrait;\n\nclass Person extends Model\n{\n    use LaravelEncryptableTrait;\n    \n    /**\n\t * Laravel Encryptable Rules\n\t *\n\t * @var array\n\t */\n    protected $encryptable = [\n        'first_name',\n        'last_name',\n    ];\n    \n...  \n}\n```\n\nNow when you store, update or read from the model the first_name and last_name fields will automatically be encrypted and decrypted.\n\n## Testing\n\n```bash\ncomposer test\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n- [Andrew Drake](https://github.com/AndrewDrake)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fventuredrake%2Flaravel-encryptable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fventuredrake%2Flaravel-encryptable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fventuredrake%2Flaravel-encryptable/lists"}