Download the PHP package laradic/service-provider without Composer
On this page you can find all versions of the php package laradic/service-provider. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download laradic/service-provider
More information about laradic/service-provider
Files in laradic/service-provider
Package service-provider
Short Description Laravel 5 service provider on steroids. Lots of extras.
License MIT
Homepage https://la.radic.nl
Informations about the package service-provider
Laradic Service Provider
A general support package for the Laravel 5 framework. Laradic Support provides flexible and reusable components of code for commonly used functionality as well as the means to customize the default Laravel 5 folder structure.
The package follows the FIG standards PSR-1, PSR-2, and PSR-4 to ensure a high level of interoperability between shared PHP code.
Quick Installation
Begin by installing the package through Composer.
Documentation
The full documentation can be found here
Quick overview
The code you write in your Service Providers is often very repetative and feels like you've already done so a hundreth times.
Laradic ServiceProvider might just be the thing you where looking for. It's a modular, configurable and very extendable way of creating providers. I think some examples might better explain it.
Examples
Resources Example
A comparison of handling resources.
The "default" way
Use predefined methods inside your register
and/or boot
directory to hook up to the vendor:publish
command.
The "Laradic" way Override properties to define key values.
Of course, it's entirely possible to re-configure paths as well. You don't have to stick to the default directory structure. But that's beyond the scope of this example and can be found in the documentation.
Bindings and Commands Example
The "default" way
The "Laradic" way Override properties to define key values.
or
Again, more variations and options exist which are beyond the scope of this example. Go read the documentation
Register and Boot
The ServiceProvider
does not override existing functionality. Its entirely possible to let it ignore all the xtra stuff.
If you want to use the register
and boot
methods while