Download the PHP package bogosoft/cornpop without Composer

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

bogosoft/cornpop

A PSR-compliant nano-framework for generating responses to HTTP requests.

CornPop provides an extensible kernel for setting up and executing an HTTP response pipeline.

The kernel expects PSR implementations for various HTTP-based objects but provides none, leaving you free to bring-your-own implementations (BYOI).

You'll need to BYOI for:

Requirements

Installation

The Kernel

KernelBase, the class that you will need to extend, itself implements the RequestHandlerInterface interface. The only method implemented on the base kernel is the RequestHandlerInterface::handler method. Calling this method sets in motion several actions and ultimately returns an HTTP response.

Configuration

The first thing that the kernel takes care of is obtaining an application configuration. This configuration is of the type, Bogosoft\Configuration\ConfigurationInterface.

Although CornPop does not provide any implementations of PSR objects, it does ship with an ArrayConfiguration that can be used as the application configuration.

The HTTP request passed into the kernel can be used to configure the configuration so to speak.

Logging

Once the configuration has been obtained, it is then used to obtain a logger of type, Psr\Log\LoggerInterface.

Dependency Injection (DI) Container

After obtaining a logger, the logger and the configuration are used to obtain a DI container of type, Psr\Contaienr\ContainerInterface.

Fallback Handler

The container is then used to obtain a fallback request handler of type, Psr\Http\Server\RequestHandlerInterface, which will be invoked if none of the configured middleware returns an HTTP response.

This would be useful, for instance, in returning a 404 response.

Middleware

The container is again used to configure a sequence of middleware components to be called. Each component will need to be of the type, Psr\Http\Server\MiddlewareInterface, and will be called in the order that it was queued.

Execution

Once the middleware components have been queued, they will each be called in succession. If a middleware component returns a response instead of calling the passed-in request handler, it will short-circuit further middleware processing.


All versions of cornpop with dependencies

PHP Build Version
Package Version
Requires bogosoft/configuration Version ^2
php Version >=7.4
psr/container Version ^1
psr/http-message Version ^1
psr/http-server-handler Version ^1
psr/http-server-middleware Version ^1
psr/log Version ^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 bogosoft/cornpop contains the following files

Loading the files please wait ....