# symfony/polyfill-ctype

Symfony polyfill for ctype functions

Repository: https://github.com/symfony/polyfill-ctype
Canonical: https://ross.abutalabs.com/products/polyfill-ctype
Homepage: https://symfony.com/polyfill-ctype
Language: PHP
License: MIT
License Family: permissive
Topics: symfony, polyfill, component, symfony-component, compatibility, ctype, javascript, portable, symfony-polyfill
Last push: 2026-04-26T14:44:47+00:00

## Health v2 (maintenance only)
Score: 84/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 79, release rhythm 81, longevity 100
- inputs: {"age_days": 3046, "days_push": 129, "days_rel": 129, "gap_med": 3, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4034, forks 6 (observed 2026-08-28T04:08:32.861823+00:00)

## What it is
A Symfony component that provides PHP ctype_* character-type functions for PHP installations lacking the ctype extension. It is a small compatibility shim installed via Composer.

## Use cases
- run code using ctype_* functions on PHP builds without the ctype extension
- make a PHP library portable across PHP environments
- ensure ctype functions exist in minimal or shared hosting PHP setups
- add backward compatibility for character-type checks in a Composer project

## When to choose
- your PHP runtime or hosting environment lacks the ctype extension
- you distribute a library that must work on any PHP installation
- you already use Composer and want a drop-in compatibility layer

## When to avoid
- your PHP build already includes the ctype extension (it is enabled by default)
- you need polyfills for other PHP functions - use the umbrella symfony/polyfill package instead

## Facets
- artifact type: library
- maturity: stable
- function: developer-tools
- domain: developer-tools, web-development, backend
- platform: php, cross-platform
- tags: polyfill, ctype, php-compatibility, symfony-component, shim

## Member repositories
- symfony/polyfill-ctype (main) score 84

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:32.861823+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:23:49.387310+00:00, confidence not recorded.
  - readme: https://github.com/symfony/polyfill-ctype (fetched 2026-08-28T04:08:32.861823+00:00, sha c6d433e5d9a5)
  - homepage: https://symfony.com/polyfill-ctype (fetched 2026-08-29T09:16:24.820197+00:00, sha be3617222ddb)
  - site_page: https://symfony.com/doc (fetched 2026-08-29T09:16:24.822543+00:00, sha 44889134f4fb)
  - site_page: https://symfony.com/releases (fetched 2026-08-29T09:16:24.824296+00:00, sha f109a7a4a5da)
  - site_page: https://symfony.com/blog/category/releases (fetched 2026-08-29T09:16:24.826038+00:00, sha da84802d18f3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
