From fd38b97684b174f9e790c2c0b0ef921943f501f9 Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Fri, 8 Jun 2012 20:28:42 +0200 Subject: [PATCH 1/6] [feature/composer] Configuration file for the composer dependency manager. --- composer.json | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 composer.json diff --git a/composer.json b/composer.json new file mode 100644 index 00000000..13ff4aac --- /dev/null +++ b/composer.json @@ -0,0 +1,30 @@ +{ + "name": "phpseclib/phpseclib", + "type": "library", + "description": "PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP etc.", + "keywords": [ + "security", + "crypto", + "cryptography", + "encryption", + "signature", + "signing", + "rsa", + "aes", + "ssh", + "sftp", + "BigInteger" + ], + "homepage": "http://phpseclib.sourceforge.net", + "license": "MIT", + "authors": [ + { + "name": "Jim Wigginton", + "email": "terrafrost@php.net", + "role": "Developer" + } + ], + "require": { + "php": ">=4.3.3" + }, +} From a4fafd19329953d1718d9a54ce3f168b6e8d22d2 Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Fri, 8 Jun 2012 21:53:42 +0200 Subject: [PATCH 2/6] [feature/composer] Suggest the mcrypt and gmp extensions for PHP. --- composer.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/composer.json b/composer.json index 13ff4aac..b0e0f185 100644 --- a/composer.json +++ b/composer.json @@ -27,4 +27,8 @@ "require": { "php": ">=4.3.3" }, + "suggest": { + "ext-mcrypt": "*", + "ext-gmp": "*" + } } From 552757062500189b62b03c4bde87e16c862062d2 Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Fri, 8 Jun 2012 22:01:12 +0200 Subject: [PATCH 3/6] [feature/composer] Set include path accordingly. --- composer.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index b0e0f185..db780502 100644 --- a/composer.json +++ b/composer.json @@ -30,5 +30,6 @@ "suggest": { "ext-mcrypt": "*", "ext-gmp": "*" - } + }, + "include-path": ["phpseclib/"] } From 789d545fb808a3c7b1fa4ea9caf1957d772ff0cd Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Fri, 8 Jun 2012 22:05:26 +0200 Subject: [PATCH 4/6] [feature/composer] Also add PSR0 autoloader statement. --- composer.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index db780502..1b529a23 100644 --- a/composer.json +++ b/composer.json @@ -31,5 +31,8 @@ "ext-mcrypt": "*", "ext-gmp": "*" }, - "include-path": ["phpseclib/"] + "include-path": ["phpseclib/"], + "autoload": { + "psr-0": { "": "phpseclib/" } + } } From 32a3eab2ab3b599035bccdf1ab267b2bf230cbe7 Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Fri, 8 Jun 2012 22:14:00 +0200 Subject: [PATCH 5/6] [feature/composer] Add description for suggested extensions, it's not a version --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 1b529a23..2217c219 100644 --- a/composer.json +++ b/composer.json @@ -28,8 +28,8 @@ "php": ">=4.3.3" }, "suggest": { - "ext-mcrypt": "*", - "ext-gmp": "*" + "ext-mcrypt": "Install the Mcrypt extension in order to speed up a wide variety of cryptographic operations.", + "ext-gmp": "Install the GMP (GNU Multiple Precision) extension in order to speed up arbitrary precision integer arithmetic operations." }, "include-path": ["phpseclib/"], "autoload": { From 6e29e5be6f48253436a1404b13c47408260ea466 Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Sat, 9 Jun 2012 00:14:06 +0200 Subject: [PATCH 6/6] [feature/composer] Use proper case for RSA, AES and folks. --- composer.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 2217c219..9658a844 100644 --- a/composer.json +++ b/composer.json @@ -9,10 +9,10 @@ "encryption", "signature", "signing", - "rsa", - "aes", - "ssh", - "sftp", + "RSA", + "AES", + "SSH", + "SFTP", "BigInteger" ], "homepage": "http://phpseclib.sourceforge.net",