PHP Classes


Recommend this page to a friend!
  Classes of Laurence Perales   Laravel Composer Update with Zero Downtime   Download  
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Laravel Composer Update with Zero Downtime
Update composer packages while an application runs
Author: By
Last change:
Date: 9 months ago
Size: 1,078 bytes


Class file image Download

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