{"id":18811679,"url":"https://github.com/ci4-cms-erp/ci4ms-mongodb","last_synced_at":"2025-09-22T23:11:08.808Z","repository":{"id":43415171,"uuid":"366189092","full_name":"ci4-cms-erp/ci4ms-mongodb","owner":"ci4-cms-erp","description":"We made a modular management system. This system has two database type MongoDB and MYSQL. Very simple coding and you can add your modules and plugins follow with document.","archived":false,"fork":false,"pushed_at":"2023-02-01T03:13:02.000Z","size":22021,"stargazers_count":8,"open_issues_count":11,"forks_count":4,"subscribers_count":3,"default_branch":"dev","last_synced_at":"2024-05-02T22:00:12.435Z","etag":null,"topics":["auth","authentication","codeigniter","php","rbac","roles"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/ci4-cms-erp.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":"2021-05-10T22:16:57.000Z","updated_at":"2024-04-23T23:01:05.000Z","dependencies_parsed_at":"2023-02-17T01:45:49.645Z","dependency_job_id":null,"html_url":"https://github.com/ci4-cms-erp/ci4ms-mongodb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ci4-cms-erp%2Fci4ms-mongodb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ci4-cms-erp%2Fci4ms-mongodb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ci4-cms-erp%2Fci4ms-mongodb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ci4-cms-erp%2Fci4ms-mongodb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ci4-cms-erp","download_url":"https://codeload.github.com/ci4-cms-erp/ci4ms-mongodb/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223604491,"owners_count":17172309,"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":["auth","authentication","codeigniter","php","rbac","roles"],"created_at":"2024-11-07T23:27:17.631Z","updated_at":"2025-09-22T23:11:03.782Z","avatar_url":"https://github.com/ci4-cms-erp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Login steps with mongodb in Codeigniter 4\n\n## Features\n\nThis is meant to be a one-stop shop for 99% of your web-based authentication needs with CI4. It includes the following primary features:\n\n\u003cul\u003e\n\u003cli\u003ePassword-based authentication with remember-me functionality for web apps\nFlat RBAC per NIST standards, described \u003ca href=\"https://csrc.nist.gov/Projects/Role-Based-Access-Control\"\u003ehere\u003c/a\u003e and \u003ca href=\"https://www.semanticscholar.org/paper/A-formal-model-for-flat-role-based-access-control-Khayat-Abdallah/aeb1e9676e2d7694f268377fc22bdb510a13fab7?p2df\"\u003ehere\u003c/a\u003e.\u003c/li\u003e\n\u003cli\u003eAll views necessary for login, registration and forgotten password flows.\u003c/li\u003e\n\u003cli\u003ePublish files to the main application via a CLI command for easy customization\u003c/li\u003e\n\u003cli\u003eEmail-based account verification\u003c/li\u003e\n\u003c/ul\u003e\n\n## Installation\nYou must have Mongo Driver and Composer. Follow these links for installation:\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://getcomposer.org/doc/00-intro.md#installation-linux-unix-macos\"\u003eComposer installation\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://www.php.net/manual/en/mongo.installation.php\"\u003eMongo driver installation\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\n**you must do in terminal**\n\nif you are installing to host, you must change file permissions user and group.\n\n\u003ccode\u003echown user:group codeigniter_project_file\u003c/code\u003e\n\n\u003chr\u003e\n\nif do you want manual install you can follow these steps.\n```\nmongo\n\nuse yourDatabase\n\ndb.createUser({\n    user: \"userName\",\n    pwd: passwordPrompt(),      // Or  \"cleartextPassword\"\n    roles: [{role: \"readWrite\", db: \"yourDatabase\"}]\n});\n```\n\nCreate a config file at app/Config. File name should be MongoConfig.php.\n\n```\n\u003c?php namespace Config;\n\nuse CodeIgniter\\Config\\BaseConfig;\n\nclass MongoConfig extends BaseConfig\n{\n    public $db = \"kun-cms\"; //your database\n    public $hostname = '127.0.0.1'; //if you use remote server you should change host address\n    public $userName = \"beaver\";\n    public $password = \"kun12345678\";\n    public $prefix = \"\";\n    public $port = 27017; //if you use different port you should change port address\n}\n```\n\nMove other files and change namespace.\n\n### \u003cb\u003eCongratulations!\u003c/b\u003e\n\u003chr\u003e\n\n### Automatic Installation\nAfter made settings. you should go link `http://site/installation` follow form attributes. Finish installation automaticly must detele installation module. If not delete installation module you must follow this steps:\n\u003cul\u003e\n\u003cli\u003eyou must delete \u003ccode\u003emodules/installation\u003c/code\u003e module\u003c/li\u003e\n\u003cli\u003eyou should update \u003ccode\u003eapp/Config/Autoload.php\u003c/code\u003e. you will see a note for update.\u003c/li\u003e\n\u003c/ul\u003e\n\n# In preparation\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fci4-cms-erp%2Fci4ms-mongodb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fci4-cms-erp%2Fci4ms-mongodb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fci4-cms-erp%2Fci4ms-mongodb/lists"}