diff --git a/README.md b/README.md index fb0edaf..b677a72 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,19 @@ ## Overview -GetResponse API v3 wrapper working on PHP 5.2+. +GetResponse API v3 wrapper working on PHP 5.3+. [Here](http://apidocs.getresponse.com/en/v3/) you can find our api documentation. ##Examples Standard authorization ```php -$getresponse = new GetResponse('your_api_key'); +$getresponse = new GetResponse\GetResponse('your_api_key'); ``` -- Enterprise authorization ```php -$getresponse = new GetResponse('your_api_key'); +$getresponse = new GetResponse\GetResponse('your_api_key'); $getresponse->enterprise_domain = 'somedomain.com'; //api URL is relative to your domain UR: diff --git a/composer.json b/composer.json index 3bd66e2..715f52c 100644 --- a/composer.json +++ b/composer.json @@ -1,10 +1,8 @@ { "name": "getresponse/getresponse", "description": "GetResponse API v3 client library.", - "version": "0.0.2", "homepage": "https://github.com/GetResponse/getresponse-api-php", "keywords": ["GetResponse", "api", "email"], - "type": "library", "license": "MIT", "authors": [ { @@ -17,10 +15,12 @@ } ], "require": { - "php": ">=5.2.0", + "php": ">=5.3.0", "ext-curl": "*" }, "autoload": { - "files": ["src/GetResponseAPI3.class.php"] + "psr-4": { + "GetResponse\\": "src/" + } } -} \ No newline at end of file +} diff --git a/src/GetResponseAPI3.class.php b/src/GetResponse.php similarity index 99% rename from src/GetResponseAPI3.class.php rename to src/GetResponse.php index 2782e2f..06bfedc 100644 --- a/src/GetResponseAPI3.class.php +++ b/src/GetResponse.php @@ -1,5 +1,7 @@