dcousineau/orlex-standard

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

A full-fledged Orlex distribution with nice extras

v1.0.0 2013-05-19 06:02 UTC

This package is not auto-updated.

Last update: 2021-10-11 00:12:31 UTC


README

The Orlex Standard Distribution is a project installable through Composer that provides a skeleton application utilizing Orlex as well as projects like Twig and Symfony Forms.

Installation

The easiest installation is via composer. After installing composer simply run the following in your command line:

php composer.phar create-project dcousineau/orlex-standard path/to/install

Composer will download a copy of this project into the path/to/install and setup all of its dependencies. Aftewards you will be ready to slam out code for your project!

Details

Orlex Standard provides sample code found in the src/ directory. To remove all traces of sample code, first completely remove the src/App/ directory, then update config/web.php line 11 to point to a proper controller directory.

Environment

The standard distribution reads an environment variable to determin debug mode. If you're using Apache, adding a SetEnv directive to either your vhost or .htaccess (not recommended) will allow you to control the environment setting. For example:

SetEnv ENVIRONMENT dev

In your vhost definition will ensure Silex's debug mode is enabled. You can also develop your application to respect environment by referencing $app['environment'].