ZeroPHP 1.0|Zero Dependencies Framework

Zero Dependencies. Pure PHP Performance.

Build ultra-fast, rock-solid web applications with zero composer bloat. Enjoy a built-in CLI, DBML ORM, native migrations, routing, and mailer without third-party friction.

$curl -L -o main.zip https://zerophp.com/get/latest.zip && unzip main.zip
0 KBVendor Dependencies
< 5msCold Start Time
100%Native PHP 8.2+
1 CLIFull Toolbelt
Built-in Command Line Engine

Rapid Scaffolding with Zero CLI

Zero CLI delivers the developer ergonomics of modern frameworks without requiring external node or composer dependencies.

Available Commands8 items
# ZeroPHP Command Runner • Create Project
zero@php ~ % curl -L -o main.zip https://zerophp.com/get/latest.zip \
&& unzip -q main.zip \
&& rm main.zip \
&& mv Zero-main my-project \
&& cd my-project \
&& rm -rf docs todo.md readme.md .git \
&& cp .env.example .env \
&& php zero key:generate
Terminal ready
Comprehensive Native Architecture

Zero Dependencies. Rich Features.

Everything required to build industrial-grade web APIs, services, and applications is built right into the framework core.

0 External Packages

Dependency-Free Core

ZeroPHP is built entirely on native PHP with zero third-party packages. No vendor bloat, no supply chain vulnerabilities, and zero upgrade headaches.

// Zero composer packages required
$app = new ZeroPHP\Application();
Code Generation

Zero CLI Toolbelt

A powerful command-line interface out of the box. Rapidly scaffold models, controllers, migrations, seeders, and custom helpers with a single command.

php zero make:model User
php zero make:controller PostController
MySQL • PG • SQLite

Built-in DBML ORM

Interact with your database fluently without raw SQL friction. Native support for MySQL, PostgreSQL, and SQLite with relationship helpers.

User::where('active', true)
  ->orderBy('created_at', 'desc')
  ->get();
< 1ms Overhead

Lightning Routing

Expressive and structured routing engine supporting route groups, parameter patterns, sub-domains, and nested middleware pipelines.

Route::get('/api/users/{id}', [UserController::class, 'show'])
  ->middleware('auth');
Version Controlled

Schema Migrations

Effortlessly version and evolve your database schema across teams. Simple commands to create, run, and rollback migration files.

php zero migrate
php zero migrate:rollback
Auth & Rate Limiting

Middleware & Security

Filter HTTP requests seamlessly. Built-in rate limiting, CSRF protection, request validation, and customizable auth guards.

$request->validate([
  'email' => 'required|email',
  'password' => 'min:8'
]);
HTML & Attachments

Native SMTP & Mailer

Send rich transactional emails directly through any SMTP server. Clean API supporting HTML views, plain text fallbacks, and multi-file attachments.

Mail::to($user->email)
  ->subject('Welcome to ZeroPHP')
  ->send('emails.welcome', $data);
Clean Separation

View & Template System

Separate logic from presentation with high-performance layouts, slots, and partials. Fast dynamic page rendering without heavy template engines.

return View::render('dashboard.index', [
  'title' => 'Overview',
  'stats' => $stats
]);
Intuitive Developer Experience

See ZeroPHP in Action

Clean, readable, and standard PHP 8 syntax with full IDE autocompletion and zero complicated config files.

<?php

use App\Controllers\PostController;
use App\Controllers\UserController;
use ZeroPHP\Http\Route;

// Public routes
Route::get('/', function() {
    return view('welcome', ['title' => 'ZeroPHP Framework']);
});

// Grouped API routes with middleware
Route::prefix('/api/v1')->middleware('api.auth')->group(function() {
    Route::get('/posts', [PostController::class, 'index']);
    Route::post('/posts', [PostController::class, 'store']);
    Route::get('/posts/{id}', [PostController::class, 'show']);
    Route::get('/user/profile', [UserController::class, 'profile']);
});

Why Developers Choose ZeroPHP

Skip the complexity of hundred-megabyte vendor folders and endless dependency maintenance.

0 MB
Vendor Footprint

Versus 150+ MB for traditional full-stack frameworks.

< 10s
Setup & Install

Just unzip and run. No slow composer resolution required.

Zero
Breaking Upgrades

No transitive dependency conflicts breaking production.

Ready for Next-Gen PHP?

Start Building Leaner, Faster PHP Apps Today.

Get up and running in under 30 seconds with ZeroPHP. Download the latest release or dive straight into our documentation.