Looking to hire Laravel developers? Try LaraJobs

laravel-composer maintained by jaguarsoft

Description
Update composer with zero downtime
Author
Last update
2022/08/26 10:44 (dev-master)
License
Links
Downloads
632
Tags

Comments
comments powered by Disqus

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.

Installation

1. Composer Install

composer require jaguarsoft/laravel-composer

2. Add Service Provider in config/app.php

'providers' => [

    /*
    * Application Service Providers...
    */

    JaguarSoft\LaravelComposer\ServiceProvider::class,
],

3. Publish Vendor

php artisan vendor:publish

This will create a ./vendor-update/.gitignore file for the directory used to update in background.

Usage

Run artisan command

php artisan composer:update

Support

Pacakge tested on Laravel 5.2, 5.3.

For help or suggestions, mail me to laurence@jaguarsoft.pe