Install Razorpay PHP SDK

Install the PHP server-side SDK to interact with Razorpay APIs.

Integrate the Razorpay PHP SDK with your PHP-based website to accept payments, initiate refunds and much more.


You can either download or run a composer command to install Razorpay PHP SDK.


Download the latest file from the releases section on GitHub. The is pre-compiled to include all dependencies.

Use Composer Command🔗

You can install Razorpay using a composer command. Run the below command on your Composer: Unzip the SDK file and include the Razorpay.php file in your project.

Copycomposer require razorpay/razorpay:2.*