Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md for dependency installations. #292

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down