phpseclib/phpseclib — pull request #5 by RobLoach (2012-06-08 19:45:50+00:00)
Title: Add Composer support, keeping PHP 5 and PHP 4 compatibility

[Composer](http://getcomposer.org) is a dependency management system for PHP packages. This pull request adds Composer support to phpseclib. It allows autoloading of phpseclib's classes, while keeping the PHP compatibility with PHP4, PHP 5.2 and PHP 5.3.

With Composer support in phpseclib, a consuming library can declare the following in their composer.json to have Composer download, install and autoload phpseclib:

"require": {
"phpseclib/phpseclib": "*"
}

When they run php composer.phar install, phpseclib will be downloaded, and an autoload.php will be generated. This autoload.php registers all phpseclib's classes for the consuming application. This saves the user from having to add the include path, and include the files manually.