News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Robert Basic's Blog:
A real gem - PHP_CompatInfo
December 28, 2010 @ 09:34:40

In this new post to his blog Robert Basic takes a look at what he calls a "real gem" in defining the requirements of his application - PHP_CompatInfo.

Last night I was pondering how nice would it be to have a tool of some sort, that would simply spit out what version of PHP does my app require. Something like: here are my .php files, what PHP version and/or extensions do I need for it? First I thought about jumping right in and writing it myself, but hey, this kind of a tool sounds way to useful not to be written already! After a bit of a googling there it was: PHP_CompatInfo. A nice PEAR package that can tell me everything I want about my code and even a bit more.

He includes a code snippet showing it in action. It's a basic example that defines the driver type to use, options and the directory to parse through (using parseDir() naturally). Other output formats are available too like CSV and HTML.

0 comments voice your opinion now!
phpcompatinfo pear package compatibility requirement


blog comments powered by Disqus

Similar Posts

Elizabeth Smith's Blog: Windows Builder for PHP-GTK2

Kevin van Zonneveld's Blog: Make SSH connections with PHP

Greg Beaver's Blog: problem with PHP_Archive-based phars tracked to odd unpack() bug

Kevin van Zonneveld's Blog: Speedup your website with Cache_Lite

Derick Rethans' Blog: Distributions: Please Don't Cripple PHP or Red Hat: Stop Fucking Around


Community Events

Don't see your event here?
Let us know!


library version unittest example series php7 podcast introduction laravel release opinion interview language voicesoftheelephpant community development video api framework laravel5

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework