{"id":19737574,"url":"https://github.com/aguilardc/moggiephp","last_synced_at":"2025-10-17T14:17:51.501Z","repository":{"id":153393810,"uuid":"629140363","full_name":"aguilardc/MoggiePHP","owner":"aguilardc","description":"Moggie PHP is a lightweight, syntax elegant web micro-framework.","archived":false,"fork":false,"pushed_at":"2023-05-10T00:48:26.000Z","size":57,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-24T06:08:28.015Z","etag":null,"topics":["api","api-framework","api-rest","api-restfull","framework-php","microframework","php","restful-api"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aguilardc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-17T17:50:16.000Z","updated_at":"2023-04-24T04:18:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"32cc30ef-5438-4153-9ff5-ca679ca8c074","html_url":"https://github.com/aguilardc/MoggiePHP","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aguilardc/MoggiePHP","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aguilardc%2FMoggiePHP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aguilardc%2FMoggiePHP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aguilardc%2FMoggiePHP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aguilardc%2FMoggiePHP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aguilardc","download_url":"https://codeload.github.com/aguilardc/MoggiePHP/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aguilardc%2FMoggiePHP/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264674860,"owners_count":23647875,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","api-framework","api-rest","api-restfull","framework-php","microframework","php","restful-api"],"created_at":"2024-11-12T01:11:40.560Z","updated_at":"2025-10-17T14:17:51.414Z","avatar_url":"https://github.com/aguilardc.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eMoggie PHP\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cimg alt=\"PHP Version required\" src=\"https://img.shields.io/badge/php-%3E%3D8.1-blue\"\u003e\n\u003cimg alt=\"Moggie PHP Version\" src=\"https://img.shields.io/badge/version-1.0.0-yellowgreen\"\u003e\n\u003cimg alt=\"Licence\" src=\"https://img.shields.io/badge/licence-MIT-brightgreen\"\u003e\n\u003c/p\u003e\n\n## About\n\nMoggie PHP is a lightweight, syntax elegant web micro-framework.\n\n## Requirements\n\nMoggie PHP requires PHP 8.1 or greater.\n\n## Installation\n\n1\\. Download the files.\n\nIf you're using [Composer](https://getcomposer.org/), you can run the following command:\n\n```\ncomposer require aguilardc/moggie\n```\n\nOR you can download them directly and extract them to your web directory.\n\n## Routing\n\nRouting in Moggie PHP is done by matching a URL pattern with a callback function.\n\n```php\nRoute::get('/', function () {\n    echo \"Hello world!\";\n});\n```\n\n## Named Parameters\n\nYou can specify named parameters in your routes which will be passed along to your callback function.\n\n```php\nRoute::get('/users/:name/:id', function($name, $id){\n    echo \"hello, $name ($id)!\";\n});\n```\n\n## Working with controllers\n\nYou can specify the name of a controller and the method to execute as a string.\n\nthe controller name must be separated from the action name with an @.\n\n```php\nRoute::get('/users', 'UsersController@read');\n\nRoute::get('/users/:id', 'UsersController@readById');\n\nRoute::post('/users', 'UsersController@create');\n\nRoute::put('/users/:id', 'UsersController@update');\n\nRoute::delete('/users/:id', 'UsersController@delete');\n```\n\nYou can make use of static methods like _GET, POST, PUT_ and _DELETE_\n\n**Note**: The controller must be created in the **/src/controllers** directory and the called function must exist within\nit.\n\n## Security Vulnerabilities\n\nIf you discover a security vulnerability within Moggie PHP, please send an e-mail to Nevison Aguilar\nvia [aguilardc1105@gmail.com](mailto:aguilardc1105@gmail.com). All security vulnerabilities will be promptly addressed.\n\n## License\n\nThe Moggie PHP micro-framework is open-sourced software licensed under\nthe [MIT license](https://opensource.org/licenses/MIT).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faguilardc%2Fmoggiephp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faguilardc%2Fmoggiephp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faguilardc%2Fmoggiephp/lists"}