From f6987fec91085716634ff2399955ec83a8f16c6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20Gon=C3=A7alves?= Date: Sat, 4 Apr 2020 16:47:47 -0300 Subject: [PATCH] Update doctrine version --- README.md | 17 ++++++----------- composer.json | 10 +++++----- 2 files changed, 11 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 09f4e934..db9933d5 100755 --- a/README.md +++ b/README.md @@ -6,14 +6,17 @@ This library provides developers with a simple set of bindings to the Mercado Pa ### PHP Versions Supported: -The SDK supports PHP 5.6 or major +The SDK supports PHP 5.6, 7.1 or major ### Installation #### Using Composer 1. Download [Composer](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-macos) if not already installed -2. Go to your project directory and run `composer require "mercadopago/dx-php:1.2.1"` on the command line. +2. Go to your project directory and run on the command line +`composer require "mercadopago/dx-php:2.0.0"` for PHP7 or `composer require "mercadopago/dx-php:1.8.1"` for PHP5.6. +See the latest version (here)[https://github.com/mercadopago/dx-php/releases]. + 3. This how your directory structure would look like. 4. Thats all, you have Mercado Pago SDK installed. @@ -29,19 +32,11 @@ The SDK supports PHP 5.6 or major 2. Setup your credentials - You have two types of credentials: - - * **For API or custom checkout:** ```php MercadoPago\SDK::setAccessToken("YOUR_ACCESS_TOKEN"); // On Production MercadoPago\SDK::setAccessToken("YOUR_TEST_ACCESS_TOKEN"); // On Sandbox ``` - * **For Web-checkout:** - ```php - MercadoPago\SDK::setClientId("YOUR_CLIENT_ID"); - MercadoPago\SDK::setClientSecret("YOUR_CLIENT_SECRET"); - ``` - + 3. Using resource objects. You can interact with all the resources available in the public API, to this each resource is represented by classes according to the following diagram: diff --git a/composer.json b/composer.json index d1545c61..c5d4dbee 100755 --- a/composer.json +++ b/composer.json @@ -3,10 +3,10 @@ "type": "library", "homepage": "https://github.com/mercadopago/dx-php", "license": "MIT", - "version": "1.8.0", + "version": "2.0.0", "config": { "platform": { - "php": "5.6" + "php": "7.1" } }, "authors": [ @@ -22,9 +22,9 @@ } ], "require": { - "php": ">=5.5.0", - "doctrine/common": "~2.6", - "doctrine/annotations": "1.4" + "php": ">=7.1.0", + "doctrine/common": "^2.6", + "doctrine/annotations": "^1.8" }, "require-dev": { "phpunit/phpunit": "^5",