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

ActiveProject[Framework](/categories/framework)

squehub/squehub
===============

A modern, lightweight PHP framework designed for building scalable and elegant web applications with simplicity and flexibility.

1.2.2(1mo ago)012MITPHPPHP ^7.4 || ^8.0

Since Jul 24Pushed 1mo agoCompare

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

READMEChangelogDependencies (54)Versions (4)Used By (0)

&lt;&lt;&lt;&lt;&lt;&lt;&lt; HEAD

🐿️ Squehub PHP Framework
========================

[](#️-squehub-php-framework)

**Squehub** is a lightweight, flexible, and developer-friendly PHP framework for building web applications with modern tools and clean architecture. Designed for speed, simplicity, and extensibility.

---

🚀 Features
----------

[](#-features)

- 🧭 Simple Routing System
- 📦 MVC Architecture
- 🧠 Blade-like Templating Engine
- 🔐 CSRF Protection
- 🧰 Built-in CLI Tool
- 🧱 Middleware Support
- 🧪 Custom Components &amp; Packages

---

📦 Installation
--------------

[](#-installation)

You can install Squehub using Composer:

```
composer create-project squehub/squehub myproject
Replace myproject with your desired folder name.

or

git clone https://github.com/squehub/squehub.git your-project
cd your-project
composer install

🛠 Usage
Start the development server:
        php squehub start

Create a controller:
        php squehub make:controller UserController

Run migrations:
        php squehub migrate

Make a middleware:
        php squehub make:middleware AuthMiddleware

Dump sample data:
        php squehub make:dumpper AdminUserDumper

View all commands:
        php squehub help

📁 Project Structure

.
├── app/                                  # Application source files
│   ├── Clis/                             # CLI command handlers
│   │   ├── dump/                         # Commands for data dumping/seeding
│   │   │   └── dump.php                  # Main dumper entry
│   │   ├── make/                         # Commands for generating boilerplate code
│   │   │   ├── MakeController.php        # Generate a new controller
│   │   │   ├── MakeDumper.php            # Generate a new data dumper
│   │   │   ├── MakeMiddleware.php        # Generate a new middleware class
│   │   │   ├── MakeMigration.php         # Generate a new migration file
│   │   │   └── MakeModel.php             # Generate a new model
│   │   └── clis.php                      # CLI command entry file
│
│   ├── Components/                       # Reusable logic components
│   │   ├── ControlStructuresComponent.php # Handles @if, @foreach, etc.
│   │   ├── DateTimeComponent.php         # Blade-like date/time directives
│   │   └── Notification.php              # Notification handler logic
│
│   ├── Core/                             # Core framework classes
│   │   ├── Exceptions/                   # Custom error/exception handlers
│   │   │   ├── CustomPrettyPageHandler.php # Pretty error page handler
│   │   │   └── debug.php                 # Debug error page
│   │   ├── controller.php                # Base controller class
│   │   ├── Database.php                  # Database connection class
│   │   ├── Dumper.php                    # Dumper base class
│   │   ├── Helper.php                    # Global helper functions
│   │   ├── Mail.php                      # Mail sending utility
│   │   ├── MiddlewareHandler.php         # Middleware runner
│   │   ├── Model.php                     # Base model class (ORM)
│   │   ├── Notification.php              # Notification trigger
│   │   ├── Service.php                   # Base service logic
│   │   ├── Task.php                      # Scheduled task base
│   │   ├── Verification.php              # Verification code logic
│   │   └── View.php                      # View rendering engine
│
│   └── Routes/
│       └── web.php                       # Default application routes
│
├── assets/                               # Frontend assets (CSS, JS, images)
│
├── config/                               # App-wide configuration files
│   ├── debug.php                         # Debug mode settings
│   └── mail.php                          # Mail server settings
│
├── database/
│   ├── dumper/                           # Seed/dump classes
│   ├── migrations/                       # Database migration scripts
│   └── mg.sql                            # Optional raw SQL dump
│
├── project/                              # App-specific logic
│   ├── controllers/                      # User-defined controllers
│   ├── Middleware/                       # User-defined middleware
│   ├── Models/                           # User-defined models
│   ├── Package/                          # Custom packages
│   └── Routes/                           # User-defined route files
│
├── public/                               #
│   ├── assets/                           #
│   ├── .htaccess/                        #
│   └── index.php/
├── scripts/                              # Setup and automation scripts
│   └── message/                          # Custom CLI messages
│
├── storage/
│   └── backups/                          # Backups and local storage
│       └── dev/                          # Development backup dumps
│
├── vendor/                               # Composer-managed dependencies
│
├── views/                                # Blade-like UI templates
│   ├── default/
│   │   └── error/
│   │       ├── 404.php                   # Plain 404 error view
│   │       ├── 404.squehub.php           # Custom 404 error view
│   │       ├── 500.php                   # Plain 500 error view
│   │       └── 500.squehub.php           # Custom 500 error view
│   └── home/
│       ├── welcome.squehub.php           # Main homepage view
│       └── welcome2.squehub.php          # Alternate homepage view
│
├── .env/                                 # Environment variable config
├── .gitignore                            # Git ignored files list
├── .htaccess                             # Apache rewrite rules
├── bootstrap.php                         # App bootstrap loader
├── composer.json                         # Composer package definitions
├── composer.lock                         # Composer lockfile
├── config.php                            # Global configuration entry
├── index.php                             # Entry point of the app (public)
├── Router.php                            # Routing engine
├── squehub                               # CLI launcher file
└── README.md                             # Project overview and docs

🧪 Contributing
Feel free to fork and contribute to Squehub!
Use pull requests to submit patches or improvements.

📄 License
Squehub is open-source and available under the MIT License.
=======
# Squehub PHP Framework 🌟

Welcome to the **Squehub PHP Framework**, a lightweight yet powerful framework designed to make building modern web applications easy, scalable, and fun! Whether you're a seasoned developer or just starting out, Squehub provides the tools and flexibility to bring your ideas to life.

---

## 🚀 Features

- **MVC Architecture:** Clean separation of concerns with built-in support for Models, Views, and Controllers.
- **Powerful Routing:** Easy-to-configure routes for defining your application's endpoints.
- **Database ORM:** Seamlessly interact with your database using a fluent and expressive syntax.
- **Built-in CLI Tools:** Manage migrations, serve your app locally, and more with the `php squehub` CLI.
- **Customizable Middleware:** Handle authentication, authorization, and other request-level operations.
- **Flexible Templating:** Use the Twig templating engine for clean and reusable views.
- **Event-Driven System:** Make your app reactive by leveraging event dispatchers.
- **Validation Rules:** Ensure robust data handling and integrity with built-in validators.
- **Open Source:** Squehub is built by the community, for the community. Contribute or create your own packages!

---

## 🛠️ Installation

### Using Composer:
Get started by creating a new project with Squehub:
```bash
composer create-project squehub/squehub my-project
>>>>>>> c3afbf835f797dfcb5857c7f9f19c5c35a3d14bd
## 🛠 Setup Instructions

1. Clone the repo
2. Copy the example env file:
   ```bash
   cp .env.example .env
```

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance90

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.9% 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 ~119 days

Total

3

Last Release

51d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9be4e3604bc2d8bc25d3b829d603f8824da5feda04d6f68425ceaea19175f86b?d=identicon)[squehub](/maintainers/squehub)

---

Top Contributors

[![squehubbot](https://avatars.githubusercontent.com/u/178403014?v=4)](https://github.com/squehubbot "squehubbot (8 commits)")[![valentinekalu](https://avatars.githubusercontent.com/u/43905395?v=4)](https://github.com/valentinekalu "valentinekalu (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[shopware/platform

The Shopware e-commerce core

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

The Laravel Framework.

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

Contao Open Source CMS

1231.6M2.3k](/packages/contao-core-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M647](/packages/sylius-sylius)

PHPackages © 2026

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