phpcore is a framework
Add package to your composer.json:
{
"require": {
"mojosoft/phpcore": "dev-master"
}
}
Run composer:
$ php composer.phar install -o
Now the entire toolchain is already available upon the vendor autoloader inclusion.
<?php
// Load vendors
include 'vendor/autoload.php';
Route::on('/',function(){
echo "Hello from Core!";
});
// Dispatch route
Route::dispatch();
// Send response to the browser
Response::send();
See the wiki.
How to get involved:
- Star the project!
- Answer questions that come through GitHub issues
- Report a bug that you find
Pull requests are highly appreciated.
Solve a problem. Features are great, but even better is cleaning-up and fixing issues in the code that you discover.