PHPackages                             plugs/plugs - 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. plugs/plugs

ActiveLibrary[Framework](/categories/framework)

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. ⚡

v6.3.2(1mo ago)11601Apache-2.0PHPPHP ^8.2CI failing

Since Oct 19Pushed 1mo agoCompare

[ Source](https://github.com/celionatti/plugs)[ Packagist](https://packagist.org/packages/plugs/plugs)[ Docs](https://github.com/celionatti/plugs)[ RSS](/packages/plugs-plugs/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (44)Versions (166)Used By (1)

 [ ![Plugs Framework Banner](/docs/banner.svg) ](https://github.com/celionatti/plugs)

[![](docs/logo.svg)](docs/logo.svg) Plugs Framework
===================================================

[](#-plugs-framework)

 **The High-Performance, AI-Native Core Engine for Modern PHP.**

 [Features](#features) • [Installation](#installation) • [Setup &amp; Installer](#setup) • [Documentation](#documentation)

---

⚡ Introduction
--------------

[](#-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
------------------------------------------------

[](#-key-features)

### 🏎️ Performance First

[](#️-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

[](#-ai-native)

- **Integrated AI Drivers**: First-class support for **Gemini**, **Anthropic**, **OpenAI**, and **Ollama**.
- **Agentic Workflows**: Build autonomous agents with the built-in `Agent` class.
- **CLI AI Tools**: Chat and fix code directly from the terminal (`ai:chat`, `ai:fix`).

### 📦 Full-Stack Capable

[](#-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 ``, ``, and `` 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
----------------------------------------------------

[](#-installation)

### Option 1: Start a New Project (Recommended)

[](#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)

[](#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/install` folder that assists in generating the necessary file structure and configuration for your project.

🛠️ Setup &amp; Web Installer
-----------------------------------------------------------

[](#️-setup--web-installer)

One of the standout features of Plugs is its zero-friction setup. Once you have installed the framework:

1. **Start the Server**:

    ```
    php theplugs serve
    ```
2. **Run the Installer**: Navigate to `http://localhost:8000/install` in 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
-------------

[](#-quick-start)

### Routing

[](#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

[](#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

[](#ai-chat)

Interact with your AI driver immediately:

```
php theplugs ai:chat "Explain how the Service Container works"
```

📚 Documentation
------------------------------------------------------

[](#-documentation)

For comprehensive documentation, please explore the [docs](docs/) folder. Here are some quick links:

### 🚀 Getting Started

[](#-getting-started)

- [Introduction](docs/getting-started/introduction.md)
- [Installation](docs/getting-started/installation.md)
- [Configuration](docs/getting-started/configuration.md)

### 🧩 The Basics

[](#-the-basics)

- [Routing](docs/the-basics/routing.md)
- [Controllers](docs/the-basics/controllers.md)
- [Requests &amp; Responses](docs/the-basics/requests.md)
- [Views &amp; Components](docs/the-basics/views.md)
- [Validation](docs/security/validation.md)

### 🗄️ Database

[](#️-database)

- [Database &amp; ORM](docs/database/getting-started.md)
- [Query Builder](docs/database/query-builder.md)
- [Migrations](docs/database/migrations.md)

### 🛡️ Security

[](#️-security)

- [Authentication](docs/security/authentication.md)
- [CSRF Protection](docs/security/csrf-protection.md)
- [Security Shield](docs/security/security-shield.md)

### 🤖 AI Features

[](#-ai-features)

- [AI Integration](docs/features/ai.md)

### ⚡ Advanced

[](#-advanced)

- [Queues](docs/advanced/queues.md)
- [Caching](docs/advanced/cache.md)
- [CLI Commands](docs/advanced/cli-commands.md)

🤝 Contributing
--------------

[](#-contributing)

We welcome contributions to the Core Engine! Please see our [CONTRIBUTING.md](CONTRIBUTING.md) for details.

📄 License
---------

[](#-license)

The Plugs Framework is open-sourced software licensed under the **[Apache 2.0 License](LICENSE)**.

---

Designed &amp; Developed by **Celio Natti**

###  Health Score

48

—

FairBetter than 95% of packages

Maintenance90

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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 ~1 days

Total

164

Last Release

46d ago

Major Versions

v1.6.3 → v2.0.02025-12-16

v2.2.9 → v3.0.02026-01-14

v3.1.8 → v4.0.02026-01-25

v4.8.3 → v5.0.02026-02-09

v5.9.2 → v6.0.02026-03-20

PHP version history (2 changes)v1.0.0PHP ^8.0

v4.2.2PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/e98a2b6465bdfc16eb9100c2d3578db10519312b01e73169efb9367ebb59b9b6?d=identicon)[celionatti](/maintainers/celionatti)

---

Top Contributors

[![celionatti](https://avatars.githubusercontent.com/u/68065074?v=4)](https://github.com/celionatti "celionatti (845 commits)")

---

Tags

phpframeworkmvcfastplugs

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/plugs-plugs/health.svg)

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[cakephp/cakephp

The CakePHP framework

8.8k18.5M1.6k](/packages/cakephp-cakephp)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[silverstripe/framework

The SilverStripe framework

7213.5M2.5k](/packages/silverstripe-framework)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[yiisoft/yii-middleware

Yii Middleware

21151.3k1](/packages/yiisoft-yii-middleware)

PHPackages © 2026

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