PHPackages                             phantom-php/framework - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. phantom-php/framework

ActiveProject[Framework](/categories/framework)

phantom-php/framework
=====================

A minimalist but powerful PHP framework

v1.19.6(3mo ago)05MITPHPPHP ^8.1

Since Jan 30Pushed 3mo agoCompare

[ Source](https://github.com/Phantom-Framework-PHP/framework)[ Packagist](https://packagist.org/packages/phantom-php/framework)[ RSS](/packages/phantom-php-framework/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (8)Used By (0)

Phantom Framework v1.19.6
=========================

[](#phantom-framework-v1196)

Phantom is a minimalist, elegant, and fast PHP framework, designed for developers seeking Laravel's structure with the lightness of a micro-framework.

🚀 Quick Installation
--------------------

[](#-quick-installation)

You can create a new Phantom project instantly using Composer:

```
composer create-project phantom-php/framework my-app
```

Or manually:

1. Clone the repository.
2. Run `composer install`.
3. Copy `.env.example` to `.env` and configure your credentials.
4. Start your server: `php phantom serve`.

📖 Comprehensive Documentation
-----------------------------

[](#-comprehensive-documentation)

Our [Documentation Manual](DOCUMENTATION.md) covers everything you need to master Phantom:

- [🏗️ Core Architecture](DOCUMENTATION.md#architecture)
- [🛣️ Advanced Routing &amp; Method Injection](DOCUMENTATION.md#routing)
- [🛡️ Middlewares &amp; Security](DOCUMENTATION.md#middleware)
- [✅ Validation &amp; Requests](DOCUMENTATION.md#requests)
- [🎨 Template Engine (Blade-like)](DOCUMENTATION.md#views)
- [🗄️ ORM Relationships &amp; Polymorphism](DOCUMENTATION.md#orm)
- [🗑️ Soft Deletes System](DOCUMENTATION.md#orm-soft-deletes)
- [📦 Fluent Collections](DOCUMENTATION.md#collections)
- [🌐 API Resources (JSON)](DOCUMENTATION.md#api-resources)
- [🧪 HTTP Feature Testing](DOCUMENTATION.md#testing)
- [💻 Phantom CLI &amp; Tinker (REPL)](DOCUMENTATION.md#cli)

Main Features
-------------

[](#main-features)

- **📦 IoC Container**: Professional and powerful dependency management.
- **🛣️ Advanced Routing**: Route Groups, Named Routes, Middlewares, and **Method Injection**.
- **🎨 View Engine**: Blade-like template system with layouts, components, and caching.
- **🗄️ Phantom ORM**: Active Record with Eager Loading, Relationships, Polymorphism, Soft Deletes, **Attribute Casting, and Mass Assignment Protection**.
- **🏢 Multi-Tenancy Core (v1.19.3)**: Native support for database and scope isolation (shared or separate DBs).
- **⏱️ Rate Limiting Pro (v1.19.4)**: Distributed sliding window algorithm for precise request throttling.
- **⚡ Distributed Cache (v1.19.5)**: High-performance caching with Redis Cluster support and automatic tenant isolation.
- **🤖 AI Native Integration**: Built-in support for Gemini/OpenAI, Vector Embeddings, and AI-powered validation.
- **📟 Phantom Live**: Build reactive, dynamic interfaces with PHP and Blade (Livewire-style).
- **📊 Phantom Pulse**: Real-time telemetry dashboard for requests, DB queries, and security.
- **🛡️ Native Security**: Zero-config Security Shield (IP Reputation), CSRF protection, and secure hashing.
- **📁 File Storage**: Abstracted storage with Local, FTP, and S3 drivers.
- **📦 Distributed Queues**: Background job processing with Redis Cluster and Sentinel support.
- **📝 API Auto-Doc**: Generate OpenAPI/Swagger documentation automatically using AI.
- **🧪 Testing Suite**: Built-in system for HTTP Feature Testing and unit tests.
- **💻 Phantom CLI**: Professional toolkit including `serve`, `migrate`, `tinker`, and `ai:generate`.

Requirements
------------

[](#requirements)

- PHP 8.1 or superior.
- Extensions: PDO, OpenSSL, Mbstring, Fileinfo, Readline (recommended).

Phantom CLI Quick Guide
-----------------------

[](#phantom-cli-quick-guide)

```
# Start Server
php phantom serve

# Interactive REPL
php phantom tinker

# Run Migrations
php phantom migrate

# Generate Code
php phantom make:model Post
php phantom make:resource UserResource
```

License
-------

[](#license)

This project is under the [MIT License](LICENSE).

---

Designed with ❤️ for speed and elegance.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance82

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

7

Last Release

97d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0183ab33912132275f6a915a757f22a8a2805548ba04e83547865c1ab04f8dcf?d=identicon)[fede931](/maintainers/fede931)

---

Top Contributors

[![FedeM](https://avatars.githubusercontent.com/u/3460010?v=4)](https://github.com/FedeM "FedeM (115 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/phantom-php-framework/health.svg)

```
[![Health](https://phpackages.com/badges/phantom-php-framework/health.svg)](https://phpackages.com/packages/phantom-php-framework)
```

###  Alternatives

[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M532](/packages/laravel-passport)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

712181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)[laravel/pail

Easily delve into your Laravel application's log files directly from the command line.

91545.3M590](/packages/laravel-pail)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
