Skip to content
CAI
Software that uses CAICheck a score

symfony/polyfill-ctype

40.3

Weak · 17 November 2026

292

lines of production code

PHP

primary language

5

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This system is a PHP polyfill library designed to provide the ctype extension functionality for environments where it is missing or incompatible. It ensures backward compatibility by offering dedicated bootstrap files for different PHP versions and robustly handling mixed input types. The project manages its dependencies and metadata through Composer, explicitly declaring its provision of the ext-ctype extension.

Behavioural changes

Ctype polyfill updated for PHP 8+ compatibility and expanded coverage

The Ctype polyfill now provides a dedicated bootstrap for PHP 8.0 and later (bootstrap80.php) to ensure correct behavior on newer versions, while the legacy bootstrap (bootstrap.php) has been updated to check for individual function existence rather than the extension being loaded, ensuring all ctype functions are polyfilled even if the extension is partially available. The underlying Ctype implementation class has been refined to handle mixed input types more robustly by explicitly checking for strings and non-empty values before regex matching, and documentation links have been updated to the canonical php.net domain.

(repo-wide) · high confidence

Dependencies

Update composer.json metadata and PHP requirements

The composer.json manifest has been updated to require PHP 7.2 or higher (previously 5.3.3), added a 'provide' declaration for the ext-ctype extension, and included a 'suggest' for ext-ctype for best performance. The author list was updated to include Gert de Pagter and the Symfony Community, and the 'extra' section now includes 'thanks' metadata pointing to the main polyfill repository.

(dependencies) · high confidence

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

How this codebase got here

Score

  • CAI 40.9 → 40.3 (-0.6)
  • Rubric changed (rubric-2026.11.2 → rubric-2026.11.4) — scores are not directly comparable.

Lenses

  • Code Health 70.7 → 65.4 (-5.3)
  • Architecture 69.0 → 69.0 (0.0)
  • Maturity 38.7 → 38.7 (0.0)
  • Readiness 23.3 → 23.3 (0.0)
  • Security 100.0 → 100.0 (0.0)

Resolved (1)

  • No tests found

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

Survey your own repository

symfony/polyfill-ctype 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 17 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 141046a8f9477948ff284fa65be2095baafb94f2 — the exact code this score is about.
  • Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.85+preprod-eba6548ac50f.