{"id":15659689,"url":"https://github.com/rawilk/laravel-app-key-rotator","last_synced_at":"2025-04-12T08:08:41.577Z","repository":{"id":62533501,"uuid":"281705990","full_name":"rawilk/laravel-app-key-rotator","owner":"rawilk","description":"Rotate app keys around while re-encrypting data.","archived":false,"fork":false,"pushed_at":"2024-07-08T01:55:34.000Z","size":154,"stargazers_count":22,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-12T08:05:19.675Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://randallwilk.dev/docs/laravel-app-key-rotator","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/rawilk.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},"funding":{"github":"rawilk"}},"created_at":"2020-07-22T14:52:44.000Z","updated_at":"2024-09-29T10:06:08.000Z","dependencies_parsed_at":"2024-04-15T03:23:31.614Z","dependency_job_id":"3005bed1-61eb-4383-bba5-cc9f64ec7c2b","html_url":"https://github.com/rawilk/laravel-app-key-rotator","commit_stats":{"total_commits":96,"total_committers":5,"mean_commits":19.2,"dds":"0.29166666666666663","last_synced_commit":"a39ba1cba282c7494d7ef55cf4ddef418f86d415"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":"rawilk/package-skeleton-laravel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rawilk%2Flaravel-app-key-rotator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rawilk%2Flaravel-app-key-rotator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rawilk%2Flaravel-app-key-rotator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rawilk%2Flaravel-app-key-rotator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rawilk","download_url":"https://codeload.github.com/rawilk/laravel-app-key-rotator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248537141,"owners_count":21120709,"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":[],"created_at":"2024-10-03T13:18:14.862Z","updated_at":"2025-04-12T08:08:41.538Z","avatar_url":"https://github.com/rawilk.png","language":"PHP","funding_links":["https://github.com/sponsors/rawilk"],"categories":[],"sub_categories":[],"readme":"# App Key Rotator for Laravel\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/rawilk/laravel-app-key-rotator.svg?style=flat-square)](https://packagist.org/packages/rawilk/laravel-app-key-rotator)\n![Tests](https://github.com/rawilk/laravel-app-key-rotator/workflows/Tests/badge.svg)\n[![Total Downloads](https://img.shields.io/packagist/dt/rawilk/laravel-app-key-rotator.svg?style=flat-square)](https://packagist.org/packages/rawilk/laravel-app-key-rotator)\n[![PHP from Packagist](https://img.shields.io/packagist/php-v/rawilk/laravel-app-key-rotator?style=flat-square)](https://packagist.org/packages/rawilk/laravel-app-key-rotator)\n[![License](https://img.shields.io/github/license/rawilk/laravel-app-key-rotator?style=flat-square)](https://github.com/rawilk/laravel-app-key-rotator/blob/main/LICENSE.md)\n\n![Social image](https://banners.beyondco.de/laravel-app-key-rotator.png?theme=light\u0026packageManager=composer+require\u0026packageName=rawilk%2Flaravel-app-key-rotator\u0026pattern=endlessClouds\u0026style=style_1\u0026description=Rotate+app+keys+around+while+re-encrypting+data.\u0026md=1\u0026showWatermark=0\u0026fontSize=100px\u0026images=refresh)\n\nChanging your `APP_KEY` can be as simple as running `php artisan key:generate`, but what about your encrypted model data? This is where Laravel App Key Rotator comes in. This package can help with generating a new app key for you, as well as decrypting and re-encrypting your model automatically for you through an artisan command.\n\nIt's also generally a good practice to rotate your app keys periodically (e.g. every 6 months) or when certain events happen, such as an employee leaving the company. See more information here: https://tighten.co/blog/app-key-and-you/\n\n## Basic Usage\n\nRotating your app keys is as simple as running this artisan command:\n\n```bash\nphp artisan app-key-rotator:rotate\n```\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require rawilk/laravel-app-key-rotator\n```\n\nYou can publish the config file with:\n\n```bash\nphp artisan vendor:publish --tag=\"app-key-rotator-config\"\n```\n\nYou can view the default configuration file here: https://github.com/rawilk/laravel-app-key-rotator/blob/main/config/app-key-rotator.php\n\n## Documentation\n\nFor documentation, please visit: https://randallwilk.dev/docs/laravel-app-key-rotator\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\n\nIf you discover any security related issues, please email randall@randallwilk.dev instead of using the issue tracker.\n\n## Credits\n\n-   [Randall Wilk](https://github.com/rawilk)\n-   [All Contributors](../../contributors)\n\n## Disclaimer\n\nThis package is not affiliated with, maintained, authorized, endorsed or sponsored by Laravel or any of its affiliates.\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%2Frawilk%2Flaravel-app-key-rotator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frawilk%2Flaravel-app-key-rotator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frawilk%2Flaravel-app-key-rotator/lists"}