PHPackages                             cannonphp/app - 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. cannonphp/app

ActiveLibrary[Framework](/categories/framework)

cannonphp/app
=============

Cannon MVC is an exceptional web application framework that embraces an expressive and elegant syntax.

v1.0.0(2y ago)10131MITPHP

Since Jun 29Pushed 2y ago1 watchersCompare

[ Source](https://github.com/cannonmaster/CannonPHP)[ Packagist](https://packagist.org/packages/cannonphp/app)[ RSS](/packages/cannonphp-app/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

CannonPHP MVC Framework
=======================

[](#cannonphp-mvc-framework)

[![License: MIT](https://camo.githubusercontent.com/f8df3091bbe1149f398a5369b2c39e896766f9f6efba3477c63e9b4aa940ef14/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e)](https://opensource.org/licenses/MIT)

Cannon MVC is an exceptional web application framework that embraces an expressive and elegant syntax. We strongly believe that development should be an enjoyable and creative experience, leading to true fulfillment. With Cannon MVC, you can bid farewell to the cumbersome aspects of development by effortlessly handling common tasks encountered in numerous web projects. Some of the remarkable benefits and features of Cannon MVC include:

Features
--------

[](#features)

- **Routing**: The framework offers a powerful routing system that effortlessly maps incoming requests to controller actions.
- **Di container**: Simplifies the management of dependencies, promoting loose coupling and flexible object creation and handling.
- **session and cache storage**: Provides seamless integration with multiple session and cache drivers for efficient data storage.
- **Tempalte engine**: Supports the popular Twig template engine out of the box, or allows the use of your preferred choice.
- **Hooks**: Enables the execution of custom code before and after controller actions for enhanced customization.
- **Database ORM**: Includes an intuitive and feature-rich database ORM that simplifies database operations within the framework.

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

[](#requirements)

- PHP version 8 or higher
- Composer () for dependency management

Installation
------------

[](#installation)

1. create a new CannonPHP application using composer’s create-project command:

```
composer create-project --prefer-dist cannonphp/app
```

2. `cd app`, run `composer install` to install the required dependencies.
3. Configure your web server to point to the public directory as the document root.
4. Customize the framework's `Config.php` file located in the `App` directory, such as database settings, routes, etc.
5. Start building your application by creating controllers, models, and views in their respective directories.

Usage
-----

[](#usage)

1. Define your application routes in the `routes.php` file located in the `App` directory.
2. Create controllers in the `App/Controller` directory to handle different actions.
3. Define models in the `App/Model` directory to interact with the database.
4. Create views in the `App/View` directory to render the presentation layer.
5. Customize the `BaseController` class according to your application's needs if necessary.
6. Extends the framework by adding your own service to the framework using service provider if necessary.

Contributing
------------

[](#contributing)

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

License
-------

[](#license)

This MVC framework is open-source software licensed under the [MIT License](https://opensource.org/licenses/MIT).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity44

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

Unknown

Total

1

Last Release

1054d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/84e766719efff615e5e053defb6ee59ae387f1c4e276da35b9c1738e170b3739?d=identicon)[cannonmaster](/maintainers/cannonmaster)

---

Top Contributors

[![cannonmaster](https://avatars.githubusercontent.com/u/130884963?v=4)](https://github.com/cannonmaster "cannonmaster (34 commits)")

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[symfony/symfony

The Symfony PHP framework

31.3k86.3M2.2k](/packages/symfony-symfony)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19462.3M1.3k](/packages/drupal-core)[sulu/sulu

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

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

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6939.5M343](/packages/drupal-core-recommended)

PHPackages © 2026

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