{"id":14987300,"url":"https://github.com/simpletine/codeigniter4-hmvc-shield","last_synced_at":"2025-08-01T19:36:50.221Z","repository":{"id":243594475,"uuid":"812692485","full_name":"Simpletine/CodeIgniter4-HMVC-Shield","owner":"Simpletine","description":"This repository features a modular HMVC (Hierarchical Model-View-Controller) architecture for CodeIgniter 4, integrated with the official authentication system, CodeIgniter 4 Shield. It also includes a comprehensive Admin Dashboard built with AdminLTE, providing a robust foundation for scalable and secure web applications.","archived":false,"fork":false,"pushed_at":"2025-01-20T10:19:57.000Z","size":3083,"stargazers_count":10,"open_issues_count":5,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-17T18:47:15.465Z","etag":null,"topics":["authentication","codeigniter4","hmvc-codeigniter","hmvc-framework","shield","simpletine"],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Simpletine.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2024-06-09T16:01:37.000Z","updated_at":"2025-06-02T20:38:57.000Z","dependencies_parsed_at":"2024-06-10T03:44:09.779Z","dependency_job_id":"83db67eb-4eb8-4713-b91e-67e52cc388e6","html_url":"https://github.com/Simpletine/CodeIgniter4-HMVC-Shield","commit_stats":{"total_commits":15,"total_committers":3,"mean_commits":5.0,"dds":0.4,"last_synced_commit":"f2ce3f42e66e16f2abb0293698483148b0302cc5"},"previous_names":["simpletine/codeigniter4-hmvc","simpletine/codeigniter4-hmvc-shield"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/Simpletine/CodeIgniter4-HMVC-Shield","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simpletine%2FCodeIgniter4-HMVC-Shield","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simpletine%2FCodeIgniter4-HMVC-Shield/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simpletine%2FCodeIgniter4-HMVC-Shield/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simpletine%2FCodeIgniter4-HMVC-Shield/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Simpletine","download_url":"https://codeload.github.com/Simpletine/CodeIgniter4-HMVC-Shield/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simpletine%2FCodeIgniter4-HMVC-Shield/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268288646,"owners_count":24226609,"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","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["authentication","codeigniter4","hmvc-codeigniter","hmvc-framework","shield","simpletine"],"created_at":"2024-09-24T14:14:24.551Z","updated_at":"2025-08-01T19:36:50.171Z","avatar_url":"https://github.com/Simpletine.png","language":"CSS","readme":"[![Official Website](https://img.shields.io/badge/Official_Website-Visit-yellow)](https://simpletine.com)   [![YouTube Channel](https://img.shields.io/badge/YouTube_Channel-Subscribe-FF0000)](https://www.youtube.com/channel/UCRuDf31rPyyC2PUbsMG0vZw) \n \n# Codeigniter 4 HMVC \nThis repository features a modular HMVC (Hierarchical Model-View-Controller) architecture for CodeIgniter 4, integrated with the official authentication system, CodeIgniter 4 Shield. It also includes a comprehensive Admin Dashboard built with AdminLTE, providing a robust foundation for scalable and secure web applications.\n\n\n# Installation Guide\n\nCreate a project\n```bash\ncomposer create-project simpletine/codeigniter4-starter ci4_hmvc --stability=dev\n```\n\nCopy `env` file and setup database environment\n```bash\ncp env .env\n```\n\nRun the app, using different port, add options `--port=9000`\n```bash\nphp spark serve\n```\n\n## Configuration\nInstall HMVC package\n\n```bash\ncomposer require simpletine/hmvc-shield\n```\n\nSetup Command Line\n\n```bash\nphp spark simpletine:setup\n```\n\n## Default Auth\n\n```bash\nemail: super@admin.com\npassword: password\n```\n\n## Create User\nUse command line to create a new user\n```bash\nphp spark shield:user create\n```\n\n## Notice\nIf you are using old versions, after composer update, you need to update the `index.php` and `spark` file to root folder (Upgrading to v4.4.8)\n```bash\ncomposer update\ncp vendor/codeigniter4/framework/public/index.php public/index.php\ncp vendor/codeigniter4/framework/spark spark\n```\n\n# Module Commands\nCommands available and funcationality\n\n## General\nCreate a new module named `Blogs`\n```bash\nphp spark module:create Blogs \n```\n\nClone a existing module of `Blogs` and renamed to `Items`\n```bash\nphp spark module:copy Blogs Items \n```\n\nCreate a controller to module `Blogs` named `Categories.php`\n```bash\nphp spark module:controller Blogs Categories \n```\n\nCreate a model to module `Blogs` named `Categories.php`\n```bash\nphp spark module:model Blogs Categories \n```\n\n## Publisher\nPublish require assets to `public` folder\n```bash\nphp spark publish:assets \n```\n\nPublish views with `AdminLTE` to `COnfig/Auth.php`\n```bash\nphp spark publish:views \n```\n\n## Admin\nAdditional options for the commands\n\nCreate a new controller and view to `Admin` module with `AdminLTE`\n```bash\nphp spark module:controller Admin Users --admin \n```\n\n##  Modules Directory\n    App \n    ├── Modules      \n    │   └── Blogs\n    │       ├──  Config\n    │           └──  Routes.php\n    │       ├──  Controllers\n    │           └──  Blogs.php\n    │       ├──  Models\n    │           └──  Blogs.php\n    │       └──  Views\n    │           └──  index.php\n    └── ...  \n\n### Route Group\nAdd new subroutes to `blogs` named `new` with method name\n\n```php\n$routes-\u003eget('new', 'Blogs::new');\n```\n\nSample of routes group after new subroutes\n```php\n$routes-\u003egroup(\n    'blogs', ['namespace' =\u003e '\\Modules\\Blogs\\Controllers'], function ($routes) {\n        $routes-\u003eget('/', 'Blogs::index');\n        $routes-\u003eget('new', 'Blogs::new');\n    }\n);\n```\n\n# PHPCS\n\nDefault instance of containing all rules applicable for the CodeIgniter organization\n```bash\ncomposer run fix\n```\n\n# PSR4\nAt `App/Config/Autoload.php`, you can configure your custom namespace:\n```php\npublic $psr4 = [\n    \"Blogs\" =\u003e APPPATH . \"Modules/Blogs\", // Example \n    // ...\n];\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimpletine%2Fcodeigniter4-hmvc-shield","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimpletine%2Fcodeigniter4-hmvc-shield","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimpletine%2Fcodeigniter4-hmvc-shield/lists"}