PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Laurence Perales   Laravel Composer Update with Zero Downtime   README.md   Download  
File: README.md
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: 1 year ago
Size: 1,078 bytes
 

Contents

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.

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