mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-27 19:54:57 +00:00
PHP Secure Communications Library
67aedc240b
This has been produced as follows: <?php $replace = $files = []; $it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($argv[1])); foreach ($it as $fileinfo) { if ($fileinfo->getExtension() === 'php') { $file = $fileinfo->getPathname(); $content = file_get_contents($file); $files[$file] = $content; $tokens = token_get_all($content); foreach ($tokens as $key => $value) { if ($value[0] === T_CLASS) { $class = $tokens[$key + 2][1]; $replace += array( "$class::$class(" => "$class::__construct(", "parent::$class(" => "parent::__construct(", "function $class(" => "function __construct(", ); } } } } foreach ($files as $file => $content) { file_put_contents( $file, str_replace( array_keys($replace), array_values($replace), $content ) ); } |
||
---|---|---|
build | ||
phpseclib | ||
tests | ||
travis | ||
.gitattributes | ||
.gitignore | ||
.scrutinizer.yml | ||
.travis.yml | ||
AUTHORS | ||
composer.json | ||
composer.lock | ||
LICENSE | ||
phpunit.xml.dist | ||
README.md |
phpseclib - PHP Secure Communications Library
MIT-licensed pure-PHP implementations of an arbitrary-precision integer arithmetic library, fully PKCS#1 (v2.1) compliant RSA, DES, 3DES, RC4, Rijndael, AES, Blowfish, Twofish, SSH-1, SSH-2, SFTP, and X.509
PEAR Channel: [phpseclib.sourceforge.net](http://phpseclib.sourceforge.net/pear.htm)Installing Development Dependencies
Dependencies are managed via Composer.
-
Download the
composer.phar
executable as per the Composer Download Instructions, e.g. by runningcurl -sS https://getcomposer.org/installer | php
-
Install Dependencies
php composer.phar install --dev
Contributing
-
Fork the Project
-
Install Development Dependencies
-
Create a Feature Branch
-
(Recommended) Run the Test Suite
vendor/bin/phpunit
-
(Recommended) Check whether your code conforms to our Coding Standards by running
vendor/bin/phing -f build/build.xml sniff
-
Send us a Pull Request