|Last Updated|| ||Ratings|| ||Unique User Downloads|| ||Download Rankings|
|2022-08-26 (5 months ago) ||Not yet rated by the users||Total: 22 ||All time: 10,808 This week: 171|
This package can update composer packages while an application runs.
It can update packages for a project using composer in a separate working directory so the update may run while the application runs.
In the end, this package can replace the old vendor directory with a new vendor directory created by the composer tool during the current update.
|Composer is a popular tool many PHP developers use to define which packages they need in their projects. The composer tool can install those packages and any other dependent packages.
When a project's packages are updated, the composer tool can retrieve the new versions and update the project environment with those new ones.
Updating a project with new package versions may take a long time if a project is complex and needs many packages with a new version.
Updating a project with the new package versions in a production environment may cause the application to break since the composer cannot update all packages simultaneously.
This package provides an alternative solution to update the new versions of packages of a project in a way that does not cause the application to break.
It creates a new project vendor directory in a working directory. In the end, this package replaces the old vendor directory with the new vendor directory that has the updated versions of the project's packages.
Laravel Composer - Zero Downtime Update
This package provide a composer update process with zero downtime.
Usually when you update composer packages, autoload is removed while the update and your laravel application is not accessible and shows an error when you navigate.
Updating composer packages in background helps you to continue using your laravel application without affects to users.
1. Composer Install
composer require jaguarsoft/laravel-composer
2. Add Service Provider in config/app.php
'providers' => [
* Application Service Providers...
3. Publish Vendor
php artisan vendor:publish
This will create a ./vendor-update/.gitignore file for the directory used to update in background.
Run artisan command
php artisan composer:update
Pacakge tested on Laravel 5.2, 5.3.
For help or suggestions, mail me to firstname.lastname@example.org
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.