Search by

nonsapiens / laravel-app-init

nonsapiens

A migrations-like application initialiser, designed to allow commands and configurations to be run post-deploy

Package info

github.com/nonsapiens/laravel-app-init

pkg:composer/nonsapiens/laravel-app-init

Statistics

Installs: 1 540

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v3.0.0 2026-10-04 07:06 UTC

This package is auto-updated.

Last update: 2026-10-04 07:07:46 UTC


README

An application initialiser that - like migrations - keeps track of on-deploy application commits.

Usage

Run pending initialisation commands:

php artisan app:init

Create a new init class:

php artisan init:create MyInitName
# or, using the alias
php artisan make:init MyInitName

This will create a new file in the inits directory with a timestamped prefix.

Loading inits from packages

Packages can register their own init directories from a service provider:

use Nonsapiens\LaravelAppInit\AppInit;

public function boot(): void
{
    AppInit::loadInitsFrom(__DIR__.'/../../inits');
}

Inits are tracked by file name. When an init of the same name exists in both the application's inits directory and a registered path, the registered (package) copy is run, making the package the source of truth.