Download the PHP package modus/framework without Composer
On this page you can find all versions of the php package modus/framework. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download modus/framework
More information about modus/framework
Files in modus/framework
Package framework
Short Description The Modus framework, providing basic support for many components of Aura and other libraries.
License MIT
Informations about the package framework
The Modus Framework
(Note: This README is a work in progress.)
The Modus Framework is a collection of components included through Composer and bound together by "glue code" that makes the components useful as a unit.
Modus makes use of many components of Aura, as well as some Symfony components and others.
Installing Modus
After cloning and checking out the repository, you'll want to install the dependencies with Composer.
Once these components are installed, you can run the Modus command line, which will place the files in the correct directory structure.
Modus expects to be used as a full framework for your application, operating in the root directory. It uses an htaccess file to route all calls to the index file in the public/ directory. The following vhost configuration is recommended.
Modus Configuration Files
Modus uses a configuration system that incorporates dependency inversion through Aura's Dependency Injection package.
In addition, there are some files you'll want to modify on your own for your setup:
- config.php - This contains configuration options for your application.
- routes.php - This contains route information. There are a few example routes already provided, which you can copy and reuse.
Configuring Routes
Routes are often the most complex part of an application, but the goal is to make them as simple as possible.
At their most basic, a route has a key which names the route, and the value is an array containing two keys: the route itself and the parameters for the route.
Of course, some routes are more complex than this and require additional options. For example, to specify a ID value on the end of a route, you add a params key to the args array, like so:
Note that all parameter rules of the Aura.Router package are followed. Check the documentation for more.
If you have complex namespace requirements, you can also specify a fully-qualified namespace path to the controller:
All versions of framework with dependencies
aura/session Version ~1.0.1
aura/di Version ~2.1
aura/sql Version ~2.0
aura/sqlquery Version ~2.0
aura/router Version ~2.0
aura/view Version ~2.0.0
aura/http Version ~1.0.1
aura/web Version ~2.0
aura/cli Version ~2.0
monolog/monolog Version ~1.5
aura/auth Version ~2.0
aura/html Version ~2.1.0
brandonsavage/booboo Version ~0.4
aura/accept Version ~2.0