Back to articles
I built a PHP framework with Spring Boot style - zero dependencies, dynamic ORM, attribute-based routing (works on shared host).

I built a PHP framework with Spring Boot style - zero dependencies, dynamic ORM, attribute-based routing (works on shared host).

via Dev.to WebdevCDdev

I was using Spring Boot and it was my default selection until one client wanted to build a simple website. I had started coding with PHP but hadn't used it for a while. Then, I remembered the simplicity and minimalism of mixing PHP, HTML, CSS, and JS into one file (or separate files with .js etc), and how easy and cheap the hosting management was. But I didn't want to leave Spring's features behind, like JPA and dependency injection. So, I built a microframework with zero dependency that even works on shared hosting. Website & Docs: pointartframework.com GitHub Repo: Cn8001/PointArt The site itself is using PointArt and resides on shared hosting. For more documentation please visit the website. PointArt is a PHP micro-framework that brings Spring Boot's attribute-based style to PHP 8.1 (PHP 8.1+ since it introduced attributes, and PDO driver is required): #[Router(name: 'user', path: '/user')] class UserController { #[Wired] private UserRepository $userRepository ; #[Route('/list', Htt

Continue reading on Dev.to Webdev

Opens in a new tab

Read Full Article
2 views

Related Articles