Download the PHP package decodelabs/fabric without Composer
On this page you can find all versions of the php package decodelabs/fabric. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download decodelabs/fabric
More information about decodelabs/fabric
Files in decodelabs/fabric
Package fabric
Short Description Lightweight PHP framework implementation using DecodeLabs ecosystem
License MIT
Informations about the package fabric
Fabric
Lightweight PHP framework implementation using DecodeLabs ecosystem
Fabric provides the structures, prerequisites and conventions for building a web application using the DecodeLabs ecosystem.
Installation
Install via Composer:
Usage
A Fabric app looks very similar to a standard package with most code residing in the src folder, under a namespace of your choice and loaded via composer.
It does not require a custom entry point as it will automatically detect and load the app when the framework is initialised via the built in Bootstrap:
Config
Fabric utilises Dovetail
for config loading - via a private .env file in the app root and data files in /config (though this can be customised if necessary).
The most important config file is the Environment.php
file which defines some key values for the rest of the app to initialize with.
The appNamespace value will allow you to define the namespace in which the majority of your app code will reside, and which is already defined for loading in your composer file.
App file
The App file is the main entry point for your app and is where you can override default behaviour in key areas of your app. If one is not defined, a default will be used.
While in early development, the interface for this class will change a lot, however default implementations will be provided in the Generic instance of the interface to ensure backwards compatibility.
The App instance can be recalled using the Fabric Veneer frontage:
Structure
Fabric provides solid HTTP and CLI kernels that can handle requests in both contexts. Clip
is used for CLI tasks, and Harvest
for HTTP.
The HTTP kernel uses an extensible set of Middlewares to provide a flexible request handling pipeline. The default implementation is provided by Harvest
and is a good starting point for most apps.
Greenleaf is used for routing and provides a simple, flexible and powerful routing system for HTTP Actions.
Licensing
Fabric is licensed under the MIT License. See LICENSE for the full license text.
All versions of fabric with dependencies
decodelabs/archetype Version ^0.3.8
decodelabs/clip Version ^0.4
decodelabs/coercion Version ^0.3.2
decodelabs/dovetail Version ^0.2.10
decodelabs/exceptional Version ^0.5.3
decodelabs/genesis Version ^0.12.1
decodelabs/glitch Version ^0.19.4
decodelabs/greenleaf Version ^0.8
decodelabs/harvest Version ^0.5
decodelabs/lucid Version ^0.5.1
decodelabs/monarch Version ^0.1.1
decodelabs/pandora Version ^0.3
decodelabs/systemic Version ^0.11.16
decodelabs/veneer Version ^0.12.6