at15 / bform

Paper and data management web application for plastic forming
Apache License 2.0
0 stars 0 forks source link

Init the php framework #8

Open at15 opened 8 years ago

at15 commented 8 years ago

Unlimited PHP wheels work

though 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

at15 commented 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);
});
at15 commented 8 years ago

slim has a sketch project https://github.com/slimphp/Slim-Skeleton

at15 commented 8 years ago

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

at15 commented 8 years ago

https://github.com/vlucas/phpdotenv I think I may need dotenv to load config such as database.

at15 commented 8 years ago

The unified input wrapper is Overengineering. I think I should have a sample up and running asap.

at15 commented 8 years ago

e... time flies and my code keeps the same \w/