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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package slim

Laravel Bridge for Slim Framework

tests codecov codecov Latest Stable Version Total Downloads License

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

PHP Build Version
Package Version
Requires php Version ^7.1
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
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package laravel-bridge/slim contains the following files

Loading the files please wait ....