raahim/pine

Minimal PHP framework

0.x-dev 2024-12-03 12:59 UTC

This package is auto-updated.

Last update: 2025-01-03 13:12:54 UTC


README

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.