PHPackages                             solidgate/php-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. solidgate/php-sdk

ActiveLibrary[Payment Processing](/categories/payments)

solidgate/php-sdk
=================

Php API SDK for SolidGate payment gateway

v1.6.2(2y ago)3523.8k↓44%4[1 issues](https://github.com/solidgate-tech/php-sdk/issues)[1 PRs](https://github.com/solidgate-tech/php-sdk/pulls)MITPHPPHP ^7.1|^8.0

Since Feb 4Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/solidgate-tech/php-sdk)[ Packagist](https://packagist.org/packages/solidgate/php-sdk)[ RSS](/packages/solidgate-php-sdk/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (1)Versions (19)Used By (0)

Solidgate API
=============

[](#solidgate-api)

[![PHP version](https://camo.githubusercontent.com/b745c41d977ce10f769688ad04a8ab5fbdd132ea8e736da92118222071c0f23d/68747470733a2f2f62616467652e667572792e696f2f70682f736f6c6964676174652532467068702d73646b2e737667)](https://badge.fury.io/ph/solidgate%2Fphp-sdk)

PHP SDK provides API options for integrating Solidgate’s payment orchestrator into your PHP applications.

Check our

- [Payment guide](https://docs.solidgate.com/) to understand business value better
- [API Reference](https://api-docs.solidgate.com/) to find more examples of usage

Structure
---------

[](#structure)

  SDK for PHP contains Table of contents    `src/solidgate/` – main library source code for development
 `composer.json` – script for managing dependencies and library imports   [Requirements](https://github.com/solidgate-tech/php-sdk?tab=readme-ov-file#requirements)
 [Installation](https://github.com/solidgate-tech/php-sdk?tab=readme-ov-file#installation)
 [Usage](https://github.com/solidgate-tech/php-sdk?tab=readme-ov-file#usage)
 [Errors](https://github.com/solidgate-tech/php-sdk?tab=readme-ov-file#errors)  Requirements
------------

[](#requirements)

- **PHP**: 7.2 or later
- **Composer**: Dependency manager for PHP
- **Solidgate account**: Public and secret key (request via [](mailto:sales@solidgate.com))

Installation
------------

[](#installation)

To start using the PHP SDK:

1. Ensure you have your public and secret key.
2. Install the SDK in your project using Composer: ```
    composer require solidgate/php-sdk
    ```
3. Alternatively, add the library to your composer.json file ```
    {
        "require": {
            "solidgate/php-sdk": "~1.0"
        }
    }
    ```
4. Import the installed libraries into your application.
5. Use test credentials to validate your integration.
6. After successful testing, request production credentials and deploy your service.
     *Composer simplifies the installation and management of SDK dependencies, ensuring seamless integration.*

Usage
-----

[](#usage)

### Charge a payment

[](#charge-a-payment)

```
