plugs / plugs
Plugs is a modern, lightweight PHP framework by Amisu Usman (Celio Natti) - built for developers who crave speed, structure, and freedom. Its modular design and intuitive syntax make web development faster, cleaner, and more connected - your power source for smart PHP projects. ⚡
Requires
- php: ^8.2
- ext-json: *
- ext-pdo: *
- clue/redis-react: ^2.8
- guzzlehttp/guzzle: ^7.10
- league/oauth2-google: ^5.0
- predis/predis: ^3.4
- psr/container: ^1.0
- psr/event-dispatcher: ^1.0
- psr/http-message: ^1.0
- psr/http-server-handler: ^1.0
- psr/http-server-middleware: ^1.0
- react/event-loop: *
- react/http: *
- react/socket: *
- symfony/mailer: ^7.4
- vlucas/phpdotenv: ^5.6
Requires (Dev)
Suggests
- dompdf/dompdf: Required to generate PDF documents (^3.1).
- predis/predis: Required to use the Predis cache driver (^2.3).
- dev-master
- v6.3.1
- v6.3.0
- v6.2.2
- v6.2.1
- v6.2.0
- v6.1.5
- v6.1.4
- v6.1.3
- v6.1.2
- v6.1.1
- v6.1.0
- v6.0.1
- v6.0.0
- v5.9.2
- v5.9.1
- v5.9.0
- v5.8.5
- v5.8.4
- v5.8.3
- v5.8.2
- v5.8.1
- v5.8.0
- v5.7.0
- v5.6.7
- v5.6.6
- v5.6.5
- v5.6.4
- v5.6.3
- v5.6.2
- v5.6.1
- v5.6.0
- v5.5.2
- v5.5.1
- v5.5.0
- v5.4.3
- v5.4.2
- v5.4.1
- v5.4.0
- v5.3.2
- v5.3.1
- v5.3.0
- v5.2.0
- v5.1.1
- v5.1.0
- v5.0.1
- v5.0.0
- v4.8.3
- v4.8.2
- v4.8.1
- v4.8.0
- v4.7.2
- v4.7.1
- v4.7.0
- v4.6.4
- v4.6.3
- v4.6.2
- v4.6.1
- v4.6.0
- v4.5.9
- v4.5.8
- v4.5.7
- v4.5.6
- v4.5.5
- v4.5.4
- v4.5.3
- v4.5.2
- v4.5.1
- v4.5.0
- v4.4.8
- v4.4.7
- v4.4.6
- v4.4.5
- v4.4.4
- v4.4.3
- v4.4.2
- v4.4.1
- v4.4.0
- v4.3.6
- v4.3.5
- v4.3.4
- v4.3.3
- v4.3.2
- v4.3.1
- v4.3.0
- v4.2.5
- v4.2.4
- v4.2.3
- v4.2.2
- v4.2.1
- v4.2.0
- v4.1.0
- v4.0.1
- v4.0.0
- v3.1.8
- v3.1.7
- v3.1.6
- v3.1.5
- v3.1.4
- v3.0.3
- v3.0.2
- v3.0.1
- v3.0.0
- v2.2.9
- v2.2.8
- v2.2.7
- v2.2.6
- v2.2.5
- v2.2.4
- v2.2.3
- v2.2.2
- v2.2.1
- v2.2.0
- v2.1.9
- v2.1.8
- v2.1.7
- v2.1.6
- v2.1.5
- v2.1.4
- v2.1.3
- v2.1.2
- v2.1.1
- v2.1.0
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- v1.6.3
- v1.6.2
- v1.6.1
- v1.6.0
- v1.5.9
- v1.5.8
- v1.5.7
- v1.5.6
- v1.5.5
- v1.5.4
- v1.5.3
- v1.5.2
- v1.5.1
- v1.5.0
- v1.4.6
- v1.4.5
- v1.4.4
- v1.4.3
- v1.4.2
- v1.4.1
- v1.4.0
- v1.3.2
- v1.3.1
- v1.3.0
- v1.2.2
- v1.2.1
- v1.2.0
- v1.1.8
- v1.1.7
- v1.1.6
- v1.1.5
- v1.1.4
- v1.1.3
- v1.1.2
- v1.1.1
- v1.0.1
- v1.0.0
- dev-feature/plugs-css-engine
This package is auto-updated.
Last update: 2026-04-02 12:01:09 UTC
README
Plugs Framework
The High-Performance, AI-Native Core Engine for Modern PHP.
Features • Installation • Setup & Installer • Documentation
⚡ Introduction
Plugs is the lightweight, blazing-fast core engine that powers the ThePlugs application framework. Designed for speed, structure, and developer happiness, it serves as the beating heart of your PHP applications.
- Plugs (
plugs/plugs): The Core Framework Library (Engine). - ThePlugs (
theplugs/theplugs): The Application Skeleton (Starter Project).
Whether you are building a simple API, a complex web application, or an AI-powered agent, Plugs provides the robust foundation you need.
🚀 Key Features
🏎️ Performance First
- Built-in OPcache Management: Production-ready caching strategies out of the box.
- Fast Routing: Optimized route matching algorithm.
- Minimal Footprint: Low memory overhead.
🧠 AI-Native
- Integrated AI Drivers: First-class support for Gemini, Anthropic, OpenAI, and Ollama.
- Agentic Workflows: Build autonomous agents with the built-in
Agentclass. - CLI AI Tools: Chat and fix code directly from the terminal (
ai:chat,ai:fix).
📦 Full-Stack Capable
- Web Installer: A beautiful, built-in installer to set up your environment, database, and admin account in seconds.
- View Engine V5:
- 🛡️ Context-Aware Escaping: Zero-config security that auto-detects HTML, Script, and Attribute contexts.
- 🏷️ Modern Tag Syntax: Native
<if>,<loop>, and<layout>tags for cleaner templates. - 🚀 Next-Gen Performance: Optimized compilation and opcache integration.
- Database: Fluent query builder and Active Record ORM.
- Security: Built-in Shield, CSRF protection, and encryption.
📦 Installation
Option 1: Start a New Project (Recommended)
To create a new application using the Plugs architecture, use the ThePlugs skeleton:
composer create-project theplugs/theplugs my-app
Option 2: Install Core Engine (Integration)
If you already have a project structure and want to integrate the Plugs Core Engine:
composer require plugs/plugs
Note: The core package includes a
public/installfolder that assists in generating the necessary file structure and configuration for your project.
🛠️ Setup & Web Installer
One of the standout features of Plugs is its zero-friction setup. Once you have installed the framework:
-
Start the Server:
php theplugs serve
-
Run the Installer: Navigate to
http://localhost:8000/installin your browser.The installer will guide you through:
- ✅ System Requirements Check
- 🗄️ Database Configuration (MySQL, PostgreSQL, SQLite)
- ⚙️ Application Settings
- 👤 Admin Account Creation
Once completed, your application framework—folders, configuration, and database—will be fully generated and ready to go!
🏁 Quick Start
Routing
Define routes in routes/web.php or routes/api.php:
use Plugs\Facades\Route; Route::get('/', function () { return view('welcome'); }); Route::get('/users', [UserController::class, 'index']);
Controllers
Generate a controller using the CLI:
php theplugs make:controller UserController
namespace App\Http\Controllers; use App\Models\User; use Plugs\Base\Controller\Controller; class UserController extends Controller { public function index() { return view('users.index', [ 'users' => User::all() ]); } }
AI Chat
Interact with your AI driver immediately:
php theplugs ai:chat "Explain how the Service Container works"
📚 Documentation
For comprehensive documentation, please explore the docs folder. Here are some quick links:
🚀 Getting Started
🧩 The Basics
🗄️ Database
🛡️ Security
🤖 AI Features
⚡ Advanced
🤝 Contributing
We welcome contributions to the Core Engine! Please see our CONTRIBUTING.md for details.
📄 License
The Plugs Framework is open-sourced software licensed under the Apache 2.0 License.
Designed & Developed by Celio Natti