Updating version nos for V0.6.0 release

This commit is contained in:
aydiv
2013-04-25 17:17:36 +05:30
parent e8e7ad807e
commit 0699f628bd
4 changed files with 89 additions and 84 deletions

View File

@@ -1,7 +1,12 @@
CHANGELOG CHANGELOG
========= =========
V0.5.0 (March 07, 2013) V0.6.0 (April 25, 2013)
----------------------- -----------------------
* Initial Release * Adding support for dynamic configuration of SDK (Upgrading sdk-core-php dependency to V1.4.0)
V0.5.0 (March 07, 2013)
-----------------------
* Initial Release

122
README.md
View File

@@ -1,61 +1,61 @@
REST API SDK for PHP (V0.5.0) REST API SDK for PHP (V0.6.0)
============================== ==============================
PayPal's PHP SDK for the RESTful APIs PayPal's PHP SDK for the RESTful APIs
Prerequisites Prerequisites
------------- -------------
* PHP 5.3 or above * PHP 5.3 or above
* curl, json & openssl extensions must be enabled * curl, json & openssl extensions must be enabled
* composer for running the sample out of the box (See http://getcomposer.org) * composer for running the sample out of the box (See http://getcomposer.org)
Running the sample Running the sample
------------------ ------------------
* Ensure that you have composer installed on your machine. * Ensure that you have composer installed on your machine.
* Navigate to the samples folder and run 'composer update'. * Navigate to the samples folder and run 'composer update'.
* Optionally, update the sdk_config.ini file with your own client Id and client secret. * Optionally, update the sdk_config.ini file with your own client Id and client secret.
* Run any of the command line samples in the folder to see what the APIs can do. * Run any of the command line samples in the folder to see what the APIs can do.
Usage Usage
----- -----
To write an app that uses the SDK To write an app that uses the SDK
* Copy the composer.json file from the sample folder over to your project and run 'composer update' to fetch all * Copy the composer.json file from the sample folder over to your project and run 'composer update' to fetch all
dependencies dependencies
* Copy the sample configuration file sdk_config.ini to a location of your choice and let the SDK know your config path using the following define directive * Copy the sample configuration file sdk_config.ini to a location of your choice and let the SDK know your config path using the following define directive
define('PP_SDK_CONFIG_PATH', /path/to/your/sdk_config.ini); define('PP_SDK_CONFIG_PATH', /path/to/your/sdk_config.ini);
* Obtain your clientId and client secret from the developer portal and add them to your config file * Obtain your clientId and client secret from the developer portal and add them to your config file
* Now you are all set to make your first API call. Create a resource object as per your need and call the relevant operation or invoke one of the static methods on your resource class. * Now you are all set to make your first API call. Create a resource object as per your need and call the relevant operation or invoke one of the static methods on your resource class.
$payment = new Payment(); $payment = new Payment();
$payment->setIntent("Sale"); $payment->setIntent("Sale");
... ...
$payment->create(); $payment->create();
*OR* *OR*
$payment = Payment::get('payment_id'); $payment = Payment::get('payment_id');
These examples pick the client id / secret automatically from your config file. You can also set API credentials dynamically. See the sample code for how you can do this. These examples pick the client id / secret automatically from your config file. You can also set API credentials dynamically. See the sample code for how you can do this.
Contributing Contributing
------------ ------------
More help More help
--------- ---------
* API Reference * API Reference
* Reporting issues / feature requests * Reporting issues / feature requests

View File

@@ -12,7 +12,7 @@ class RestHandler implements \IPPHandler {
private $apiContext; private $apiContext;
public static $sdkName = "rest-sdk-php"; public static $sdkName = "rest-sdk-php";
public static $sdkVersion = "0.5.0"; public static $sdkVersion = "0.6.0";
public function __construct($apiContext) { public function __construct($apiContext) {
$this->apiContext = $apiContext; $this->apiContext = $apiContext;
@@ -74,4 +74,4 @@ class RestHandler implements \IPPHandler {
} }
} }
} }

View File

@@ -1,14 +1,14 @@
{ {
"name": "paypal/rest-api-sdk-sample-php", "name": "paypal/rest-api-sdk-sample-php",
"description": "Samples using PayPal's REST API SDK for PHP", "description": "Samples using PayPal's REST API SDK for PHP",
"homepage": "https://github.com/paypal/rest-api-sdk-php", "homepage": "https://github.com/paypal/rest-api-sdk-php",
"config": { "config": {
"require-all": true "require-all": true
}, },
"require": { "require": {
"php": ">=5.3.0", "php": ">=5.3.0",
"ext-curl": "*", "ext-curl": "*",
"ext-json": "*", "ext-json": "*",
"paypal/rest-api-sdk-php" : "0.5.*" "paypal/rest-api-sdk-php" : "0.6.*"
} }
} }