matthewbdaly/laravel-package-boilerplate
| Install | |
|---|---|
composer require matthewbdaly/laravel-package-boilerplate |
|
| Latest Version: | 1.5.3 |
| License: | MIT |
| Last Updated: | Mar 24, 2023 |
| Links: | GitHub · Packagist |
laravel-package-boilerplate
Boilerplate for Laravel packages. Use it as a starting point for your own Laravel packages.
Includes PHPUnit and PHPCodeSniffer configuration, as well as a known good Travis CI configuration and a couple of base test cases. Uses orchestra/testbench as the basis of the provided base test.
Also includes my Artisan Standalone package as a development dependency. As a result, you should be able to run Artisan commands as follows:
vendor/bin/artisan make:model Example
How do I use it?
Step 1
composer create-project matthewbdaly/laravel-package-boilerplate <YOUR_NEW_PACKAGE_DIRECTORY>
This will generate a starting boilerplate for your app.
Step 2
You'll want to update your composer.json with your required namespace and other details - you can do this by running
vendor/bin/artisan app:name InsertYourProjectNameHere
Test cases
The package includes three test cases:
TestCase- Effectively the normal Laravel test case. Use it the same way you would your normal Laravel test caseSimpleTestCase- Extends the default PHPUnit test case, so it doesn't set up a Laravel application, making it quicker and well-suited to properly isolated unit testsBrowserKitTestCase- Sets up BrowserKit
Related Packages
This package provides a flexible way to add Role-based Permissions to Lumen
Version History
| Version | Released | License |
|---|---|---|
| 1.5.3 | MIT | |
| 1.5.2 | MIT | |
| 1.5.1 | MIT | |
| 1.5.0 | MIT | |
| 1.4.7 | MIT | |
| 1.4.6 | MIT | |
| 1.4.5 | MIT | |
| 1.4.4 | MIT | |
| 1.4.3 | MIT | |
| 1.4.2 | MIT | |
| 1.4.1 | MIT | |
| 1.4.0 | MIT | |
| 1.3.5 | MIT | |
| 1.3.4 | MIT | |
| 1.3.3 | MIT | |
| 1.3.2 | MIT | |
| 1.3.1 | MIT | |
| 1.3.0 | MIT | |
| 1.2.3 | MIT | |
| 1.2.2 | MIT | |
| 1.2.1 | MIT | |
| 1.1.8 | MIT | |
| 1.1.7 | MIT | |
| 1.1.6 | MIT | |
| 1.1.5 | MIT | |
| 1.1.4 | MIT | |
| 1.1.3 | MIT | |
| 1.1.2 | MIT | |
| 1.1.1 | MIT | |
| 1.1.0 | MIT |
Showing the latest 30 of 34. See every release on Packagist