Download the PHP package laravel-bridge/slim without Composer
On this page you can find all versions of the php package laravel-bridge/slim. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download laravel-bridge/slim
More information about laravel-bridge/slim
Files in laravel-bridge/slim
Package slim
Short Description The Laravel Bridge use on Slim framework
License MIT
Informations about the package slim
Laravel Bridge for Slim Framework
The bridge for Laravel in Slim framework
Installation
Using Composer to install package:
Using array as container
App params is array, like following code.
Replace class name Slim\App
to bridge class LaravelBridge\Slim\App
:
It will work on most Slim project. Here has an example for more detail.
Using Container
App params is Container, like following code.
Use Scratch Application.
Alternatively, ContainerBuilder can use Pimple / Slim container, too.
Using Laravel Services
LaravelBridge\Slim\App
will use the Slim default service (e.g. Slim\Handlers\Error
). If you want to use the Laravel Error handler, you can set the second argument. It will use all Laravel service defined in this bridge.
ContainerBuilder is like Bridge App:
foundHandler
The foundHandler
in Slim is invoke when the route found.
This bridge implements a auto injection handler for call a callable, names RequestResponse
. Use Laravel Service or call ContainerBuilder::useLaravelFoundHandler()
can enable handler.
callableResolver
This bridge implements a auto injection handler for new controller, names CallableResolver
. Use Laravel Service or call ContainerBuilder::useLaravelCallableResolver()
to enable.
settings
Laravel Bridge use the Collection
class default. Using Laravel Services or call useLaravelSettings()
method on ContainerBuilder will use the Illuminate\Config\Repository
class.
All versions of slim with dependencies
ext-json Version *
http-interop/http-factory-slim Version ^2.0
illuminate/container Version ^5.6 | ^6 | ^7
illuminate/support Version ^5.6 | ^6 | ^7
laravel-bridge/container Version ^1.1
laravel-bridge/scratch Version ^1.6
laravel-bridge/support Version ^1.0
mileschou/psr Version ^1.0
psr/container Version ^1.0
psr/http-factory Version ^1.0
slim/slim Version ^3.0
symfony/debug Version ^4.4 | ^5
symfony/psr-http-message-bridge Version ^1.3 | ^2.0