https://github.com/boudra/yapf
Yet Another PHP Frameowrk
https://github.com/boudra/yapf
framework php web
Last synced: about 1 year ago
JSON representation
Yet Another PHP Frameowrk
- Host: GitHub
- URL: https://github.com/boudra/yapf
- Owner: boudra
- Created: 2015-07-29T14:54:57.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-07-30T12:16:20.000Z (over 10 years ago)
- Last Synced: 2025-01-04T17:12:30.659Z (about 1 year ago)
- Topics: framework, php, web
- Language: PHP
- Homepage:
- Size: 191 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
YAPF
====
This is a PHP framework made for educational purposes and it's not recommended
to use in production.
Features
=======
- Dependency Injection integrated with the services container
- Router, can call Clousures, Controller methods or Resource controllers for
easy REST API.
- Query Builder, simple query builder for retrieving, updating and deleting
data, supports multiple joins, and advanced where expressions.
- Simple image manipulation class
Example
=======
```PHP
use App\Application;
use App\Core\Router;
$app = new Application();
$app->run(function(Router $router) {
$router->get('/app/{name}/{age:int}', function($name, $age) {
return [
'msg' => "Hello $name, you are $age years old!",
];
});
});
// GET http://localhost/app/John/21
{
"msg": "Hello John, you are 21 years old!"
}
```