edram / laravel-package
Laravel package template
0.0.2
2026-07-10 08:37 UTC
Requires
- php: ^8.3
- illuminate/contracts: ^12.0 || ^13.0
- illuminate/support: ^12.0 || ^13.0
Requires (Dev)
- larastan/larastan: ^3.0
- laravel/pint: ^1.24
- orchestra/testbench: ^10.0 || ^11.0
- pestphp/pest: ^4.0
- pestphp/pest-plugin-laravel: ^4.0
This package is auto-updated.
Last update: 2026-07-10 08:39:08 UTC
README
A reusable Laravel package foundation for building Edram Laravel extensions.
Installation
Install the package via Composer:
composer require edram/laravel-package
Publish the configuration file:
php artisan vendor:publish --tag="laravel-package-config"
Publish the migrations:
php artisan vendor:publish --tag="laravel-package-migrations"
php artisan migrate
Usage
Resolve the package from the container:
use Edram\LaravelPackage\LaravelPackage; $laravelPackage = app(LaravelPackage::class); echo $laravelPackage->echoPhrase('Hello, Laravel!');
Use the facade:
use Edram\LaravelPackage\Facades\LaravelPackage; echo LaravelPackage::echoPhrase('Hello, Laravel!');
Run the package command:
php artisan laravel-package
Development
Run the test suite:
composer test
Run static analysis:
composer analyse
Format the code:
composer format
License
The MIT License (MIT). Please see License File for more information.