Download the PHP package ivinteractive/laravel-rotation without Composer

On this page you can find all versions of the php package ivinteractive/laravel-rotation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-rotation

Rotater for Laravel

Latest Version on Packagist Total Downloads Tests Workflow PHPStan Workflow License

Rotater for Laravel is a package for reencrypting your data in case your application's encryption key becomes compromised. By running php artisan rotation:run, the package will generate a new application key and reencrypt all configured database columns using the the new key.

Why choose this package?

While there are other key rotation packages available and you can also implement key rotation functionality manually, there are a number of features that will help key rotation run smoothly:

Installation

You can install the package via composer:

Publish the configuration file:

The configuration file will contain the following:

Usage

The key rotation command will generate a new application key, set the existing application key as the old key in the configuration, and push the batched reencryption jobs to the queue:

The --horizon option will make the call to horizon:terminate instead of queue:restart to make sure that the queued jobs use the recached config.

The --force option will skip a confirmation step that comes before making any changes to the config or pushing any jobs to the queue.

The default behavior of the key rotation command is to put the application in maintenance mode while the reencryption is processing. If the application is down, the queue:work command or the Horizon queue configuration must set the force option to true in order for the reencryption jobs to process.

It is highly recommended to use Horizon, since the reencryption queue configuration should be easier to manage. If using Horizon and remove_old_key is set to true, you should run php artisan horizon:terminate once the reencryption is finished to refresh the config in your queue workers (the horizon:terminate command is only available on the console and cannot be executed programmatically).

By default, the key rotater will use the value of config('app.cipher') for decryption and reencryption. If the cipher is being changed, you can specify that in the config by setting config('rotation.cipher') as an array with old and new keys. This is useful for upgrading the cipher used for encryption in older applications.

Events

The IvInteractive\Rotation\Events\ReencryptionFinished event is fired upon the completion of the batched jobs.

The IvInteractive\Rotation\Listeners\SendFinishedNotification event listener is provided for writing a message to the logs and sending a notification to the configured recipient.

Testing

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-rotation with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^10.0|^11.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ivinteractive/laravel-rotation contains the following files

Loading the files please wait ....