Download the PHP package pingu1/packaged-cilex without Composer
On this page you can find all versions of the php package pingu1/packaged-cilex. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pingu1/packaged-cilex
More information about pingu1/packaged-cilex
Files in pingu1/packaged-cilex
Package packaged-cilex
Short Description A packaged version of Cilex Framework with clean project architecture
License MIT
Homepage https://github.com/pingu1/packaged-cilex
Informations about the package packaged-cilex
Packaged Cilex, a clean version of Cilex with isolated code
Cilex is a simple command line application framework to develop simple tools based on Symfony2 components. However, creating an application with Cilex requires to add your source code at the same level as the package source code, which is not really desirable when dealing with code updates. This version is embedding Cilex as a dependency in order to fully isolate your own code.
Installation
- Download composer:
curl -s https://getcomposer.org/installer | php
- Create a new project based on this one
composer.phar create-project pingu1/packaged-cilex test
- Init the Git repository in your new project
git init
Usage
- Put your code in the
src/command/
folder - Add additional directories as needed (
src/model/
,src/helper/
,src/library/
...) -
Add your scripts to the
cilex
entry point (located at the root of the project) - Run the script
Bonus
You can easily update the composer.json file to give another namespace than app
to the application by updating the autoloader as follows:
Help and docs
This repository is just a wrapper of the Cilex project, for additional question regarding how to use Cilex, please check the Cilex project