PHPackages                             aguilardc/moggie - 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. [API Development](/categories/api)
4. /
5. aguilardc/moggie

ActiveLibrary[API Development](/categories/api)

aguilardc/moggie
================

Moggie PHP Micro Framework. A php micro framework recommended to create bare bones API applications

11PHP

Since May 3Pushed 7mo ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

Moggie PHP
==========

[](#moggie-php)

[![PHP Version required](https://camo.githubusercontent.com/6518db1335bf20fdff07253dc6d6d0cec955b5fb6a8ef1382ac6d73687ecc07f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344382e312d626c7565)](https://camo.githubusercontent.com/6518db1335bf20fdff07253dc6d6d0cec955b5fb6a8ef1382ac6d73687ecc07f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344382e312d626c7565)[![Moggie PHP Version](https://camo.githubusercontent.com/0de84f40b856ca66998d82bb13d393a9764b429c0f4f2aae0abe11f33b92752c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d312e302e302d79656c6c6f77677265656e)](https://camo.githubusercontent.com/0de84f40b856ca66998d82bb13d393a9764b429c0f4f2aae0abe11f33b92752c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d312e302e302d79656c6c6f77677265656e)[![Licence](https://camo.githubusercontent.com/b5726c0a42b7993ed9d0d41929b5cf4de894f227757031e3d366dc22e2e2d7db/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e63652d4d49542d627269676874677265656e)](https://camo.githubusercontent.com/b5726c0a42b7993ed9d0d41929b5cf4de894f227757031e3d366dc22e2e2d7db/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e63652d4d49542d627269676874677265656e)

About
-----

[](#about)

Moggie PHP is a lightweight, syntax elegant web micro-framework.

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

[](#requirements)

Moggie PHP requires PHP 8.1 or greater.

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

[](#installation)

1\. Download the files.

If you're using [Composer](https://getcomposer.org/), you can run the following command:

```
composer require aguilardc/moggie

```

OR you can download them directly and extract them to your web directory.

Routing
-------

[](#routing)

Routing in Moggie PHP is done by matching a URL pattern with a callback function.

```
Route::get('/', function () {
    echo "Hello world!";
});
```

Named Parameters
----------------

[](#named-parameters)

You can specify named parameters in your routes which will be passed along to your callback function.

```
Route::get('/users/:name/:id', function($name, $id){
    echo "hello, $name ($id)!";
});
```

Working with controllers
------------------------

[](#working-with-controllers)

You can specify the name of a controller and the method to execute as a string.

the controller name must be separated from the action name with an @.

```
Route::get('/users', 'UsersController@read');

Route::get('/users/:id', 'UsersController@readById');

Route::post('/users', 'UsersController@create');

Route::put('/users/:id', 'UsersController@update');

Route::delete('/users/:id', 'UsersController@delete');
```

You can make use of static methods like *GET, POST, PUT* and *DELETE*

**Note**: The controller must be created in the **/src/controllers** directory and the called function must exist within it.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

If you discover a security vulnerability within Moggie PHP, please send an e-mail to Nevison Aguilar via . All security vulnerabilities will be promptly addressed.

License
-------

[](#license)

The Moggie PHP micro-framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance44

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![aguilardc](https://avatars.githubusercontent.com/u/6466804?v=4)](https://github.com/aguilardc "aguilardc (19 commits)")

---

Tags

apiapi-frameworkapi-restapi-restfullframework-phpmicroframeworkphprestful-api

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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