PHPackages                             payos/payos - 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. payos/payos

ActiveLibrary[Payment Processing](/categories/payments)

payos/payos
===========

A payOS package for PHP

2.0.0(6mo ago)27.7k↑45%2[2 issues](https://github.com/payOSHQ/payos-lib-php/issues)MITPHPPHP &gt;=8.2

Since Dec 19Pushed 6mo agoCompare

[ Source](https://github.com/payOSHQ/payos-lib-php)[ Packagist](https://packagist.org/packages/payos/payos)[ RSS](/packages/payos-payos/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (9)Dependencies (11)Versions (11)Used By (0)

payOS PHP Library
=================

[](#payos-php-library)

[![Packagist Downloads](https://camo.githubusercontent.com/1404516220c513a166826bfecec0ed8574ef80668d9766ead8fe02debdc98886/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f7061796f732f7061796f73)](https://packagist.org/packages/payos/payos)[![Packagist Version](https://camo.githubusercontent.com/cd108716dfe7a378633c95bea0941ba807c58de3c0101ad38f53cbca2248da3e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7061796f732f7061796f73)](https://packagist.org/packages/payos/payos)

The payOS PHP library provides convenient access to the payOS Merchant API from applications written in PHP.

To learn how to use the payOS Merchant API, check out our [API Reference](https://payos.vn/docs/api) and [Documentation](https://payos.vn/docs). We also have useful examples in the [`examples/`](./examples/) directory.

Requirements
------------

[](#requirements)

PHP 8.2 or higher.

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

[](#installation)

Install with Composer:

```
composer require payos/payos
```

Ensure that the `php-http/discovery` composer plugin is allowed to run or install a client manually if your project does not already have a PSR-18 HTTP client integrated.

```
composer require guzzlehttp/guzzle
```

Usage
-----

[](#usage)

### Basic usage

[](#basic-usage)

First you need to initialize the client to interact with the payOS Merchant API.

```
