laravel-param-converter maintained by pm-connect
Description
Symfony param converters working in Laravel.
Author
Last update
2021/04/12 08:59
(dev-master)
License
Downloads
17 495
Last update
2021/04/12 08:59
License
Require
- laravel/helpers ^1.0
- doctrine/annotations ~1
- sensio/framework-extra-bundle ~3.0|~4.0|~5.0
- illuminate/support 5.3.x|5.4.x|5.5.x|5.6.x|5.7.x|5.8.x|^6.0|^7.0|^8.0
- illuminate/container 5.3.x|5.4.x|5.5.x|5.6.x|5.7.x|5.8.x|^6.0|^7.0|^8.0
- illuminate/config 5.3.x|5.4.x|5.5.x|5.6.x|5.7.x|5.8.x|^6.0|^7.0|^8.0
- illuminate/http 5.3.x|5.4.x|5.5.x|5.6.x|5.7.x|5.8.x|^6.0|^7.0|^8.0
- illuminate/routing 5.3.x|5.4.x|5.5.x|5.6.x|5.7.x|5.8.x|^6.0|^7.0|^8.0
- php ~7|~8
Last update
2021/04/12 08:59
License
Require
- php ~7|~8
- sensio/framework-extra-bundle ~3.0|~4.0|~5.0
- illuminate/support 5.3.x|5.4.x|5.5.x|5.6.x|5.7.x|5.8.x|^6.0|^7.0|^8.0
- illuminate/container 5.3.x|5.4.x|5.5.x|5.6.x|5.7.x|5.8.x|^6.0|^7.0|^8.0
- illuminate/config 5.3.x|5.4.x|5.5.x|5.6.x|5.7.x|5.8.x|^6.0|^7.0|^8.0
- illuminate/http 5.3.x|5.4.x|5.5.x|5.6.x|5.7.x|5.8.x|^6.0|^7.0|^8.0
- illuminate/routing 5.3.x|5.4.x|5.5.x|5.6.x|5.7.x|5.8.x|^6.0|^7.0|^8.0
- laravel/helpers ^1.0
- doctrine/annotations ~1
Last update
2020/07/23 20:38
License
Require
- php ~7
- sensio/framework-extra-bundle ~3.0|~4.0|~5.0
- illuminate/support 5.3.x|5.4.x|5.5.x|5.6.x|5.7.x|5.8.x|^6.0|^7.0
- illuminate/container 5.3.x|5.4.x|5.5.x|5.6.x|5.7.x|5.8.x|^6.0|^7.0
- illuminate/config 5.3.x|5.4.x|5.5.x|5.6.x|5.7.x|5.8.x|^6.0|^7.0
- illuminate/http 5.3.x|5.4.x|5.5.x|5.6.x|5.7.x|5.8.x|^6.0|^7.0
- illuminate/routing 5.3.x|5.4.x|5.5.x|5.6.x|5.7.x|5.8.x|^6.0|^7.0
- laravel/helpers ^1.0
- doctrine/annotations ~1
Last update
2020/07/23 20:28
License
Require
- php ~7
- sensio/framework-extra-bundle ~3.0|~4.0|~5.0
- illuminate/support 5.3.x|5.4.x|5.5.x|5.6.x|5.7.x|5.8.x|^6.0|^7.0
- illuminate/container 5.3.x|5.4.x|5.5.x|5.6.x|5.7.x|5.8.x|^6.0|^7.0
- illuminate/config 5.3.x|5.4.x|5.5.x|5.6.x|5.7.x|5.8.x|^6.0|^7.0
- illuminate/http 5.3.x|5.4.x|5.5.x|5.6.x|5.7.x|5.8.x|^6.0|^7.0
- illuminate/routing 5.3.x|5.4.x|5.5.x|5.6.x|5.7.x|5.8.x|^6.0|^7.0
- laravel/helpers ^1.0
- doctrine/annotations ~1
Last update
2020/07/09 16:22
License
Require
- php ~7
- sensio/framework-extra-bundle ~3.0
- illuminate/support 5.3.x|5.4.x|5.5.x|5.6.x|5.7.x|5.8.x|^6.0|^7.0
- illuminate/container 5.3.x|5.4.x|5.5.x|5.6.x|5.7.x|5.8.x|^6.0|^7.0
- illuminate/config 5.3.x|5.4.x|5.5.x|5.6.x|5.7.x|5.8.x|^6.0|^7.0
- illuminate/http 5.3.x|5.4.x|5.5.x|5.6.x|5.7.x|5.8.x|^6.0|^7.0
- illuminate/routing 5.3.x|5.4.x|5.5.x|5.6.x|5.7.x|5.8.x|^6.0|^7.0
- laravel/helpers ^1.0
- doctrine/annotations ~1
Last update
2019/12/12 11:05
License
Require
- php ~7
- sensio/framework-extra-bundle ~3.0
- illuminate/support 5.3.x|5.4.x|5.5.x|5.6.x|5.7.x|5.8.x|^6.0
- illuminate/container 5.3.x|5.4.x|5.5.x|5.6.x|5.7.x|5.8.x|^6.0
- illuminate/config 5.3.x|5.4.x|5.5.x|5.6.x|5.7.x|5.8.x|^6.0
- illuminate/http 5.3.x|5.4.x|5.5.x|5.6.x|5.7.x|5.8.x|^6.0
- illuminate/routing 5.3.x|5.4.x|5.5.x|5.6.x|5.7.x|5.8.x|^6.0
- laravel/helpers ^1.0
- doctrine/annotations ~1
Last update
2019/11/26 09:16
License
Require
- php ~7
- sensio/framework-extra-bundle ~3.0
- illuminate/support 5.3.x|5.4.x|5.5.x|5.6.x|5.7.x|5.8.x
- illuminate/container 5.3.x|5.4.x|5.5.x|5.6.x|5.7.x|5.8.x
- illuminate/config 5.3.x|5.4.x|5.5.x|5.6.x|5.7.x|5.8.x
- illuminate/http 5.3.x|5.4.x|5.5.x|5.6.x|5.7.x|5.8.x
- illuminate/routing 5.3.x|5.4.x|5.5.x|5.6.x|5.7.x|5.8.x
- doctrine/annotations ~1
Last update
2019/01/14 16:57
License
Require
- php ~7
- sensio/framework-extra-bundle ~3.0
- illuminate/support 5.3.x|5.4.x|5.5.x|5.6.x|5.7.x
- illuminate/container 5.3.x|5.4.x|5.5.x|5.6.x|5.7.x
- illuminate/config 5.3.x|5.4.x|5.5.x|5.6.x|5.7.x
- illuminate/http 5.3.x|5.4.x|5.5.x|5.6.x|5.7.x
- illuminate/routing 5.3.x|5.4.x|5.5.x|5.6.x|5.7.x
- doctrine/annotations ~1
Last update
2017/12/12 13:18
License
Require
- php ~7
- sensio/framework-extra-bundle ~3.0
- illuminate/support 5.3.x|5.4.x|5.5.x
- illuminate/container 5.3.x|5.4.x|5.5.x
- illuminate/config 5.3.x|5.4.x|5.5.x
- illuminate/http 5.3.x|5.4.x|5.5.x
- illuminate/routing 5.3.x|5.4.x|5.5.x
- doctrine/annotations ~1
Last update
2017/04/21 10:53
License
Require
- php ~7
- sensio/framework-extra-bundle ~3.0
- illuminate/support 5.3.x|5.4.x
- illuminate/container 5.3.x|5.4.x
- illuminate/config 5.3.x|5.4.x
- illuminate/http 5.3.x|5.4.x
- illuminate/routing 5.3.x|5.4.x
- doctrine/annotations ~1
Last update
2017/04/20 16:19
License
Require
- php ~7
- sensio/framework-extra-bundle ~3.0
- illuminate/support 5.3.x|5.4.x
- illuminate/container 5.3.x|5.4.x
- illuminate/config 5.3.x|5.4.x
- illuminate/http 5.3.x|5.4.x
- illuminate/routing 5.3.x|5.4.x
Last update
2017/04/20 15:15
License
Require
- php ~7
- sensio/framework-extra-bundle ~3.0
- illuminate/support 5.3.x|5.4.x
- illuminate/container 5.3.x|5.4.x
- illuminate/config 5.3.x|5.4.x
- illuminate/http 5.3.x|5.4.x
- illuminate/routing 5.3.x|5.4.x
Last update
2017/04/20 15:07
License
Require
- php ~7
- sensio/framework-extra-bundle ~3.0
- illuminate/support 5.3.x|5.4.x
- illuminate/container 5.3.x|5.4.x
- illuminate/config 5.3.x|5.4.x
- illuminate/http 5.3.x|5.4.x
- illuminate/routing 5.3.x|5.4.x
Last update
2017/04/20 14:51
License
Require
- php ~7
- sensio/framework-extra-bundle ~3.0
- illuminate/support 5.3.x|5.4.x
- illuminate/container 5.3.x|5.4.x
- illuminate/config 5.3.x|5.4.x
- illuminate/http 5.3.x|5.4.x
- illuminate/routing 5.3.x|5.4.x
Laravel Param Converter
Gets the Symfony @ParamConverter annotation working within Laravel 5.3+.
Installation
Install using composer.
composer require pm-connect/laravel-param-converter
Setup
Setup is extremely simple, just add the service provider to your app.php config.
\PmConnect\LaravelParamConverter\ServiceProvider::class,
You can also publish the config so you can add your own param converters.
php artisan vendor:publish --provider="\PmConnect\LaravelParamConverter\ServiceProvider"
Annotation Registry Loader
Depending on the setup you have, you may need to setup doctrines AnnotationRegistry class and tell it how to autoload classes.
This can be done by adding the following into a boot method of a service provider.
AnnotationRegistry::registerLoader('class_exists');
Custom Converters
See the Symfony docs for how to create custom converters here.
Once created, just add the class to the param-converter.php config file (as long as you have published your config!) and away you go.