Skip to content
CAI
Software that uses CAICheck a score

symfony/polyfill-mbstring

42.1

Weak · 17 November 2026

4.8k

lines of production code

PHP

primary language

5

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Behavioural changes

Symfony Mbstring Polyfill: PHP 8+ support and new functions

The Mbstring polyfill has been updated to support PHP 8 and later versions, introducing separate bootstrap files (bootstrap80.php and bootstrap72.php) to handle version-specific behaviors such as strict typing, nullable types, and deprecation fixes for passing null to functions like strpos(). New polyfilled functions mb\_str\_pad, mb\_ucfirst, mb\_lcfirst, mb\_trim, mb\_ltrim, and mb\_rtrim are now available, along with improved handling of invalid UTF-8 input, better error reporting via ValueError on PHP 8+, and fixes for various edge cases in encoding conversion and string manipulation. The polyfill also now rejects malformed UTF-8 in mb\_ord and handles ill-formed sequences more robustly across other functions.

(repo-wide) · high confidence

Updated Unicode case-conversion data and added case-folding support

The Resources/unidata directory now uses plain PHP arrays for lower-case, upper-case, and case-folding maps instead of the previous PHP serialized formats, which improves performance via OPcache. The underlying data has been updated to Unicode 13, and a new case-folding map has been added to support more accurate title-case conversions using Unicode derived properties.

Resources · high confidence

Dependencies

Update PHP requirements and add iconv dependency

The package now requires PHP 7.2 or higher (up from 5.3.3) and explicitly depends on the ext-iconv extension. It also declares that it provides the ext-mbstring extension, while suggesting ext-mbstring for best performance. The composer configuration has been updated to use the 'thanks' extra field for attribution and corrected the 'suggests' key to 'suggest'.

(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 42.2 → 42.1 (-0.1)
  • Rubric changed (rubric-2026.11.2 → rubric-2026.11.4) — scores are not directly comparable.

Lenses

  • Code Health 64.6 → 63.9 (-0.7)
  • Architecture 100.0 → 100.0 (0.0)
  • Maturity 37.2 → 37.2 (0.0)
  • Readiness 23.3 → 23.3 (0.0)
  • Security 100.0 → 100.0 (0.0)

Resolved (1)

  • No tests found

New (3)

  • Edited copy of a member (10 corresponding lines) (Mbstring.php)
  • Edited copy of a member (17 corresponding lines) (Mbstring.php)
  • Edited copy of a member (56 corresponding lines) (Mbstring.php)

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-mbstring 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 122889ed24dc000165bcbfd77ec412f15cbdfc6a — 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.84+preprod-d645ca9bbedd.