A lightweight PHP boilerplate for building web applications quickly.
This project provides a pre-built PHP base that includes:
- MVC structure for clean code organization.
- Integrated router (for REST APIs and views).
- Authentication with Google OAuth.
- JWT (JSON Web Token) management for secure sessions.
- Ready-to-use PostgreSQL connection with PDO.
- Frontend integration with Node.js tools.
- TailwindCSS pre-installed for rapid UI development.
Perfect for small to medium-sized projects where you need speed and flexibility without heavy frameworks.
Make sure you have the following installed:
- XAMPP (to run locally with Apache & PHP).
- PHP 8.0 or higher.
- Node.js and npm (for frontend dependency management).
- Composer (for PHP dependency management).
- PostgreSQL (database).
git clone https://github.com/davidleonstr/SimplePHP
cd SimplePHP
composer install
npm install
npm run dev
# Priority 1: Handle API routes first
RewriteRule ^(api|SimplePHP/api|SimplePHP/api)/(.*)$ api/index.php [QSA,L]