{"id":15029929,"url":"https://github.com/michaltaglewski/m-gine","last_synced_at":"2026-04-01T22:41:36.996Z","repository":{"id":41278720,"uuid":"496652309","full_name":"michaltaglewski/m-gine","owner":"michaltaglewski","description":"PHP framework","archived":false,"fork":false,"pushed_at":"2022-07-11T10:40:38.000Z","size":106,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-12T12:34:42.742Z","etag":null,"topics":["console-application","framework","mvc","php8","web"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/michaltaglewski.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-05-26T14:27:47.000Z","updated_at":"2022-06-10T09:43:24.000Z","dependencies_parsed_at":"2022-07-14T11:30:44.121Z","dependency_job_id":null,"html_url":"https://github.com/michaltaglewski/m-gine","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/michaltaglewski/m-gine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaltaglewski%2Fm-gine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaltaglewski%2Fm-gine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaltaglewski%2Fm-gine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaltaglewski%2Fm-gine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michaltaglewski","download_url":"https://codeload.github.com/michaltaglewski/m-gine/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaltaglewski%2Fm-gine/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31013750,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-27T02:58:54.984Z","status":"ssl_error","status_checked_at":"2026-03-27T02:58:46.993Z","response_time":164,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["console-application","framework","mvc","php8","web"],"created_at":"2024-09-24T20:12:01.322Z","updated_at":"2026-04-01T22:41:36.977Z","avatar_url":"https://github.com/michaltaglewski.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"src/builder/assets/public/img/logo-120.png\"\u003e\n\u003c/p\u003e\n\n# M-Gine Framework\n\n## Requirements\n\n* PHP \u003e= 8.0\n\n## Installing via Composer\n\nCreate the composer.json file as follows:\n\n```json\n{\n    \"require-dev\": {\n        \"michaltaglewski/m-gine\": \"dev-main\"\n    }\n}\n```\n\nRun the composer installer:\n\n```bash\nphp composer.phar install\n```\n\nThen initiate your first project. See the [M-gine commands](#m-gine-commands) section below.\n\n## M-Gine commands\n\nRight after the composer installation is completed, you are able to use **M-Gine** commands tool.\n\nExecute binary file located in the vendor directory, like following:\n\n```bash\n./vendor/bin/mgine help\n```\n\nThis command should display something similar to:\n\n```bash\n$ ./vendor/bin/mgine help\n\nM-Gine commands (0.0.1)\n\nAvailable commands:\n  create-project       Creates a new project. Usage: project-create [name]\n  init-project         Initializes a new project in current directory. Usage: init-project\n  create-controller    Creates a Controller. Usage: create-controller [name] [namespace]\n```\n\nInitiate a project:\n\n```bash\n$ ./vendor/bin/mgine init-project\n```\n\n## Project Directory Structure\n\n```\nconfig/             framework configuration\ncontrollers/        MVC controllers directory\npublic/             web public folder (includes index.php)\nmodels/             MVC models directory\ntests/              tests of the core framework code\nviews/              MVC views directory\n```\n\n## Configuration\n\nConfigure your main web configuration file **config/web.php**:\n```php\n\u003c?php\n\nreturn [\n    'basePath' =\u003e dirname(__DIR__),\n    'language' =\u003e 'en',\n    'charset' =\u003e 'utf-8',\n    'components' =\u003e [\n        'urlManager' =\u003e require 'urlManager.php',\n        'db' =\u003e require 'db.php'\n    ]\n];\n```\n\n### Url Manager component \n\n**config/urlManager.php**:\n```php\n\u003c?php\n\nreturn [\n    'class' =\u003e 'mgine\\web\\UrlManager',\n    'defaultRoute' =\u003e 'home/index',\n    'rules' =\u003e [\n        /**\n         * Add your URL rules here\n         * '/' =\u003e 'home/index',\n         * '/about' =\u003e 'home/about',\n         * '/contact' =\u003e 'home/contact',\n         */\n    ]\n];\n```\n\n### Database connection\n\n**config/db.php**:\n```php\n\u003c?php\n\nreturn [\n    'class' =\u003e 'mgine\\db\\MysqlConnection',\n    'dsn' =\u003e 'mysql:host=localhost;dbname=my_db_name',\n    'username' =\u003e 'my_db_user',\n    'password' =\u003e 'my_db_user_password',\n    'charset' =\u003e 'utf8',\n];\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaltaglewski%2Fm-gine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaltaglewski%2Fm-gine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaltaglewski%2Fm-gine/lists"}