Skip to content
CAI
Software that uses CAICheck a score

chriskacerguis/codeigniter-restserver

33.6

Weak · 19 September 2026

3.1k

lines of production code

PHP

primary language

1

measurement over time

CAI band scale
CAI lens gauges

What this system is

This system is a CodeIgniter 3 library that provides a RESTful server implementation for building APIs. It handles HTTP method routing, response formatting in various data types, and includes configuration for authentication and error handling. The package is distributed via Composer and supports localized error messages in multiple languages.

Features

Added REST API error message translations for multiple languages

This change introduces new language files for the REST controller, providing translated error messages for Bulgarian, Dutch, English, French, German, Greek, Indonesian, Italian, Korean, Brazilian Portuguese, Romanian, Serbian (Cyrillic and Latin), Simplified Chinese, Traditional Chinese, Spanish, and Turkish. These files cover standard API responses such as invalid keys, unauthorized access, IP restrictions, and method limits, ensuring users see localized feedback when interacting with the REST API.

language, src/auth · high confidence

Initial release of CodeIgniter RestServer library

This change introduces the CodeIgniter RestServer library, providing a fully RESTful server implementation for CodeIgniter 3. It includes the core library files, a configuration file, and a base controller for building REST APIs. The package is distributed via Composer and requires PHP 7.2+ and CodeIgniter 3.1.11+. The release also adds a .gitignore file to exclude IDE and vendor artifacts, and replaces the previous EllisLab license with the MIT License.

(repo-wide) · high confidence

Initial release of the CodeIgniter REST Server library

This change introduces the core components of the REST Server library for CodeIgniter, including the \RestController\ class for handling HTTP methods and responses, the \Format\ class for converting data to JSON, XML, CSV, and other formats, and the \rest.php\ configuration file for setting defaults like authentication and output formats. It also includes a security-focused \index.html\ file to prevent directory listing.

src · high confidence

Removals

Removal of legacy CodeIgniter 1.7 system files

The system directory no longer includes the core CodeIgniter 1.7 files (such as Base4.php, Base5.php, CodeIgniter.php, Common.php, Compat.php, and the database drivers), effectively removing the legacy framework support from this location.

system · high confidence

Removal of legacy REST\_Controller library

The legacy REST\_Controller library has been removed from the application. This file, which previously handled RESTful request routing, method detection, format negotiation, and basic authentication, is no longer present in the codebase.

application/libraries · high confidence

Removal of legacy example\_api and welcome controllers

The legacy example\_api controller, which previously demonstrated RESTful endpoints for user resources, and the default welcome controller have been removed from the application. This cleanup eliminates outdated code samples and the default welcome page, likely as part of the broader migration to CodeIgniter 2.0 where the base controller inheritance model changed.

application/controllers · high confidence

Behavioural changes

Removal of default CodeIgniter application configuration and error templates

The default CodeIgniter application configuration files (autoload, config, constants, database, doctypes, hooks, mimes, rest, routes, smileys, user\_agents) and error view templates (404, database, general, PHP) have been removed from the application/config and application/errors directories. This cleanup eliminates the standard scaffolding and boilerplate settings, requiring users to provide their own configuration and error handling files rather than inheriting the framework's defaults.

application/config · high confidence

Removal of default CodeIgniter welcome page

The default 'Welcome to CodeIgniter' view template has been removed from the application. This change eliminates the standard landing page that previously displayed framework information, navigation links to the User Guide, and controller details, indicating a shift away from the default starter template towards a custom or REST-focused application structure.

application/views · high confidence

Dependencies

Add Composer support for CodeIgniter REST Server

The project now includes a composer.json manifest, enabling installation and autoloading via Composer. The package is defined as 'chriskacerguis/codeigniter-restserver' with PSR-4 autoloading configured for the 'src/' directory.

(dependencies) · high confidence

Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Baseline

  • First survey — no prior run to compare against. CAI 34.

Lenses

  • Code Health 84
  • Architecture 100
  • Maturity 31
  • Readiness 17
  • Security 100
  • Accessibility 32

Changes since last survey

  • 300 commits — 240 feature/other, 60 fixes

By area

  • application/libraries — 70 commits
  • (repo) — 61 commits
  • application/language — 34 commits
  • src/RestController.php — 34 commits
  • (root) — 30 commits
  • application/config — 22 commits
  • application/views — 14 commits
  • application/controllers — 9 commits
  • .github/workflows — 3 commits
  • application/migrations — 3 commits
  • documentation/source-class-REST_Controller.html — 3 commits
  • examples/get.php — 3 commits
  • src/Format.php — 3 commits
  • .github/FUNDING.yml — 2 commits
  • .github/ISSUE_TEMPLATE — 2 commits
  • documentation/404.html — 2 commits
  • documentation/class-Example.html — 2 commits
  • .github/CODEOWNERS — 1 commit
  • documentation/resources — 1 commit
  • src/rest.php — 1 commit

Notable commits

  • fix: Apply fixes from StyleCI
  • fix: Apply fixes from StyleCI
  • fix: Apply fixes from StyleCI
  • fix: Apply fixes from StyleCI
  • fix: Apply fixes from StyleCI
  • fix: Attempt to fix issue 1069 - XSS filtering
  • fix: Bug fix: Load config before call it
  • fix: Bugfix (#842)
  • fix: Bugfix/#837 add http authorization (#848)
  • fix: Bugfix/#844 ldap configuration (#847)
  • fix: Fix RecursiveArrayIterator not found
  • fix: Fix RecursiveIteratorIterator not found
  • fix: Fix _generate_key() method. See #535
  • fix: Fix case of contants based on best practices from PSR2
  • fix: Fix code style
  • fix: Fix for issue #530 Field 'response_code' doesn't have a default value
  • fix: Fix handling null in to_xml()
  • fix: Fix parse method return arguments null (#744)
  • fix: Fix style
  • fix: Fix valid_response on _prepare_digest_auth
  • …and 280 more

Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

chriskacerguis/codeigniter-restserver was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 19 September 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit b40cba2fd92869d6b224fc8d4bf068fed6078dd7 — the exact code this score is about.
  • Scored under rubric-2026.09.15 — the same rubric and the same method as every other entry in this index.
  • Measured by watchdog.canine.dev using codehealth-analyzer preprod-13a154b7f5d1.