phantom-php/framework 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

phantom-php/framework

最新稳定版本:v1.19.6

Composer 安装命令:

composer create-project phantom-php/framework

包简介

A minimalist but powerful PHP framework

README 文档

README

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

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

Our Documentation Manual covers everything you need to master Phantom:

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

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

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

This project is under the MIT License.

Designed with ❤️ for speed and elegance.

统计信息

  • 总下载量: 6
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固