PHPackages                             bartlett/php-compatinfo - 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. bartlett/php-compatinfo

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

bartlett/php-compatinfo
=======================

Find out the minimum version and the extensions required for a piece of code to run

7.2.5(5mo ago)38298.7k—0%19[5 issues](https://github.com/llaville/php-compatinfo/issues)6BSD-3-ClausePHPPHP ^8.1CI passing

Since Oct 17Pushed 5mo ago12 watchersCompare

[ Source](https://github.com/llaville/php-compatinfo)[ Packagist](https://packagist.org/packages/bartlett/php-compatinfo)[ Docs](https://github.com/llaville/php-compatinfo)[ RSS](/packages/bartlett-php-compatinfo/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (15)Versions (104)Used By (6)

PHP CompatInfo
==============

[](#php-compatinfo)

[![StandWithUkraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg)](https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md)[![GitHub Discussions](https://camo.githubusercontent.com/6f800af31a05029ec135c2c1e8368145515a03c119b1ba4afdd6642f05b43e97/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f64697363757373696f6e732f6c6c6176696c6c652f7068702d636f6d706174696e666f)](https://github.com/llaville/php-compatinfo/discussions)

**PHP CompatInfo** is a library that can find the minimum version and the extensions required for a piece of code to run.

Running on PHP greater or equal than 7.4 for parsing source code in a format PHP 5.2 to PHP 8.5

Versions
--------

[](#versions)

ReleasesBranchPHPPackagistLicenseDocumentationStable v5.5.x[![Branch 5.5](https://camo.githubusercontent.com/bf4538b80c89957289189812639b183cce3366bbae48ff4d6c4772090e1d835d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6272616e63682d352e352d6f72616e6765)](https://github.com/llaville/php-compatinfo/tree/5.5)[![Minimum PHP Version)](https://camo.githubusercontent.com/4bed85ee825b4363d277f3267f23f820fcf5709eb1ac65316327262fa7a812df/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f626172746c6574742f7068702d636f6d706174696e666f2f352e352e36)](https://www.php.net/supported-versions.php)[![Stable Version 5.5](https://camo.githubusercontent.com/f3de846dd7a9b5b9a698334226954ebe0a353322352607a812cd070cce0e3fc6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b61676973742d76352e352e362d626c7565)](https://packagist.org/packages/bartlett/php-compatinfo)[![License 5.5](https://camo.githubusercontent.com/471ba1bc4f1e2518ceec9be794b25e451010ede0497ef7f5b7b0dde6658f46c4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f626172746c6574742f7068702d636f6d706174696e666f)](https://github.com/llaville/php-compatinfo/blob/5.5/LICENSE)[![Documentation 5.5](https://camo.githubusercontent.com/8e28b70396008634c5654560dd894cfbf8a835c414cfccf8300b15e4b9f04cb5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63756d656e746174696f6e2d76352e352d677265656e)](https://github.com/llaville/php-compatinfo/tree/5.5/docs)Stable v6.5.x[![Branch 6.5](https://camo.githubusercontent.com/e030e00828b17f8d72a34320baac490edceccc7c86f848c0380296de2490e136/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6272616e63682d362e352d6f72616e6765)](https://github.com/llaville/php-compatinfo/tree/6.5)[![Minimum PHP Version)](https://camo.githubusercontent.com/9bdd603d391327faaa40d7657a380164dfde275c9003f5bd8d2b8fba42585997/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f626172746c6574742f7068702d636f6d706174696e666f2f362e352e35)](https://www.php.net/supported-versions.php)[![Stable Version 6.5](https://camo.githubusercontent.com/7bdf94e391f9c0c0a501ac08e390131d49d6b08bbff8ccb586bc077460d36665/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b61676973742d76362e352e352d626c7565)](https://packagist.org/packages/bartlett/php-compatinfo)[![License 6.5](https://camo.githubusercontent.com/471ba1bc4f1e2518ceec9be794b25e451010ede0497ef7f5b7b0dde6658f46c4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f626172746c6574742f7068702d636f6d706174696e666f)](https://github.com/llaville/php-compatinfo/blob/6.5/LICENSE)[![Documentation 6.5](https://camo.githubusercontent.com/08d15affcbe8d708f8507bf93211d85c77403231cdb2665fd8bdde59b23eb0f0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63756d656e746174696f6e2d76362e352d677265656e)](https://github.com/llaville/php-compatinfo/tree/6.5/docs)Stable v7.0.x[![Branch 7.0](https://camo.githubusercontent.com/0960a601ba66f9d1b347912508fd823e0e339c28aeeef2c537dee0ce0030862b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6272616e63682d372e302d6f72616e6765)](https://github.com/llaville/php-compatinfo/tree/7.0)[![Minimum PHP Version)](https://camo.githubusercontent.com/d1c932ae7ca013df1621bee34e46fb9e5306e1d85c3e1aec47fb1f515f6e9e42/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f626172746c6574742f7068702d636f6d706174696e666f2f372e302e31)](https://www.php.net/supported-versions.php)[![Stable Version 7.0](https://camo.githubusercontent.com/12a41df15e46d2e791ba9e16296d5dec17e74a982f33fcca22493a7cccb0b36a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b61676973742d76372e302e332d626c7565)](https://packagist.org/packages/bartlett/php-compatinfo)[![License 7.0](https://camo.githubusercontent.com/471ba1bc4f1e2518ceec9be794b25e451010ede0497ef7f5b7b0dde6658f46c4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f626172746c6574742f7068702d636f6d706174696e666f)](https://github.com/llaville/php-compatinfo/blob/7.0/LICENSE)[![Documentation 7.0](https://camo.githubusercontent.com/bfb619f17a457ae52f5a108c767318640ad6be156dd22bbb5b463155d6061eca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63756d656e746174696f6e2d76372e302d677265656e)](https://github.com/llaville/php-compatinfo/tree/7.0/docs)Stable v7.1.x[![Branch 7.1](https://camo.githubusercontent.com/9da6ef831479f7df8c3b078467b9173c8a64790285ed693bcd0722f0c721ae59/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6272616e63682d372e312d6f72616e6765)](https://github.com/llaville/php-compatinfo/tree/7.1)[![Minimum PHP Version)](https://camo.githubusercontent.com/6499ec8c213cbff126cf4501e3b53affd30e7889ed327608749398223fa8a5a3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f626172746c6574742f7068702d636f6d706174696e666f2f372e312e34)](https://www.php.net/supported-versions.php)[![Stable Version 7.1](https://camo.githubusercontent.com/18ec634fb679a057264370ce5f8104f3ade5b3ff78ff49f451fd789f84476ee8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b61676973742d76372e312e342d626c7565)](https://packagist.org/packages/bartlett/php-compatinfo)[![License 7.1](https://camo.githubusercontent.com/471ba1bc4f1e2518ceec9be794b25e451010ede0497ef7f5b7b0dde6658f46c4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f626172746c6574742f7068702d636f6d706174696e666f)](https://github.com/llaville/php-compatinfo/blob/7.1/LICENSE)[![Documentation 7.1](https://camo.githubusercontent.com/669bcadfea7d743cab6e042ea4b76bb8bbe56eb1126d8fe0e23973fb310d5a77/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63756d656e746174696f6e2d76372e312d677265656e)](https://github.com/llaville/php-compatinfo/tree/7.1/docs)Stable v7.2.x[![Branch 7.2](https://camo.githubusercontent.com/6d8fb91bea0cbf2e8b2bbf4c587a30c39700342e93abd6a3fbde2736d9b47d8f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6272616e63682d372e322d6f72616e6765)](https://github.com/llaville/php-compatinfo/tree/7.2)[![Minimum PHP Version)](https://camo.githubusercontent.com/abb5446a47f4c0a93d4783ef956bc64af898b347c9b355246a70b131a8ae07f2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f626172746c6574742f7068702d636f6d706174696e666f2f372e322e35)](https://www.php.net/supported-versions.php)[![Stable Version 7.2](https://camo.githubusercontent.com/456e734bbe400cb16d1141733ebc8327bbd38e48c4ac237a306ef67fe675b7df/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b61676973742d76372e322e352d626c7565)](https://packagist.org/packages/bartlett/php-compatinfo)[![License 7.2](https://camo.githubusercontent.com/471ba1bc4f1e2518ceec9be794b25e451010ede0497ef7f5b7b0dde6658f46c4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f626172746c6574742f7068702d636f6d706174696e666f)](https://github.com/llaville/php-compatinfo/blob/7.2/LICENSE)[![Documentation 7.2](https://camo.githubusercontent.com/896158ca2d7d1b4da208222f4f658ea2a3431d7e0ad3b771b3d895790d8db5d4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63756d656e746174696f6e2d76372e322d677265656e)](https://github.com/llaville/php-compatinfo/tree/7.2/docs)Documentation
-------------

[](#documentation)

All the documentation is available on [website](https://llaville.github.io/php-compatinfo/7.2), generated from the [docs](https://github.com/llaville/php-compatinfo/tree/7.2/docs) folder.

Contributors
------------

[](#contributors)

- Laurent Laville (Lead Dev)
- Thanks to Nikita Popov who wrote a marvellous [PHP Parser](https://github.com/nikic/PHP-Parser).
- Thanks also to Remi Collet, a contributor of first hours.
- Credits to [Davey Shafik](https://github.com/dshafik). He introduced his proposal in 2004, that gave birth of a [PEAR package](http://pear.php.net/package/PHP_CompatInfo) named PHP\_CompatInfo.

###  Health Score

63

—

FairBetter than 99% of packages

Maintenance69

Regular maintenance activity

Popularity48

Moderate usage in the ecosystem

Community31

Small or concentrated contributor base

Maturity88

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 89.1% 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 ~43 days

Recently: every ~51 days

Total

103

Last Release

177d ago

Major Versions

4.5.2 → 5.0.02015-12-05

5.5.4 → 6.0.02021-12-11

5.5.5 → 6.0.22021-12-27

5.5.6 → 6.1.02022-01-06

6.5.5 → 7.0.02023-05-12

PHP version history (14 changes)2.24.0PHP &gt;=5.3.0

4.0.0-beta1PHP &gt;=5.3.2

5.0.0PHP &gt;=5.4.0

5.0.11PHP &gt;=5.5

5.1.0PHP ^5.5|^7.0

5.3.0PHP ^7.1.3

5.4.1PHP ^7.1.3|^8.0

5.5.0PHP ^7.2|^8.0

6.0.0PHP ^7.4|^8.0

6.2.0PHP ^7.4 || ^8.0

7.0.0PHP ^8.0

7.0.1PHP ~8.0 || ~8.1 || ~8.2

7.1.0PHP ~8.0 || ~8.1 || ~8.2 || ~8.3

7.2.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/555d494363fdc69e712d56b46d3b9bf3fe221f2dae8a0cf3c732b0138d54f192?d=identicon)[llaville](/maintainers/llaville)

---

Top Contributors

[![llaville](https://avatars.githubusercontent.com/u/364342?v=4)](https://github.com/llaville "llaville (2477 commits)")[![remicollet](https://avatars.githubusercontent.com/u/270445?v=4)](https://github.com/remicollet "remicollet (284 commits)")[![vrana](https://avatars.githubusercontent.com/u/117453?v=4)](https://github.com/vrana "vrana (5 commits)")[![glensc](https://avatars.githubusercontent.com/u/199095?v=4)](https://github.com/glensc "glensc (5 commits)")[![nickolasburr](https://avatars.githubusercontent.com/u/4663695?v=4)](https://github.com/nickolasburr "nickolasburr (2 commits)")[![cmb69](https://avatars.githubusercontent.com/u/2306138?v=4)](https://github.com/cmb69 "cmb69 (2 commits)")[![szepeviktor](https://avatars.githubusercontent.com/u/952007?v=4)](https://github.com/szepeviktor "szepeviktor (2 commits)")[![dregad](https://avatars.githubusercontent.com/u/449891?v=4)](https://github.com/dregad "dregad (1 commits)")[![siwinski](https://avatars.githubusercontent.com/u/1034024?v=4)](https://github.com/siwinski "siwinski (1 commits)")[![DennisBecker](https://avatars.githubusercontent.com/u/66930?v=4)](https://github.com/DennisBecker "DennisBecker (1 commits)")[![pxlrbt](https://avatars.githubusercontent.com/u/22632550?v=4)](https://github.com/pxlrbt "pxlrbt (1 commits)")

---

Tags

compatibilityphpcompatibilityversion

### Embed Badge

![Health badge](/badges/bartlett-php-compatinfo/health.svg)

```
[![Health](https://phpackages.com/badges/bartlett-php-compatinfo/health.svg)](https://phpackages.com/packages/bartlett-php-compatinfo)
```

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k111.1M568](/packages/symfony-maker-bundle)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)

PHPackages © 2026

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