PHPackages                             2checkout/2checkout-php - 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. 2checkout/2checkout-php

ActiveLibrary[Payment Processing](/categories/payments)

2checkout/2checkout-php
=======================

2Checkout PHP Library

v0.4.0(6y ago)83740.3k↓25.5%68[22 issues](https://github.com/2Checkout/2checkout-php/issues)[3 PRs](https://github.com/2Checkout/2checkout-php/pulls)2MITPHPPHP &gt;=5.2.0

Since Apr 3Pushed 3y ago10 watchersCompare

[ Source](https://github.com/2Checkout/2checkout-php)[ Packagist](https://packagist.org/packages/2checkout/2checkout-php)[ Docs](https://github.com/2Checkout/2checkout-php)[ RSS](/packages/2checkout-2checkout-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (2)

DEPRECATED!!! This SDK can only be used with the legacy 2Checkout platform which is depreciated. Please use [2checkout-php-sdk](https://github.com/2Checkout/2checkout-php-sdk) with the current 2Checkout platform.
====================================================================================================================================================================================================================

[](#deprecated-this-sdk-can-only-be-used-with-the-legacy-2checkout-platform-which-is-depreciated-please-use-2checkout-php-sdk-with-the-current-2checkout-platform)

This library provides developers with a simple set of bindings to the 2Checkout Payment API, Hosted Checkout, Instant Notification Service and Admin API.

To use, download or clone the repository.

```
git clone https://github.com/2Checkout/2checkout-php.git
```

Require in your php script.

```
require_once("/path/to/2checkout-php/lib/Twocheckout.php");
```

All methods return an Array by default or you can set the format to 'json' to get a JSON response. **Example:**

```
