From 50edd496110d278bfe10baf1a3f571fc5a4050fe Mon Sep 17 00:00:00 2001 From: Jayesh Waghmare <58288373+jayesh-w@users.noreply.github.com> Date: Fri, 6 May 2022 18:04:34 +0530 Subject: [PATCH] Update README.md for dependency installations. Requests requires manual installation for non composer users. --- README.md | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c905ea11..ced9f54d 100644 --- a/README.md +++ b/README.md @@ -12,17 +12,30 @@ Read up here for getting started and understanding the payment flow with Razorpa ## Installation + +### For Composer - If your project using composer, run the below command ``` composer require razorpay/razorpay:2.* ``` -- If you are not using composer, download the latest release from [the releases section](https://github.com/razorpay/razorpay-php/releases). - **You should download the `razorpay-php.zip` file**. - After that, include `Razorpay.php` in your application and you can use the API as usual. +### For Non Composer +- Download the latest release from the [the releases section](https://github.com/razorpay/razorpay-php/releases). +- Download razorpay-php.zip file. +- Include Razorpay.php in your application and use it. +- Download and Extract Requests API from [Requests Github Link](https://github.com/WordPress/Requests/releases). +- Extract it to the libs/ directory where Razorpay.php is. +- The dependency should look like this libs/Requests-2.0.0 +- Note : Make sure the version number is same in Razorpay.php for the line : +``` +require_once __DIR__.'/libs/Requests-2.0.0/src/Autoload.php'; +``` + +Now you can use API as usual. + -##Note: +## Note: This PHP library follows the following practices: - Namespaced under `Razorpay\Api`