bartlett / php-compatinfo
Find out the minimum version and the extensions required for a piece of code to run
Installs: 76 833
Dependents: 5
Suggesters: 0
Security: 0
Stars: 334
Watchers: 15
Forks: 19
Open Issues: 6
Requires
- php: ^7.1.3|^8.0
- ext-json: *
- ext-libxml: *
- ext-pcre: *
- ext-pdo: *
- ext-pdo_sqlite: *
- ext-spl: *
- bartlett/php-compatinfo-db: ^2.0
- bartlett/php-reflect: ^4.4
- composer/package-versions-deprecated: ^1.8
- doctrine/collections: ^1.4
- psr/log: ^1.0
- ramsey/uuid: ^3.9|^4.0
- symfony/config: ^4.4|^5.0
- symfony/console: ^4.4|^5.0
- symfony/dependency-injection: ^4.4|^5.0
- symfony/event-dispatcher: ^4.4|^5.0
- symfony/finder: ^4.4|^5.0
- symfony/serializer: ^4.4|^5.0
- symfony/stopwatch: ^4.4|^5.0
- dev-master
- 6.0.x-dev
- 5.4.x-dev
- 5.4.4
- 5.4.3
- 5.4.2
- 5.4.1
- 5.4.0
- 5.3.x-dev
- 5.3.0
- 5.2.x-dev
- 5.2.3
- 5.2.2
- 5.2.1
- 5.2.0
- 5.1.0
- 5.0.12
- 5.0.11
- 5.0.10
- 5.0.9
- 5.0.8
- 5.0.7
- 5.0.6
- 5.0.5
- 5.0.4
- 5.0.3
- 5.0.2
- 5.0.1
- 5.0.0
- 4.5.2
- 4.5.1
- 4.5.0
- 4.4.0
- 4.3.0
- 4.2.0
- 4.1.0
- 4.0.0
- 4.0.0-RC2
- 4.0.0-RC1
- 4.0.0-beta3
- 4.0.0-beta2
- 4.0.0-beta1
- 4.0.0-alpha3
- 4.0.0-alpha2
- 3.7.4
- 3.7.3
- 3.7.2
- 3.7.1
- 3.7.0
- 3.6.1
- 3.6.0
- 3.5.0
- 3.4.0
- 3.3.0
- 3.2.0
- 3.1.0
- 3.0.0
- 3.0.0RC2
- 3.0.0RC1
- 2.26.0
- 2.25.0
- 2.24.0
This package is auto-updated.
Last update: 2021-02-22 09:09:03 UTC
README
Stable | Upcoming |
---|---|
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 than 7.1 for parsing source code in a format PHP 5.2 to PHP 8.0
Requirements
- PHP 7.1.3 or greater
- PHPUnit 7 or greater (if you want to run unit tests)
Installation
The recommended way to install this library is through composer. If you don't know yet what is composer, have a look on introduction.
composer require bartlett/php-compatinfo
Build PHAR distribution
Since release 5.4.2 building of phar version of application is part of composer automated process.
Either when you install or update project with Composer, the bin/phpcompatinfo.phar
file will be built.
NOTE
- You may avoid this by invoking composer command with
--no-scripts
option. - You may also rebuild the phar file by invoking
composer compile-box
command (shortcut ofrun
,run-script
).
Documentation
Full documentation is written in MarkDown format, and HTML export is possible with Daux.io.
See output results at http://bartlett.laurent-laville.org/php-compatinfo/ or raw *.md
files in docs
folder.
Table of Contents
-
Features
- Parse source code in format PHP 5.2 to PHP 8.0
- Detect PHP features for each Major/minor versions
- Detect versions of all directives, constants, functions, classes, interfaces of 100 extensions and more
- Display/Inspect list of extensions, and their versions supported
-
Components
- PHP-Parser Node Visitors
- Profiler
- Collection of Sniffs
-
Configurations
- Use of PSR11 containers to configure application services.
Contributors
- Laurent Laville (Lead Dev)
- Thanks to Nikita Popov who wrote a marvellous PHP Parser.
- Thanks also to Remi Collet, a contributor of first hours.
- Credits to Davey Shafik. He introduced his proposal in 2004, that gave birth of a PEAR package named PHP_CompatInfo.
License
This project is licensed under the BSD-3-Clause License - see the LICENSE file for details