A minimal PHP web framework https://pine.raahimfareed.com
  • PHP 79.1%
  • HTML 10.2%
  • CSS 7.5%
  • JavaScript 2.9%
  • Dockerfile 0.3%
Find a file
2025-03-05 12:06:20 +05:00
public updated styles and converted to dark theme 2024-10-06 03:08:52 +05:00
src allow dynamic properties 2025-03-05 12:06:20 +05:00
.env.example updated env 2024-11-28 00:07:51 +05:00
.gitignore ignore lock files 2025-03-05 12:04:16 +05:00
.htaccess Added a way to add CSS and JS 2023-09-18 15:20:21 +05:00
composer.json added symfony vardumper 2024-10-03 04:12:26 +05:00
docker-compose.yml ignore lock files 2025-03-05 12:04:16 +05:00
Dockerfile ignore lock files 2025-03-05 12:04:16 +05:00
index.php added db setup 2024-11-27 13:12:43 +05:00
jsconfig.json added vite 2023-09-18 16:29:47 +05:00
LICENSE Create LICENSE 2023-09-18 18:19:38 +05:00
package.json removed bun types 2024-10-03 20:42:50 +05:00
pine added controller scaffolding support and exception handling 2024-10-03 14:23:45 +05:00
README.md removed unnecessary items 2024-11-26 22:24:22 +05:00
vite.config.js added vite 2023-09-18 16:29:47 +05:00

Pine: A PHP Framework

About Pine

Pine is a minimal PHP Web Framework

Visit Official Pine Docs

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.