Download the PHP package morrislaptop/laravel-five-package-bridges without Composer
On this page you can find all versions of the php package morrislaptop/laravel-five-package-bridges. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download morrislaptop/laravel-five-package-bridges
More information about morrislaptop/laravel-five-package-bridges
Files in morrislaptop/laravel-five-package-bridges
Package laravel-five-package-bridges
Short Description Use your Laravel 4 packages in Laravel 5
License MIT
Informations about the package laravel-five-package-bridges
Laravel Five Package Bridges
This Laravel package provides a bridging trait and multiple bridges that allows Laravel 4 packages to be used in Laravel 5.
Current packages that are bridged are:
- laracasts/flash
- way/generators
- intervention/image
- maatwebsite/excel
- itsgoingd/clockwork
- cartalyst/sentry
- robbiep/cloudconvert-laravel
- camroncade/timezone
- laracasts/utilities
If you want to build a bridge, please follow the contributing guide.
Installation
Begin by installing this package through Composer.
composer require morrislaptop/laravel-five-package-bridges
Once this operation completes, add the config service provider, this brings the package() method back to the config repository. Open app/config/app.php and add..
'Morrislaptop\LaravelFivePackageBridges\ConfigServiceProvider',
Then we need to swap the core Application class with the bridging, this adds various methods like after() back. Open bootstrap/app.php and replace..
with
The final step is to add the bridged service providers instead of the raw service providers.
Open app/config/app.php, and add lines as appropriate.
'Morrislaptop\LaravelFivePackageBridges\Bridges\FlashServiceProvider',
'Morrislaptop\LaravelFivePackageBridges\Bridges\GeneratorsServiceProvider',
'Morrislaptop\LaravelFivePackageBridges\Bridges\ImageServiceProvider',
'Morrislaptop\LaravelFivePackageBridges\Bridges\ExcelServiceProvider',
'Morrislaptop\LaravelFivePackageBridges\Bridges\ClockworkServiceProvider',
'Morrislaptop\LaravelFivePackageBridges\Bridges\SentryServiceProvider',
Voila! Those packages now work as they always did in Laravel 4.
Custom Packages
If you have a private package you can simply create your own bridging service provider and bring in the trait from this package.
Contributing
Please see the contributing guide.