Download the PHP package xsolla/xsolla-sdk-php without Composer
On this page you can find all versions of the php package xsolla/xsolla-sdk-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package xsolla-sdk-php
Xsolla SDK for PHP
An official PHP SDK for interacting with Xsolla API
This SDK can be used for:
- obtaining an authorization token
- processing of basic webhooks (user_validation, payment, refund, etc.)
Features
- Full customisation of Payment UI with the help of different methods of getting token.
- Client for all API methods, making your integration easy and convenient. You can use it for setting up and updating virtual currency, items and subscription plans, for managing the users balance, for checking the finance information with the help of Report API and so on.
- Convenient webhook server:
- To start you need only one callback function.
- All security checking already implemented: signature authentication and IP whitelisting.
- Full customisation of notification processing logic, if standard server class doesn’t suit you.
- SDK is built on Guzzle v3, and utilizes many of its features, including persistent connections, parallel requests, events and plugins (via Symfony2 EventDispatcher), service descriptions, over-the-wire logging, caching, flexible batching, and request retrying with truncated exponential back off.
Requirements
- PHP ^7.3 or ^8.0
- The following PHP extensions are required:
- curl
- json
Getting Started
Please register your Publisher Account and create the project. In order to use the PHP SDK Library you'll need:
- MERCHANT_ID
- API_KEY
- PROJECT_ID
- PROJECT_KEY
You can obtain these parameters using the information in your Company Profile and Project Settings.
Installation
Installing via Composer
The recommended way to install Xsolla SDK for PHP is through Composer.
After installing, you need to require Composer's autoloader:
Installing via Phar
You can download the packaged phar and include it in your scripts to get started:
Installing via Zip
You can download the zip file, unzip it into your project to a location of your choosing, and include the autoloader:
Quick Examples
Receive webhooks
There is a build in server class to help you to handle the webhooks.
Solution with webhook server:
Solution with just helper classes in some php function:
Once you've finished the handling of notifications on your server, please set up the URL that will receive all webhook notifications on the Settings page for your project.
Troubleshooting
You can find solutions for the most frequently encountered errors in our documentation.
Contributing
Please take a look at the CONTRIBUTING.md to see how to get your changes merged in.
Additional resources
- Website
- Documentation
- Status
- Support and Feedback
All versions of xsolla-sdk-php with dependencies
ext-curl Version *
ext-json Version *
guzzlehttp/guzzle Version ~6.0 || ~7.0
symfony/http-foundation Version ~2.3 || ~3.0 || ~4.0 || ~5.0 || ~6.0.0 || ~7.0