Commit bc638f77 authored by mattwire's avatar mattwire
Browse files

Update authnetjson library to 4.1.1

parent c193819f
......@@ -95,7 +95,7 @@ class CRM_AuthorizeNet_Webhook {
}
if ($update) {
$request = $this->getRequest();
$request->updateWebhook([$webhook->getWebhooksId()], self::getWebhookPath($this->_paymentProcessor['id']), self::getDefaultEnabledEvents(),'active');
$request->updateWebhook($webhook->getWebhooksId(), self::getWebhookPath($this->_paymentProcessor['id']), self::getDefaultEnabledEvents(),'active');
}
}
......
......@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "bb6a720bb15dbdb519990a957ec810a1",
"content-hash": "4b33f6b797e5b58c292a188715ddced2",
"packages": [
{
"name": "authorizenet/authorizenet",
......@@ -51,24 +51,24 @@
},
{
"name": "curl/curl",
"version": "1.9.3",
"version": "2.3.0",
"source": {
"type": "git",
"url": "https://github.com/php-mod/curl.git",
"reference": "43436a604b18c2a985cbc3f983be817fbe500e99"
"reference": "3ad560b1fc1bbdf5c7681356ab953fb961f255e5"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-mod/curl/zipball/43436a604b18c2a985cbc3f983be817fbe500e99",
"reference": "43436a604b18c2a985cbc3f983be817fbe500e99",
"url": "https://api.github.com/repos/php-mod/curl/zipball/3ad560b1fc1bbdf5c7681356ab953fb961f255e5",
"reference": "3ad560b1fc1bbdf5c7681356ab953fb961f255e5",
"shasum": ""
},
"require": {
"ext-curl": "*",
"php": ">=5.3.0"
"php": "^5.6 | ^7.0"
},
"require-dev": {
"phpunit/phpunit": "3.7.*",
"phpunit/phpunit": "^5.7",
"squizlabs/php_codesniffer": "~2.1"
},
"type": "library",
......@@ -82,15 +82,15 @@
"MIT"
],
"authors": [
{
"name": "php-curl-class",
"homepage": "https://github.com/php-curl-class"
},
{
"name": "Hassan Amouhzi",
"email": "hassan@anezi.net",
"homepage": "http://hassan.amouhzi.com"
},
{
"name": "php-curl-class",
"homepage": "https://github.com/php-curl-class"
},
{
"name": "user52",
"homepage": "https://github.com/user52"
......@@ -102,33 +102,41 @@
"curl",
"dot"
],
"time": "2018-09-05T17:16:47+00:00"
"time": "2020-03-19T20:07:26+00:00"
},
{
"name": "stymiee/authnetjson",
"version": "3.1.9",
"version": "4.1.1",
"source": {
"type": "git",
"url": "https://github.com/stymiee/authnetjson.git",
"reference": "2161c1fb0b688d52cdc56af08d37acf96898bb1f"
"reference": "ed35019cc3278f08f0104148fcdbaf29d412b779"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/stymiee/authnetjson/zipball/2161c1fb0b688d52cdc56af08d37acf96898bb1f",
"reference": "2161c1fb0b688d52cdc56af08d37acf96898bb1f",
"url": "https://api.github.com/repos/stymiee/authnetjson/zipball/ed35019cc3278f08f0104148fcdbaf29d412b779",
"reference": "ed35019cc3278f08f0104148fcdbaf29d412b779",
"shasum": ""
},
"require": {
"curl/curl": "^1.5",
"curl/curl": "^2",
"ext-curl": "*",
"ext-json": "*",
"php": ">=5.4.0"
"php": ">=7.2.0"
},
"require-dev": {
"phpmd/phpmd": "@stable",
"phpunit/phpunit": "^8",
"squizlabs/php_codesniffer": "3.*"
},
"type": "library",
"autoload": {
"classmap": [
"src/"
]
"psr-4": {
"JohnConde\\Authnet\\": [
"src/authnet/",
"src/exceptions/"
]
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
......@@ -138,13 +146,14 @@
{
"name": "John Conde",
"email": "stymiee@gmail.com",
"homepage": "http://www.johnconde.net",
"homepage": "https://stymiee.dev",
"role": "Developer"
}
],
"description": "Library that abstracts Authorize.Net's JSON APIs. This includes the Advanced Integration Method (AIM), Automated Recurring Billing (ARB), Customer Information Manager (CIM), Transaction Reporting, Simple Integration Method (SIM), and Webhooks.",
"homepage": "http://github.com/stymiee/authnetjson",
"homepage": "https://github.com/stymiee/authnetjson",
"keywords": [
"AuthNet",
"JSON-API",
"authnetjson",
"authorize-net",
......@@ -157,7 +166,7 @@
"php",
"webhook"
],
"time": "2019-06-04T00:18:39+00:00"
"time": "2020-06-22T00:32:20+00:00"
}
],
"packages-dev": [],
......
......@@ -12,7 +12,8 @@ CiviCRM Extension that provides support for Authorize.Net payments using Credit
## Requirements
* CiviCRM 5.24+
* CiviCRM 5.28+
* PHP 7.2+
## Installation
......
......@@ -14,11 +14,11 @@
<author>Matthew Wire</author>
<email>mjw@mjwconsult.co.uk</email>
</maintainer>
<releaseDate>2020-07-15</releaseDate>
<version>2.1.2</version>
<develStage>stable</develStage>
<releaseDate>2020-08-10</releaseDate>
<version>2.2-dev</version>
<develStage>beta</develStage>
<compatibility>
<ver>5.24</ver>
<ver>5.28</ver>
</compatibility>
<requires>
<ext>mjwshared</ext>
......
......@@ -6,23 +6,6 @@ $vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'JohnConde\\Authnet\\AuthnetApiFactory' => $vendorDir . '/stymiee/authnetjson/src/authnet/AuthnetApiFactory.php',
'JohnConde\\Authnet\\AuthnetCannotSetParamsException' => $vendorDir . '/stymiee/authnetjson/src/exceptions/AuthnetCannotSetParamsException.php',
'JohnConde\\Authnet\\AuthnetCurlException' => $vendorDir . '/stymiee/authnetjson/src/exceptions/AuthnetCurlException.php',
'JohnConde\\Authnet\\AuthnetException' => $vendorDir . '/stymiee/authnetjson/src/exceptions/AuthnetException.php',
'JohnConde\\Authnet\\AuthnetInvalidAmountException' => $vendorDir . '/stymiee/authnetjson/src/exceptions/AuthnetInvalidAmountException.php',
'JohnConde\\Authnet\\AuthnetInvalidCredentialsException' => $vendorDir . '/stymiee/authnetjson/src/exceptions/AuthnetInvalidCredentialsException.php',
'JohnConde\\Authnet\\AuthnetInvalidJsonException' => $vendorDir . '/stymiee/authnetjson/src/exceptions/AuthnetInvalidJsonException.php',
'JohnConde\\Authnet\\AuthnetInvalidParameterException' => $vendorDir . '/stymiee/authnetjson/src/exceptions/AuthnetInvalidParameterException.php',
'JohnConde\\Authnet\\AuthnetInvalidServerException' => $vendorDir . '/stymiee/authnetjson/src/exceptions/AuthnetInvalidServerException.php',
'JohnConde\\Authnet\\AuthnetJsonRequest' => $vendorDir . '/stymiee/authnetjson/src/authnet/AuthnetJsonRequest.php',
'JohnConde\\Authnet\\AuthnetJsonResponse' => $vendorDir . '/stymiee/authnetjson/src/authnet/AuthnetJsonResponse.php',
'JohnConde\\Authnet\\AuthnetSim' => $vendorDir . '/stymiee/authnetjson/src/authnet/AuthnetSim.php',
'JohnConde\\Authnet\\AuthnetTransactionResponseCallException' => $vendorDir . '/stymiee/authnetjson/src/exceptions/AuthnetTransactionResponseCallException.php',
'JohnConde\\Authnet\\AuthnetWebhook' => $vendorDir . '/stymiee/authnetjson/src/authnet/AuthnetWebhook.php',
'JohnConde\\Authnet\\AuthnetWebhooksRequest' => $vendorDir . '/stymiee/authnetjson/src/authnet/AuthnetWebhooksRequest.php',
'JohnConde\\Authnet\\AuthnetWebhooksResponse' => $vendorDir . '/stymiee/authnetjson/src/authnet/AuthnetWebhooksResponse.php',
'JohnConde\\Authnet\\TransactionResponse' => $vendorDir . '/stymiee/authnetjson/src/authnet/TransactionResponse.php',
'net\\authorize\\api\\constants\\ANetEnvironment' => $vendorDir . '/authorizenet/authorizenet/lib/net/authorize/api/constants/ANetEnvironment.php',
'net\\authorize\\api\\contract\\v1\\ANetApiRequestType' => $vendorDir . '/authorizenet/authorizenet/lib/net/authorize/api/contract/v1/ANetApiRequestType.php',
'net\\authorize\\api\\contract\\v1\\ANetApiResponseType' => $vendorDir . '/authorizenet/authorizenet/lib/net/authorize/api/contract/v1/ANetApiResponseType.php',
......
......@@ -6,4 +6,5 @@ $vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'JohnConde\\Authnet\\' => array($vendorDir . '/stymiee/authnetjson/src/authnet', $vendorDir . '/stymiee/authnetjson/src/exceptions'),
);
......@@ -6,6 +6,21 @@ namespace Composer\Autoload;
class ComposerStaticInitafc24a1bffb0d1c8fef29ed057c8fc37
{
public static $prefixLengthsPsr4 = array (
'J' =>
array (
'JohnConde\\Authnet\\' => 18,
),
);
public static $prefixDirsPsr4 = array (
'JohnConde\\Authnet\\' =>
array (
0 => __DIR__ . '/..' . '/stymiee/authnetjson/src/authnet',
1 => __DIR__ . '/..' . '/stymiee/authnetjson/src/exceptions',
),
);
public static $prefixesPsr0 = array (
'C' =>
array (
......@@ -17,23 +32,6 @@ class ComposerStaticInitafc24a1bffb0d1c8fef29ed057c8fc37
);
public static $classMap = array (
'JohnConde\\Authnet\\AuthnetApiFactory' => __DIR__ . '/..' . '/stymiee/authnetjson/src/authnet/AuthnetApiFactory.php',
'JohnConde\\Authnet\\AuthnetCannotSetParamsException' => __DIR__ . '/..' . '/stymiee/authnetjson/src/exceptions/AuthnetCannotSetParamsException.php',
'JohnConde\\Authnet\\AuthnetCurlException' => __DIR__ . '/..' . '/stymiee/authnetjson/src/exceptions/AuthnetCurlException.php',
'JohnConde\\Authnet\\AuthnetException' => __DIR__ . '/..' . '/stymiee/authnetjson/src/exceptions/AuthnetException.php',
'JohnConde\\Authnet\\AuthnetInvalidAmountException' => __DIR__ . '/..' . '/stymiee/authnetjson/src/exceptions/AuthnetInvalidAmountException.php',
'JohnConde\\Authnet\\AuthnetInvalidCredentialsException' => __DIR__ . '/..' . '/stymiee/authnetjson/src/exceptions/AuthnetInvalidCredentialsException.php',
'JohnConde\\Authnet\\AuthnetInvalidJsonException' => __DIR__ . '/..' . '/stymiee/authnetjson/src/exceptions/AuthnetInvalidJsonException.php',
'JohnConde\\Authnet\\AuthnetInvalidParameterException' => __DIR__ . '/..' . '/stymiee/authnetjson/src/exceptions/AuthnetInvalidParameterException.php',
'JohnConde\\Authnet\\AuthnetInvalidServerException' => __DIR__ . '/..' . '/stymiee/authnetjson/src/exceptions/AuthnetInvalidServerException.php',
'JohnConde\\Authnet\\AuthnetJsonRequest' => __DIR__ . '/..' . '/stymiee/authnetjson/src/authnet/AuthnetJsonRequest.php',
'JohnConde\\Authnet\\AuthnetJsonResponse' => __DIR__ . '/..' . '/stymiee/authnetjson/src/authnet/AuthnetJsonResponse.php',
'JohnConde\\Authnet\\AuthnetSim' => __DIR__ . '/..' . '/stymiee/authnetjson/src/authnet/AuthnetSim.php',
'JohnConde\\Authnet\\AuthnetTransactionResponseCallException' => __DIR__ . '/..' . '/stymiee/authnetjson/src/exceptions/AuthnetTransactionResponseCallException.php',
'JohnConde\\Authnet\\AuthnetWebhook' => __DIR__ . '/..' . '/stymiee/authnetjson/src/authnet/AuthnetWebhook.php',
'JohnConde\\Authnet\\AuthnetWebhooksRequest' => __DIR__ . '/..' . '/stymiee/authnetjson/src/authnet/AuthnetWebhooksRequest.php',
'JohnConde\\Authnet\\AuthnetWebhooksResponse' => __DIR__ . '/..' . '/stymiee/authnetjson/src/authnet/AuthnetWebhooksResponse.php',
'JohnConde\\Authnet\\TransactionResponse' => __DIR__ . '/..' . '/stymiee/authnetjson/src/authnet/TransactionResponse.php',
'net\\authorize\\api\\constants\\ANetEnvironment' => __DIR__ . '/..' . '/authorizenet/authorizenet/lib/net/authorize/api/constants/ANetEnvironment.php',
'net\\authorize\\api\\contract\\v1\\ANetApiRequestType' => __DIR__ . '/..' . '/authorizenet/authorizenet/lib/net/authorize/api/contract/v1/ANetApiRequestType.php',
'net\\authorize\\api\\contract\\v1\\ANetApiResponseType' => __DIR__ . '/..' . '/authorizenet/authorizenet/lib/net/authorize/api/contract/v1/ANetApiResponseType.php',
......@@ -314,6 +312,8 @@ class ComposerStaticInitafc24a1bffb0d1c8fef29ed057c8fc37
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInitafc24a1bffb0d1c8fef29ed057c8fc37::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitafc24a1bffb0d1c8fef29ed057c8fc37::$prefixDirsPsr4;
$loader->prefixesPsr0 = ComposerStaticInitafc24a1bffb0d1c8fef29ed057c8fc37::$prefixesPsr0;
$loader->classMap = ComposerStaticInitafc24a1bffb0d1c8fef29ed057c8fc37::$classMap;
......
......@@ -46,28 +46,28 @@
},
{
"name": "curl/curl",
"version": "1.9.3",
"version_normalized": "1.9.3.0",
"version": "2.3.0",
"version_normalized": "2.3.0.0",
"source": {
"type": "git",
"url": "https://github.com/php-mod/curl.git",
"reference": "43436a604b18c2a985cbc3f983be817fbe500e99"
"reference": "3ad560b1fc1bbdf5c7681356ab953fb961f255e5"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-mod/curl/zipball/43436a604b18c2a985cbc3f983be817fbe500e99",
"reference": "43436a604b18c2a985cbc3f983be817fbe500e99",
"url": "https://api.github.com/repos/php-mod/curl/zipball/3ad560b1fc1bbdf5c7681356ab953fb961f255e5",
"reference": "3ad560b1fc1bbdf5c7681356ab953fb961f255e5",
"shasum": ""
},
"require": {
"ext-curl": "*",
"php": ">=5.3.0"
"php": "^5.6 | ^7.0"
},
"require-dev": {
"phpunit/phpunit": "3.7.*",
"phpunit/phpunit": "^5.7",
"squizlabs/php_codesniffer": "~2.1"
},
"time": "2018-09-05T17:16:47+00:00",
"time": "2020-03-19T20:07:26+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
......@@ -80,15 +80,15 @@
"MIT"
],
"authors": [
{
"name": "php-curl-class",
"homepage": "https://github.com/php-curl-class"
},
{
"name": "Hassan Amouhzi",
"email": "hassan@anezi.net",
"homepage": "http://hassan.amouhzi.com"
},
{
"name": "php-curl-class",
"homepage": "https://github.com/php-curl-class"
},
{
"name": "user52",
"homepage": "https://github.com/user52"
......@@ -103,32 +103,40 @@
},
{
"name": "stymiee/authnetjson",
"version": "3.1.9",
"version_normalized": "3.1.9.0",
"version": "4.1.1",
"version_normalized": "4.1.1.0",
"source": {
"type": "git",
"url": "https://github.com/stymiee/authnetjson.git",
"reference": "2161c1fb0b688d52cdc56af08d37acf96898bb1f"
"reference": "ed35019cc3278f08f0104148fcdbaf29d412b779"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/stymiee/authnetjson/zipball/2161c1fb0b688d52cdc56af08d37acf96898bb1f",
"reference": "2161c1fb0b688d52cdc56af08d37acf96898bb1f",
"url": "https://api.github.com/repos/stymiee/authnetjson/zipball/ed35019cc3278f08f0104148fcdbaf29d412b779",
"reference": "ed35019cc3278f08f0104148fcdbaf29d412b779",
"shasum": ""
},
"require": {
"curl/curl": "^1.5",
"curl/curl": "^2",
"ext-curl": "*",
"ext-json": "*",
"php": ">=5.4.0"
"php": ">=7.2.0"
},
"require-dev": {
"phpmd/phpmd": "@stable",
"phpunit/phpunit": "^8",
"squizlabs/php_codesniffer": "3.*"
},
"time": "2019-06-04T00:18:39+00:00",
"time": "2020-06-22T00:32:20+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
"classmap": [
"src/"
]
"psr-4": {
"JohnConde\\Authnet\\": [
"src/authnet/",
"src/exceptions/"
]
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
......@@ -138,13 +146,14 @@
{
"name": "John Conde",
"email": "stymiee@gmail.com",
"homepage": "http://www.johnconde.net",
"homepage": "https://stymiee.dev",
"role": "Developer"
}
],
"description": "Library that abstracts Authorize.Net's JSON APIs. This includes the Advanced Integration Method (AIM), Automated Recurring Billing (ARB), Customer Information Manager (CIM), Transaction Reporting, Simple Integration Method (SIM), and Webhooks.",
"homepage": "http://github.com/stymiee/authnetjson",
"homepage": "https://github.com/stymiee/authnetjson",
"keywords": [
"AuthNet",
"JSON-API",
"authnetjson",
"authorize-net",
......
stages:
- build
- test
build-test-server:
image: docker:latest
stage: build
services:
- docker:dind
script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- docker build --pull -t "$CI_REGISTRY_IMAGE:server-test" tests/server
- docker push "$CI_REGISTRY_IMAGE:server-test"
only:
changes:
- tests/server
tests-php5.6:
image: alpine:3.7
stage: test
services:
- name: "$CI_REGISTRY_IMAGE:server-test"
alias: server_test
script:
- apk add --no-cache php5-cli php5-curl php5-gd php5-phar php5-json php5-openssl php5-dom php5-xml php5-zlib
- ln -s /usr/bin/php5 /usr/bin/php
- php --version
- if [ ! -f composer.phar ]; then DOWLOAD_COMPOSER=1 ; fi;
- if [ -n "$DOWLOAD_COMPOSER" ] ; then php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" ; fi;
- if [ -n "$DOWLOAD_COMPOSER" ] ; then php composer-setup.php ; fi;
- if [ -n "$DOWLOAD_COMPOSER" ] ; then php -r "unlink('composer-setup.php');" ; fi;
- php composer.phar install
- vendor/bin/phpcs --warning-severity=0 --standard=PSR2 src
- vendor/bin/phpunit
cache:
key: php5.6
paths:
- vendor
tests-php7.0:
image: alpine:3.5
stage: test
services:
- name: "$CI_REGISTRY_IMAGE:server-test"
alias: server_test
script:
- apk add --no-cache php7 php7-curl php7-gd php7-phar php7-json php7-openssl php7-dom php7-mbstring
- ln -s /usr/bin/php7 /usr/bin/php
- php --version
- if [ ! -f composer.phar ]; then DOWLOAD_COMPOSER=1 ; fi;
- if [ -n "$DOWLOAD_COMPOSER" ] ; then php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" ; fi;
- if [ -n "$DOWLOAD_COMPOSER" ] ; then php composer-setup.php ; fi;
- if [ -n "$DOWLOAD_COMPOSER" ] ; then php -r "unlink('composer-setup.php');" ; fi;
- php composer.phar install
- vendor/bin/phpcs --warning-severity=0 --standard=PSR2 src
- nohup php -S localhost:8000 -t tests/server/php-curl-test > phpd.log 2>&1 &
- vendor/bin/phpunit
cache:
key: php7.0
paths:
- composer.phar
- vendor
tests-php7.1:
image: alpine:3.7
stage: test
services:
- name: "$CI_REGISTRY_IMAGE:server-test"
alias: server_test
script:
- apk add --no-cache php7-cli php7-curl php7-gd php7-phar php7-json php7-openssl php7-dom php7-simplexml php7-tokenizer php7-mbstring php7-xml
- php --version
- if [ ! -f composer.phar ]; then DOWLOAD_COMPOSER=1 ; fi;
- if [ -n "$DOWLOAD_COMPOSER" ] ; then php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" ; fi;
- if [ -n "$DOWLOAD_COMPOSER" ] ; then php composer-setup.php ; fi;
- if [ -n "$DOWLOAD_COMPOSER" ] ; then php -r "unlink('composer-setup.php');" ; fi;
- php composer.phar install
- vendor/bin/phpcs --warning-severity=0 --standard=PSR2 src
- nohup php -S localhost:8000 -t tests/server/php-curl-test > phpd.log 2>&1 &
- vendor/bin/phpunit
cache:
key: php7.1
paths:
- composer.phar
- vendor
tests-php7.2:
image: alpine:3.9
stage: test
services:
- name: "$CI_REGISTRY_IMAGE:server-test"
alias: server_test
script:
- apk add --no-cache composer php7-cli php7-curl php7-gd php7-phar php7-json php7-openssl php7-dom php7-simplexml php7-tokenizer php7-mbstring php7-xml
- php --version
- composer install
- vendor/bin/phpcs --warning-severity=0 --standard=PSR2 src
- nohup php -S localhost:8000 -t tests/server/php-curl-test > phpd.log 2>&1 &
- vendor/bin/phpunit
cache:
key: php7.2
paths:
- vendor
tests-php7.3:
image: alpine:3.11
stage: test
services:
- name: "$CI_REGISTRY_IMAGE:server-test"
alias: server_test
script:
- apk add --no-cache composer php7-cli php7-curl php7-gd php7-phar php7-json php7-openssl php7-dom php7-simplexml php7-tokenizer php7-mbstring php7-xml
- php --version
- composer install
- vendor/bin/phpcs --warning-severity=0 --standard=PSR2 src
- nohup php -S localhost:8000 -t tests/server/php-curl-test > phpd.log 2>&1 &
- vendor/bin/phpunit
cache:
key: php7.3
paths:
- vendor
sudo: true
language: php
before_script:
- sudo apt-get update
- sudo apt-get install apache2 libapache2-mod-fastcgi
# enable php-fpm
- sudo cp ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf.default ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf
- sudo a2enmod rewrite actions fastcgi alias
- echo "cgi.fix_pathinfo = 1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- ~/.phpenv/versions/$(phpenv version-name)/sbin/php-fpm
# configure apache virtual hosts
- sudo cp -f build/travis-ci-apache /etc/apache2/sites-available/default
- sudo sed -e "s?%TRAVIS_BUILD_DIR%?$(pwd)?g" --in-place /etc/apache2/sites-available/default
- sudo service apache2 restart
- composer self-update
- composer install --dev --prefer-source
script:
- ./vendor/bin/phpcs --warning-severity=0 --standard=PSR2 src
- phpunit
php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- hhvm
......@@ -15,7 +15,7 @@ composer require curl/curl
or add the package manually to your composer.json file in the require section:
```json
"curl/curl": "^1.5"
"curl/curl": "^2.0"
```
## Usage examples
......@@ -115,7 +115,7 @@ fclose($file_handle);
```
## Testing
## Testing
In order to test the library:
......
<VirtualHost *:80>
DocumentRoot %TRAVIS_BUILD_DIR%/tests/server/php-curl-test
<Directory "%TRAVIS_BUILD_DIR%">
Options FollowSymLinks MultiViews ExecCGI
AllowOverride All
Order deny,allow
Allow from all
</Directory>
# Wire up Apache to use Travis CI's php-fpm.
<IfModule mod_fastcgi.c>
AddHandler php5-fcgi .php
Action php5-fcgi /php5-fcgi
Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi
FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -host 127.0.0.1:9000 -pass-header Authorization
</IfModule>
</VirtualHost>
......@@ -21,11 +21,11 @@
}
],
"require": {
"php": ">=5.3.0",
"php": "^5.6 | ^7.0",
"ext-curl": "*"
},
"require-dev": {
"phpunit/phpunit": "3.7.*",
"phpunit/phpunit": "^5.7",
"squizlabs/php_codesniffer": "~2.1"
},
"autoload": {
......
<?xml version="1.0" encoding="utf-8"?>
<extension type="library" method="upgrade" version="3.2.0">
<name>Curl</name>
<libraryname>curl</libraryname>
<author>Hassan Amouhzi and others (see github)</author>
<creationDate>March 2014</creationDate>
<copyright>Copyright (C) 2014</copyright>
<license>
The MIT License (MIT) see License.txt
</license>
<authorEmail>hassan@anezi.net</authorEmail>
<authorUrl>www.anezi.net</authorUrl>
<version>1.1.1</version>
<description>
Curl Library
</description>
<files>
<folder>src</folder>
<file>curl.xml</file>
<file>jautoload.php</file>