New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

nonsapiens/laravel-app-init

A migrations-like application initialiser, designed to allow commands and configurations to be run post-deploy
1,692
Install
composer require nonsapiens/laravel-app-init
Latest Version:v3.0.0
PHP:8.*
Laravel:11 · 12 · 13
License:MIT
Last Updated:Oct 4, 2026
Links: GitHub  ·  Packagist
Maintainer: nonsapiens

laravel-app-init

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.

Related Packages

doctrine/dbal

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

648,266,899 9,701
laravel/framework

The Laravel Framework.

604,216,237 34,982
laravel/tinker

Powerful REPL for the Laravel framework.

512,508,631 7,443
laravel/serializable-closure

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

429,221,767 607
nunomaduro/collision

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

403,217,078 4,664

Version History

Version Released PHP Laravel License
v3.0.0 8.* 11.*|12.*|13.* MIT
v2.1.2 8.* 11.*|12.*|13.* MIT
v2.1.1 8.* 11.*|12.*|13.* MIT
v2.1.0 8.* 11.*|12.* MIT
v2.0.3 8.* 11.*|12.* MIT