Download the PHP package bitexpert/adrenaline without Composer

On this page you can find all versions of the php package bitexpert/adrenaline. 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 adrenaline

bitexpert/adrenaline

A PSR-7 micro framework built on top of the Adroit middleware to speed up your development ;)

Build Status Coverage Status

Getting started

The preferred way of installing bitexpert/adrenaline is through Composer. Simply add bitexpert/adrenaline as a dependency:

Prototyping

If you want to use Adrenaline for fast prototyping you proceed as follows:

So that's the basic setup. You may add more actions by using the implicit routing functions of Adrenaline and of course you may use middleware hooks, error handler and custom resolvers just as you would do in a productive application. This is just a possibility to give you a quick result for prototyping.

How to configure action resolvers

You may configure custom action resolvers for Adrenaline. By default bitexpert/adroit's CallableActionResolver is added if no action resolvers are provided with the constructor which allows you to use simple Closures as actions (e.g. for protoyping case)

Be aware that you have to add this resolver explicitly if you define your own set of action resolvers if you still want to use it.

How to configure responder resolvers

You may configure custom action resolvers for Adrenaline. By default bitexpert/adroit's CallableResponderResolver is added if no responder resolvers are provided with the constructor which allows you to use simple Closures as responders (e.g. for protoyping case)

Be aware that you have to add this resolver explicitly if you define your own set of responder resolvers if you still want to use it.

How to configure routing

With Adrenaline you may also use custom routers. Your custom router needs to inherit bitexpert/pathfinder's Router interface.

If you want to use a custom route class within the implicit route creation functions (get, post, etc.) you can set the custom route route class:

For standard route definition, please have a look at the pathfinder docs.

How to implement an action

See bitexpert/adroit docs.

How to implement a responder

See bitexpert/adroit docs.

How to use the middleware hooks

Adrenaline offers the possibility to integrate your middlewares into the default processing of a request by using the provided middleware hooks:

These hooks are chainable and you may call them multiple times. Each call will push the provided middleware to the according stack. As middlewares you may either use a simple closures or use your own dedicated classes implementing the __invoke method with the according signature.

How to use an error handler

You also may define an error handler which will be used for uncaught errors occuring while Adrenaline processes the request. You may either use a simple closure or implement your own dedicated class for error handling. UPDATE Since update to Stratigility 1.3 (we use MiddelwarePipe internally) we had to change the errorhandling due to deprecation warnings. Nevertheless we made the old configuration style working due to backwards compatibility:

We recommend to use the new errorhandling since using the "old" error handler may become deprecated in adrenaline also after a while:

For further information please have a look at: https://docs.zendframework.com/zend-stratigility/migration/to-v2/#error-handling

How to integrate with a DI container

If you want to use a DI container, you may use the according resolvers to make use of it:

For further instructions you may also have a look at the bitexpert/adroit docs.

License

Adrenaline is released under the Apache 2.0 license.


All versions of adrenaline with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0
bitexpert/pathfinder Version ^0.5.0
bitexpert/slf4psrlog Version ^0.1.0
zendframework/zend-diactoros Version ^1.0.0
psr/http-message Version ^1.0
willdurand/negotiation Version ^2.0
twig/twig Version ^1.24
bitexpert/adroit Version ^0.7.0
fig/http-message-util Version ^1.1
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 bitexpert/adrenaline contains the following files

Loading the files please wait ....