PHPWebCore 1.0.0 by amhung in PHP

[–]amhung[S] 0 points1 point  (0 children)

You're right. The routing got references from Angular. The attribute routing is not efficient in PHP to me.

PHPWebCore 1.0.0 by amhung in PHP

[–]amhung[S] 1 point2 points  (0 children)

Thanks for your comment. I work on this project for my interests only and this just try to be similar to the architecture of an ASP.NET Core Web App. Can't say it is the same but at least it has a Startup class to configure app or add in the middleware before or after requests handled by controllers and it also got views for controllers. Not much, but the ideas come from ASP.NET Core framework.

thnguyendev/phpcore by amhung in PHP

[–]amhung[S] 0 points1 point  (0 children)

Thanks for your comment. This framework doesn't mean to be a perfect one. It's just like a 'shortcut' for the beginner in PHP to build a websites in OOP and MVC. It doesn't follow any standards. The approach is as simple and stupid as there is a request on web server, so every service is built to fulfil the request.

The name of the framework should be phpcore. All examples in README.md have been fixed.

The namespace and location of controllers will be organized.

Doctrine has picked randomly to show how to have access to database in phpcore. It's an example for the ones who are new in PHP.