Download the PHP package ci4-cms-erp/ci4ms without Composer
On this page you can find all versions of the php package ci4-cms-erp/ci4ms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ci4-cms-erp/ci4ms
More information about ci4-cms-erp/ci4ms
Files in ci4-cms-erp/ci4ms
Package ci4ms
Short Description Modular CodeIgniter 4 CMS featuring RBAC admin, theming, blog/page management, elFinder media integration, and CLI tooling for rapid customization.
License MIT
Homepage https://github.com/ci4-cms-erp/ci4ms
Informations about the package ci4ms
CI4MS
CI4MS is a CodeIgniter 4-based CMS skeleton that delivers a production-ready, modular architecture with RBAC authorization and theme support. It combines CMS workflows, developer-focused CLI commands, an extensible module system, and customizable front-end themes in a single package.

Key Features
- Authentication & RBAC:
Modules\Authhandles user login, lockouts, and password resets via CodeIgniter Shield. Permissions map toauth_permissions_pagesrecords. - Modular backend: Each feature ships as an independent module (Blog, Pages, Menu, Media, Users, Settings, Theme, etc.) under
modules/*. - Flexible content management: Page and blog entries include SEO metadata, categories, tags, and full comment workflows.
- Media & files: Includes elFinder-powered media management, a built-in file editor, and an in-panel log viewer.
- Automatic Updates: Modernized
UpdateServiceprovides a "One-Click Update" system with atomic file operations, automated GitHub version discovery (bypassing 300-file limits), and secure rollback management. - Security Architecture: Global CSRF protection across all AJAX endpoints, strict HTTP security headers (CSP, HSTS, X-Frame-Options), executable file upload blacklists, and HTMLPurifier sanitization to prevent XSS and RCE attacks.
- Backup Support: Updates automatically trigger a full backup of modified files before applying patches, with a dedicated management interface for restores.
- Theme system: The
public/templates/*structure and theModules\Thememodule enable installing or upgrading themes from ZIP packages. - Setup & automation: Offers a web-based installer (
/install) plus a single CLI command (php spark ci4ms:setup) for automated installation, default data seeding, and route generation. Module scaffolding is available viaphp spark make:module. - Docker support: Ships with a production-ready
Dockerfile,docker-compose.yml, and a GitHub Actions CI workflow out of the box. - SEO helpers:
ci4seoprobuilds meta tags and JSON-LD, whileCommonLibrarycentralizes email, breadcrumbs, and inline shortcode utilities.
Requirements
- PHP 8.2 or newer (
intl,json,mbstring,gd,curl,opensslextensions required) - Composer 2.5+
- MySQL / MariaDB (or any CodeIgniter 4-supported driver)
- Writable directories:
writable/,public/uploads/, optionallypublic/templates/
See composer.json for the full dependency list (e.g. bertugfahriozer/ci4commonmodel, bertugfahriozer/sql2migration, ci4-cms-erp/ext_module_generator, claviska/simpleimage, gregwar/captcha, studio-42/elfinder).
ðŠī Project Activity
Installation
Fresh Project (recommended)
Clone Existing Repository
Docker (recommended for development & CI)
Refer to DOCKER_SETUP.md for full Docker configuration details.
Environment & Configuration
-
Create your
.envfrom the template: -
Update these core settings in
.env:app.baseURLdatabase.default.*- Optional:
cookie.*,honeypot.*,security.*
-
Prepare the routes file:
- If you prefer the web installer, open
/installin the browser and follow the wizard. Use the CLI step below to skip the wizard.
One-Command Setup (CLI)
This single command runs all migrations, seeds default data (modules, permissions, sample content), and creates the initial administrator account. No separate migrate or seed commands are needed.
Run the Dev Server
Access the backend via: https://<domain>/backend
Directory Layout
Key files:
app/Commands/â CLI tooling (make:a*,create:route,ci4ms:setup).app/Filters/Ci4ms.phpâ Install guard, maintenance mode redirect, menu cache.app/Config/DefaultRoutes.phpâ Routes template; copy toRoutes.phpon setup.modules/*â Each module includes its ownConfig/Routes.php,Controllers,Models,Views,Language,Libraries,Filters.public/templates/â Theme assets; each theme requiresinfo.xmlandscreenshot.png.writable/â Cache, logs, temporary files.
Modules
| Module | Purpose | Highlights |
|---|---|---|
| Auth | Authentication lifecycle | Shield-based, CAPTCHA, email activation, reset tokens |
| Backend | Admin shell | Dashboard stats, shared base controller |
| Blog | Blog CRUD | Categories, tags, comments, bad-word filters |
| Pages | Static page management | SEO fields, inline shortcode parsing |
| Menu | Menu builder | Drag-and-drop ordering, slug helpers |
| Media | Media manager | elFinder integration, optional WebP conversion |
| Fileeditor | Project file editor | Safe read/write/rename; dangerous extension blacklist |
| Settings | System configuration | One-click updates, company/social/mail settings, i18n support |
| Users | User & role management | Shield groups, reset tracking |
| Methods | Route â permission mapping | Module toggling, router scan |
| Logs | Log viewer | Browses CodeIgniter log files inside the backend |
| ModulesInstaller | Module ZIP installer | Upload + cache invalidation |
| Theme | Theme manager | ZIP upload, DB migration support, duplicate checks |
| Install | Web installer | Creates .env, triggers migrations |
| Backup | Database backup manager | Create, download, and restore with SQL sanitization |
| DashboardWidgets | Dashboard statistics | Modular widget system for admin overview |
| LanguageManager | Language file manager | Edit and manage translation files from the backend |
See docs/architecture.md for deeper architectural notes.
CLI Commands
| Command | Description |
|---|---|
php spark ci4ms:setup |
Full automated installation: migrations, seeding, default data |
php spark make:module Blog |
Scaffold a new module (Config, Controllers, Views, language files) |
php spark make:abview dashboard |
Generate a backend view from the AdminLTE template |
php spark create:route |
Rebuild app/Config/Routes.php from the template |
php spark migrate --all |
Run all pending migrations across modules |
php spark cache:clear |
Clear all application caches |
Standard CodeIgniter commands (php spark db:seed, php spark key:generate, etc.) are also available.
Developer Notes
- Cache keys:
settings(24h),menus_{locale}(per-locale, 24h),{userId}_permissions. Clear withphp spark cache:clearorcache()->delete(). - Base controller: Extend
Modules\Backend\Controllers\BaseControllerfor new backend controllers; it prepares session user, navigation, mail settings, and shared data. - Permissions: Register new secured routes in
Modules\Methods(or via the database) so the permission filter recognizes them. - Slug generation:
seflink()handles transliteration (including Turkish characters). - Form security: Global CSRF is enabled; backend AJAX endpoints opt out via
BackendConfig::$csrfExcept. - Comment moderation:
CommonLibrary::commentBadwordFilteringhandles bad word filtering and moderation rules. - Theme uploads: Each theme must include
info.xmlandscreenshot.png; missing files trigger a backend warning.
Testing & Maintenance
composer testâ runs PHPUnit.- The GitHub Actions workflow (
.github/workflows/docker-test.yaml) automatically builds the Docker image and runs migrations on every push tomaster. - Maintenance mode: When
settings.maintenanceMode.scalar == 1, theCi4msfilter redirects visitors tomaintenance-mode. - Security:
Fileeditorenforcesrealpathguards and a dangerous extension blacklist (.php,.phtml,.phar,.htaccess) to prevent RCE; destructive operations (deleteFileOrFolder,renameFile) additionally validate against an extension allowlist to block renaming or deleting critical application files.Backuprestore uses SQL statement whitelist to block malicious queries (LOAD_FILE,GRANT, etc.).HTMLPurifierconfig is hardened against XSS bypass (data:URIs blocked,CSS.Trusteddisabled) andCustomRules::getClean()output is persisted on everycreateandupdateflow in Blog and Pages controllers to prevent Stored XSS. All$_SERVERreads replaced with CI4base_url()/site_url()helpers. ConfigureApp.php::$proxyIPsif behind Cloudflare/Nginx.
Additional Docs
docs/architecture.mdâ Architecture, flow, permissions, and extension guidance.docs/developer-handbook.mdâ Environment setup, coding standards, deployment checklist.docs/theme_development.mdâ Theme folder structure, routing, andbase.phpvariables.DOCKER_SETUP.mdâ Docker environment configuration and usage.CHANGELOG.mdâ Full release history.
Questions or contributions? Open an issue or pull request.
ð Security Hall of Fame
A huge thank you to the security researchers who have helped make ci4ms more secure by finding and reporting vulnerabilities.
| Contributor | Contribution | Date |
|---|---|---|
| Lars van Mil | Identified Critical RCE and Information Disclosure vulnerabilities. | Jan 2026 |
| 0xAlchemist | Identified Critical Stored DOM XSS vulnerabilities across Company Info, Social Media, and Mail Settings modules, and a Session Invalidation flaw, leading to Account Takeover, Privilege Escalation, and potential Platform Compromise. | Feb 2026 |
| peeefour | Identified Stored DOM XSS vulnerabilities leading to Account Takeover. | Feb 2026 |
| Hunter. | Identified Critical Stored XSS in Backend & Blog modules allowing Session Hijacking. | Feb 2026 |
| m1scher | Assisted with vulnerability triaging and security testing. | Feb 2026 |
| alpernae | Assisted with vulnerability triaging and security testing. | Feb 2026 |
| offset | Identified Critical vulnerabilities including multiple Stored XSS (Blog & Pages content via broken html_purify validation), Authorization Bypass in Fileeditor destructive operations (delete/rename extension allowlist missing), Install Guard Bypass, and CRLF Injection. |
Apr â May 2026 |
| fg0x0 | Identified Critical Arbitrary File Write (Zip Slip RCE) vulnerabilities in Theme::upload and Backup::restore modules. | Apr 2026 |
| 0xAlchemist , peeefour and DexterHK | Identified Critical Full Account Takeover and Privilege Escalation via Stored DOM Blind XSS in Backup Management (v2). | Apr 2026 |
| dapickle | Identified Critical Authenticated RCE in Theme installation, Arbitrary Database Table Drop in Theme module, and a Session Management Bypass. | Apr 2026 |
| iltosec | Identified Broken Access Control in Media module, Unsafe Reflection in Dashboard Widgets, RCE via template-function parsing in Pages, and Stored XSS in Pages Cover Image URL leading to Account Takeover (the residual instance of the same Cover Image URL Stored XSS class in Blog Categories was subsequently hardened as well). | Jun 2026 |
If you find a security vulnerability, please report it via Security Policy.
ð Bug Reporters
Thanks to the community members who report functional bugs and help us catch regressions before they hit more users.
| Contributor | Contribution | Date |
|---|---|---|
| spreaderman | Reported two installation-blocking regressions in v0.31.10.0: the web installer returning 404 GET install/dbsetup after the configuration step, and php spark ci4ms:setup aborting on the users.profileIMG migration due to a TEXT column with a default value (rejected by MySQL/MariaDB strict mode). |
May 2026 |
Found a non-security bug? Please open an issue with reproduction steps.
All versions of ci4ms with dependencies
bertugfahriozer/ci4commonmodel Version ^1.2
bertugfahriozer/ci4seopro Version ^v1.0.0
bertugfahriozer/sql2migration Version ^1.0
ci4-cms-erp/ext_module_generator Version ^1.1
claviska/simpleimage Version 4.4.0
codeigniter4/framework Version 4.7.2
codeigniter4/settings Version 2.2
codeigniter4/shield Version 1.3.0
codeigniter4/translations Version 4.7.2
ezyang/htmlpurifier Version 4.19
gregwar/captcha Version 1.3.0
maxmind-db/reader Version ^1.13
studio-42/elfinder Version 2.1.68