What Is PHP CompatInfo
PHP CompatInfo is a PHP library that parse any data source to find out the minimum version and extensions required for it to run.
Features
Modern
CompatInfo takes advantage of new features in PHP 5.3.0 or greater.
Robust
CompatInfo is strictly tested. Checks code coverage and see by yourself.
Explore all data source
CompatInfo comes with a source provider (based on Symfony Finder component) that allow to parse all data source (single file, directories, archives Phar, Zip, Tar, and lot more).
Solid Foundation
Whenever possible wheel reinvention was avoided. CompatInfo uses code from well-known projects including Symfony Finder, Console, and EventDispatcher.
License
BSD License
The full legal text of the BSD 3-clause license is given below.
Copyright (c) 2010-2014, Laurent Laville <pear@laurent-laville.org> Credits to : * Davey Shafik Original author, he introduced his proposal in 2004, that gave birth of a PEAR package named PHP_CompatInfo. * Remi Collet Contributor on many extensions and unit tests since version 2.0.0RC2 All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the authors nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
What is next
- Setup
- Configuring your project and get ready for your first parsing.
- Quick Start
- This quick start is a five minute tutorial where you can discover how to identify a data source and parse its contents.