Stars: 127
Forks: 18
Pull Requests: 19
Issues: 11
Watchers: 5
Last Updated: 2022-12-04 19:17:29
📦 Adds Laravel Packages Support to Lumen and Vendor Publish Artisan Command.
License: MIT License
Languages: PHP
Laravel Package Support for Lumen: Makes Lumen compatible with Laravel Packages. You can use any Laravel Packages in Lumen by installing Larasupport Package.
Laravel Packages make use of various global helpers that are not available in Lumen core by default which prevents us from using any Laravel Package in Lumen.
This package adds the missing pieces to make Lumen compatible along with the support for
vendor:publish
artisan command and other features.
You can add the package directly by firing this command
$ composer require irazasyed/larasupport
Add this service provider to your bootstrap/app.php
file.
$app->register(Irazasyed\Larasupport\Providers\ArtisanServiceProvider::class);
Artisan Service Provider is an optional provider required only if you want vendor:publish
command working.
And you're done! You can now start installing any Laravel Package out there :)
These helpers can be used across your Lumen project, not only with Laravel Packages.
Get the fully qualified path to the app
directory.
Get the fully qualified path to the public
directory. You can set env variable PUBLIC_PATH
and it'll return the same instead of the default public
.
Get the fully qualified path to the config
directory (Mostly used with Laravel Packages).
Artisan command to Publish any publishable assets from vendor packages (Required to get Laravel Packages working!).
php artisan vendor:publish
OR
php artisan vendor:publish --provider="Vendor\Providers\PackageServiceProvider"
route_parameter($name, $default = null)
Get a given parameter from the route.
Thank you for considering contributing to the project. Please read the contributing guide before creating an issue or sending in a pull request.
Please read our Code of Conduct before contributing or engaging in discussions.
If you discover a security vulnerability within this project, please email Syed at syed at lukonet.com
. All security vulnerabilities will be promptly addressed. You may view our full security policy here.
Any issues, please report here
The Laravel framework is open-sourced software licensed under the MIT license. Larasupport consists almost entirely of Laravel source code, so maintains the same license. Please see License File for more information.