- PHP 79.1%
- HTML 10.2%
- CSS 7.5%
- JavaScript 2.9%
- Dockerfile 0.3%
| public | ||
| src | ||
| .env.example | ||
| .gitignore | ||
| .htaccess | ||
| composer.json | ||
| docker-compose.yml | ||
| Dockerfile | ||
| index.php | ||
| jsconfig.json | ||
| LICENSE | ||
| package.json | ||
| pine | ||
| README.md | ||
| vite.config.js | ||
Pine: A PHP Framework
About Pine
Pine is a minimal PHP Web Framework
Important
This is just a hobby project and is not complete in any way. If you are looking for a framework that is production compatible, check out Laravel. This is not meant to be used in a production environment. On the other hand, if you stumble upon any issues (which I assume are plenty), please open an issue on github so I can take a look at it.
Prerequisites
- PHP 8
- Composer
- Node 20
Installation
First clone the repository
git clone https://github.com/raahimfareed/pine.git
Install composer packages
composer install
Optional: If you intend on using ViteJS, you can install all js packages
We use pnpm for this but, you can use any package manager for node
pnpm install
# Or
npm install
Run PHP server
php -S localhost:8000
This will run a php server on localhost with port 8000
In a new terminal window, start vite
pnpm dev
Migrations and Models
Note
Migrations and models are not implemented yet, they will be added in the future along with database helpers.