alexwijn/laravel-kube-installer

Prepares a Laravel application for a Kubernetes deployment.
1,460
Install
composer require alexwijn/laravel-kube-installer
PHP:>=5.6.0
License:MIT
Last Updated:Aug 28, 2019
Links: GitHub  ·  Packagist
Maintainer: Alex Wijnholds

Laravel Kube Installer

Packagist License Latest Stable Version Total Downloads

This package will add a new command to prepare a Laravel Application for a Kubernetes enviroment with persisten volumes.

Installation

Require this package with composer.

composer require alexwijn/laravel-kube-installer

Laravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.

Laravel 5.5+:

If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php

Alexwijn\KubeInstaller\ServiceProvider::class,

Commands

At the moment we support the following command:

  • kube:compile - Compress the storage folder to be used by the install command later.
  • kube:initialize - This command wil at default migrate the application with seeds and also restore the above storage folder.
  • kube:install - This command will only run the migrations by default.

All of the above commands can be customized by publishing the configuration file for this package.

php artisan vendor:publish --provider=Alexwijn\KubeInstaller\ServiceProvider

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

644,549,754 9,698
laravel/framework

The Laravel Framework.

598,760,099 34,966
laravel/tinker

Powerful REPL for the Laravel framework.

507,193,856 7,441
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

423,477,751 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

403,217,078 4,664