This repository provides a minimal Laravel package skeleton with some batteries included.
Based on php-package-skeleton template.
You can install the package via composer:
composer require plakhin/laravel-package-skeleton
Then you need to publish and run package migrations:
php artisan vendor:publish --tag="skeleton-migrations"
php artisan migrate
Then you may optionally publish the config file, translations, views and assets with:
php artisan vendor:publish --tag="skeleton-config"
php artisan vendor:publish --tag="skeleton-translations"
php artisan vendor:publish --tag="skeleton-views"
php artisan vendor:publish --tag="skeleton-assets"
use Plakhin\LPSkeleton\Facades\Skeleton;
Skeleton::foo(); // string(3) "bar"
Contributions are welcome, and are accepted via pull requests. Please review these guidelines before submitting any pull requests.
- Fork the project
- Create a new branch
- Code, test, commit and push
- Open a pull request detailing your changes.
- Please ensure the coding style running
composer lint
. - Please keep the codebase modernized using automated refactors with Rector
composer refactor
. - Send a coherent commit history, making sure each individual commit in your pull request is meaningful.
- You may need to rebase to avoid merge conflicts.
- Please remember to follow SemVer.
composer lint
composer refactor
Run all tests:
composer test
Check code style:
composer test:lint
Check possible code improvements:
composer test:refactor
Check types:
composer test:types
Run Unit tests:
composer test:unit
Please see CHANGELOG for more information on what has changed recently.
The MIT License (MIT). Please see License File for more information.