Download the PHP package buzzingpixel/craft-slim-bridge without Composer

On this page you can find all versions of the php package buzzingpixel/craft-slim-bridge. 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 craft-slim-bridge

Slim Bridge for Craft CMS

This is probably only of interest to me, but you're welcome to use this project if you come across it and like it.

I really like working in Slim, with FastRoute, and PSR standard interfaces. To that end, I've created this extremely simple Craft Plugin that let's me do the front-end of Craft sites in Slim and mostly ignore that Craft is there in the background.

Here's how to use it:

  1. In your craft project, run composer require buzzingpixel/craft-slim-bridge
  2. Then run php craft plugin/install slim-bridge
  3. Create a config file in your /config directory named slim-bridge.php. See Config section below for configuration.
  4. Add the following catch-all route as the last route in your craft routes.php file:
    • '<path:.*>' => 'slim-bridge/route-handler/index',
  5. For Category or Entry routing through Slim, use the following format in the site settings template field to route to custom class's __invoke method:
    • _slimBridge/\My\Custom\Action\Class
    • If you want to add route middleware or manipulate the route in other ways, implement \BuzzingPixel\SlimBridge\ElementSetRoute\SetRouteFromParsed\RoutingCallbackContract

Example:

Config

Two keys are available in the config file (See example):

containerInterface

Slim requires an implementation of \Psr\Container\ContainerInterface and I've left this to project owners to provide. I, personally like PHP-DI.

appCreatedCallback

This is optional, but if you don't use it, then you won't have set any routes or middlewares and it will be useless to you. Once the app has been created, this callback will be run and the argument recieved will be the Slim App instance which you can use to set routes and middleware.


All versions of craft-slim-bridge with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
slim/psr7 Version ^1.5
slim/slim Version ^4.7
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 buzzingpixel/craft-slim-bridge contains the following files

Loading the files please wait ....