PHPackages                             backendtea/ctype-compat - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. backendtea/ctype-compat

Abandoned → [symfony/polyfill-ctype](/?search=symfony%2Fpolyfill-ctype)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

backendtea/ctype-compat
=======================

Compatibility for those who have disabled ctype

v0.1.2(8y ago)219MITPHPPHP ^5.3 || ^7.0

Since Apr 23Pushed 8y ago1 watchersCompare

[ Source](https://github.com/BackEndTea/ctype-compat)[ Packagist](https://packagist.org/packages/backendtea/ctype-compat)[ RSS](/packages/backendtea-ctype-compat/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

Ctype Compat
============

[](#ctype-compat)

[![Build Status](https://camo.githubusercontent.com/ee89c52fc287685a012ff31b83933d2dd9fa182bfab5cb7a359ba1ad97b813f4/68747470733a2f2f7472617669732d63692e6f72672f4261636b456e645465612f63747970652d636f6d7061742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/BackEndTea/ctype-compat)[![Licence](https://camo.githubusercontent.com/7d89aaed0c849db83648b7fbc5dfb8a68f54df7c2ee2279b4753cb4d4140d4b3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6261636b656e647465612f63747970652d636f6d7061742e737667)](https://packagist.org/packages/backendtea/ctype-compat)[![Version](https://camo.githubusercontent.com/ddcf5eb710421cbf475693d57e60579554c22e63f355cd9dd215c5792d1dada1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6261636b656e647465612f63747970652d636f6d7061742e737667)](https://packagist.org/packages/backendtea/ctype-compat)[![Downloads](https://camo.githubusercontent.com/aeb662c73fcbff2ba0bf1db54ccf2b32f852386718f816da848cd1b78dd369b4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6261636b656e647465612f63747970652d636f6d7061742e737667)](https://packagist.org/packages/backendtea/ctype-compat)

**This Package has been deprecated, please use symfony/polyfill-ctype instead.**

A package to make sure ctype functions still work, even if a php version is used that was compiled with `--disable-ctype`. If ctype is enabled this package will do nothing, if ctype is disabled this package will provide these functions. Instead of crashing when they can't be found.

The only requirement is php 5.3+

Installation
------------

[](#installation)

### Composer

[](#composer)

Simply run the following command:

```
$ composer require backendtea/ctype-compat
```

### Manually

[](#manually)

Download the `src/ctype.php` file, and include it within your project.

Usage
-----

[](#usage)

By installing the package through composer you are automatically using it, no configuration required.

If this package is manually added to the project `include_once` it in a bootstrap file, or simply where it is needed.

Versioning
----------

[](#versioning)

This project follows [Semantic Versioning 2.0.0](https://semver.org/), which means that any breaking change of the **public**wil result in a major version up. Anything marked `@internal` can be changed at any time and should not be relied on.

Although this is currently in a `0.*` version, and is therefore allowed to have BC breaking changes in minor releases, we will attempt to reduce breaking changes to an absolute minimum. The `0.*` version mainly indicates that it has not seen major usage.

Limitations
-----------

[](#limitations)

Normal ctype functions are locale dependent, these versions are slightly 'dumber', and may therefore not give the expected result if it is dependent on locale.

Contributing
------------

[](#contributing)

If this package shows unexpected behaviour please [report a github issue](https://github.com/BackEndTea/ctype-compat/issues). If you wish to create a pull request, please read our [Contributing guide](.github/CONTRIBUTING.md)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

3

Last Release

2934d ago

PHP version history (2 changes)v0.1.0PHP ^5.3||^7.0

v0.1.1PHP ^5.3 || ^7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/7472777959978078c70a919d0c71fef49501a5337ce57889a9dd9a7d830e41f8?d=identicon)[BackEndTea](/maintainers/BackEndTea)

---

Top Contributors

[![BackEndTea](https://avatars.githubusercontent.com/u/14289961?v=4)](https://github.com/BackEndTea "BackEndTea (18 commits)")

---

Tags

compatibilitypolyfillctypecompat

### Embed Badge

![Health badge](/badges/backendtea-ctype-compat/health.svg)

```
[![Health](https://phpackages.com/badges/backendtea-ctype-compat/health.svg)](https://phpackages.com/packages/backendtea-ctype-compat)
```

###  Alternatives

[symfony/polyfill-ctype

Symfony polyfill for ctype functions

4.0k982.0M125](/packages/symfony-polyfill-ctype)[symfony/polyfill-mbstring

Symfony polyfill for the Mbstring extension

7.8k1.2B515](/packages/symfony-polyfill-mbstring)[symfony/polyfill-php72

Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions

4.8k674.7M31](/packages/symfony-polyfill-php72)[symfony/polyfill-util

Symfony utilities for portability of PHP codes

1.3k123.9M7](/packages/symfony-polyfill-util)[symfony/polyfill-intl-idn

Symfony polyfill for intl's idn\_to\_ascii and idn\_to\_utf8 functions

3.4k774.6M90](/packages/symfony-polyfill-intl-idn)[symfony/polyfill-intl-normalizer

Symfony polyfill for intl's Normalizer class and related functions

2.1k830.2M36](/packages/symfony-polyfill-intl-normalizer)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
