Download the PHP package labrador-kennel/framework without Composer

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

Labrador Framework

GitHub license GitHub release

Labrador is still in heavy development. A 1.0.0-alpha release is near but the API is still highly volatile and subject to change!

Labrador is a microframework built on-top of Amphp and Annotated Container. It offers a non-traditional way of writing small-to-medium sized applications in PHP. Among its many features includes:

If you're looking for a more complete skeleton to get started with writing Labrador-powered apps, you should check out labrador-kennel/web-app; it is a skeleton for a complete app, including Docker setup, database, and templating.

Install

Use Composer to install the library.

Requirements

This is a step-by-step guide to the code you'll need to implement to get this framework serving HTTP requests. This is not meant to be a comprehensive guide on how to deploy in production, but how to get up and running on your local machine.

Step 1: Logging

A critical step that MUST be completed, otherwise your application will not start up. To satisfy this requirement you must implement a Labrador\Logging\LoggerFactory and mark it as a service to be managed by the dependency injection container. Somewhere in your src/ directory, or some other directory that is autoloaded and scaned by Annotated Container, write some code that resembles the following:

This is a minimal setup that could be applicable if your app is running in a Docker container. It will stream log output to stdout using Amp-provided mechanisms. It is important to use a Monolog handler provided by Amp, to avoid blocking I/O operations.

Again, this is a highly important step that you MUST complete. If you get an error from your dependency injection container stating that a LoggerFactory cannot be instantiated, completing this step is your resolution.

TODO: Determine and document precise steps would need to result in a running app


All versions of framework with dependencies

PHP Build Version
Package Version
Requires php Version ~7.0
cspray/labrador Version ~2.0
nikic/fast-route Version 0.7.0
zendframework/zend-diactoros Version ~1.3.5
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 labrador-kennel/framework contains the following files

Loading the files please wait ....