pixel418 / staq
Staq is a small PHP framework for an enjoyable web development
Requires
- php: >=5.4.0
- michelf/php-markdown: 1.3.*
- pixel418/eloq: 0.2.*
- pixel418/iniliq: 0.3.*
- pixel418/markdownify: 2.1.*
- pixel418/ubiq: 0.4.*
- twig/twig: 1.*
This package is not auto-updated.
Last update: 2024-11-09 18:43:23 UTC
README
Staq is a modern & innovative PHP framework for enjoyable web development.
Features
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 !
Let's code
Hello world tutorial
require_once( 'vendor/Elephant418/staq/src/include.php' ); \Staq\App::create( ) ->addController( '/hello/:name', function( $name ) { return 'Hello ' . $name; } ) ->run( );
Hello world projects
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
System Requirements
You need PHP >= 5.4 and some happiness.
How to Install
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' );
How to Contribute
- 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.
Author & Community
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.