ci4-cms-erp / ci4ms
CodeIgniter 4 CMS
Installs: 110
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 2
Forks: 1
Open Issues: 6
Language:JavaScript
Type:project
Requires
- php: ^8.1
- bertugfahriozer/ci4commonmodel: ^1.0
- claviska/simpleimage: 4.0.6
- codeigniter4/framework: 4.5.7
- codeigniter4/translations: ^4.1
- gregwar/captcha: 1.2.1
- jasongrimes/paginator: 1.0.3
- melbahja/seo: 2.1.1
- phpmailer/phpmailer: 6.9.2
- studio-42/elfinder: 2.1.65
Requires (Dev)
- fakerphp/faker: ^1.9
- mikey179/vfsstream: ^1.6
- phpunit/phpunit: ^10.5.16
README
Login steps with mongodb in Codeigniter 4
Features
This is meant to be a one-stop shop for 99% of your web-based authentication needs with CI4. It includes the following primary features:
- Password-based authentication with remember-me functionality for web apps Flat RBAC per NIST standards, described here and here.
- All views necessary for login, registration and forgotten password flows.
- Publish files to the main application via a CLI command for easy customization
- Email-based account verification
How to Install ?
- Let's create the project along with Composer.
composer create-project ci4-cms-erp/ci4ms myproject
- Copy the env file in the folder as .env. Then the section that needs to be updated in the .env file is as follows.
php spark env development
... #-------------------------------------------------------------------- # APP #-------------------------------------------------------------------- app.baseURL = 'https://ci4ms/' ... #-------------------------------------------------------------------- # DATABASE #-------------------------------------------------------------------- database.default.hostname = localhost database.default.database = test database.default.username = root database.default.password = database.default.DBDriver = MySQLi database.default.DBPrefix = ci4ms_ # database.default.port = 3306 ... #-------------------------------------------------------------------- # HONEYPOT #-------------------------------------------------------------------- honeypot.hidden = 'true' honeypot.label = 'Honey Pot CMS' honeypot.name = 'honeypot_cms' honeypot.template = '<label>{label}</label><input type="text" name="{name}" value=""/>' honeypot.container = '<div style="display:none">{template}</div>' #-------------------------------------------------------------------- # SECURITY #-------------------------------------------------------------------- security.csrfProtection = 'session' security.tokenRandomize = true security.tokenName = 'csrf_token_ci4ms' security.headerName = 'X-CSRF-TOKEN' security.cookieName = 'csrf_cookie_ci4ms' security.expires = 7200 security.regenerate = true security.redirect = false security.samesite = 'Lax' ...
- After making your adjustments in the ENV file, navigate to the folder in the terminal.
cd myproject
- Let's use the codes added to Spark sequentially.
php spark migrate php spark db:seed Ci4msDefaultsSeeder php spark create:route php spark key:generate
Once the installation is successfully completed, you will encounter the initial homepage. You can now develop the theme, build modules, and make additions to bring your project to the desired level.