Download the PHP package backendtea/ctype-compat without Composer
On this page you can find all versions of the php package backendtea/ctype-compat. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download backendtea/ctype-compat
More information about backendtea/ctype-compat
Files in backendtea/ctype-compat
Package ctype-compat
Short Description Compatibility for those who have disabled ctype
License MIT
Informations about the package ctype-compat
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
Composer
Simply run the following command:
Manually
Download the src/ctype.php
file, and include it within your project.
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
This project follows Semantic Versioning 2.0.0, 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
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
If this package shows unexpected behaviour please report a github issue. If you wish to create a pull request, please read our Contributing guide