Staq is a modern & innovative PHP framework for enjoyable web development.
Staq contains all the expected features : Extensible structure, routing, ORM, templating & pre-coded applications ( Planned ).
It mainly contains a new object pattern, the stack, for low dependency, high extensible & enjoyable development !
require_once( 'vendor/Elephant418/staq/src/include.php' );
\Staq\App::create( )
->addController( '/hello/:name', function( $name ) {
return 'Hello ' . $name;
} )
->run( );
You can use the Hello World projects to bootstrap an application:
- The simplest Staq Hello World project
- The Staq Hello World project with MVC structure
You need PHP >= 5.4 and some happiness.
If you don't have composer, you have to install it.
Add or complete the composer.json file at the root of your repository, like this :
{
"require": {
"Elephant418/staq": "0.6.0"
}
}
Staq can now be downloaded via composer.
The framework and the extensions work with the composer autoload:
require_once( './vendor/autoload.php' );
- Fork the Staq repository
- Create a new branch for each feature or improvement
- Send a pull request from each feature branch to the develop branch
If you don't know much about pull request, you can read the Github article.
All pull requests must follow the PSR2 standard and be accompanied by passing phpunit tests.
Staq is under MIT License.
It is created and maintained by Thomas ZILLIOX.
If you have a question, you can send a message to the community via the mailing list.
If you are curious on the next features, you can see my trello board.