Minimal PHP application structure
Skeleton is a minimal framework-like file structure for a small/medium PHP application. It uses a collection of libraries:
- Slim microframework (with Views and Extras);
- Twig template engine;
- Idiorm/Paris active record;
- jQuery and Twitter Bootstrap.
It also use some tools for development and deployment:
Currently, you should use git
and composer
:
$ git clone http://github.com/tassoevan/skeleton.git /path/to/app
$ composer --working-dir=/path/to/app update
This will install all libraries and tools.
There are two main directories: public
and private
. public
is the public
www folder that must be served via HTTP server, while private
contains the
application source, logs, cache and configuration files. If you want to put them
in different locations, just rewrite the autoloader path in public/index.php
.
This project is in development. When it reaches minimal required features (like MVC support and deployment), it will be tagged and properly versionated. For now, this structure should be treated as experimental and subject to major changes.