Open at15 opened 8 years ago
I think I can use slim framework, the input wrapper could work in another level. so it would works like
$app->get('/users/{id}', function ($request, $response, $args) {
return Service(Input::convert($request),Input::HTTP,Output::HTTP);
});
slim has a sketch project https://github.com/slimphp/Slim-Skeleton
also there are many middlewares https://github.com/oscarotero/psr7-middlewares
and there is a middleware for geo location, which uses https://github.com/geocoder-php/Geocoder
https://github.com/vlucas/phpdotenv I think I may need dotenv to load config such as database.
The unified input wrapper is Overengineering. I think I should have a sample up and running asap.
e... time flies and my code keeps the same \w/
Unlimited PHP wheels work
Input that wraps http, cli and rpc, may works with PHP725526b2fed13165fb5743700de15ce1e6ce1b443A router in PHP7, may refer to some existing one, our just a very simple routerA container in PHP7though there is a problem, php does not have libraries that works well with git, the libgit2 binding does not work for a long time, btw, got a php http protocol server implementation here https://github.com/jonls/php-git-server , or we could use java or golang to write another git server ..... since it's much more easier to write business logic with php.
Ref:
Laravel Repository pattern.
moved from #7
tests and lint
debug
https://github.com/bobthecow/psysh another PHP repl, laravel has it included in its command line