PHPackages                             reactmore-tech/mayar-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. reactmore-tech/mayar-php-sdk

ActiveLibrary[Payment Processing](/categories/payments)

reactmore-tech/mayar-php-sdk
============================

About \[unofficial\] Mayar.id Payment API Client for PHP | https://mayar.id

1.2.0(11mo ago)131[4 PRs](https://github.com/reactmore-tech/mayar-php-sdk/pulls)MITPHPPHP ^7.4 || ^8.0CI passing

Since Feb 21Pushed 5mo agoCompare

[ Source](https://github.com/reactmore-tech/mayar-php-sdk)[ Packagist](https://packagist.org/packages/reactmore-tech/mayar-php-sdk)[ Docs](https://github.com/reactmore-tech/mayar-php-sdk)[ Fund](https://react-more-78458.myr.id/support)[ GitHub Sponsors](https://github.com/reactmore)[ RSS](/packages/reactmore-tech-mayar-php-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (5)Versions (7)Used By (0)

Mayar.id Unofficial PHP SDK
===========================

[](#mayarid-unofficial-php-sdk)

[![Latest Version](https://camo.githubusercontent.com/76d72eb4416d766f8a892c90f7f89425b5520bebc2f16b4494c8f964bbc43914/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f72656163746d6f72652d746563682f6d617961722d686561646c6573732d6170692e7376673f7374796c653d666c61742d737175617265)](https://github.com/reactmore-tech/mayar-headless-api/releases)[![MIT Licensed](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/995c9ab94c0e8a6159f55b63b23c11b3ff713d5956f0ee0791371075d9294e63/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f72656163746d6f72652d746563682f6d617961722d7068702d73646b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/reactmore-tech/mayar-php-sdk)

Account
-------

[](#account)

You need api key to used this API register in [Mayar.id](https://web.mayar.id/sign-in/coupon/AWxPjjx)

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

[](#installation)

```
composer require reactmore-tech/mayar-php-sdk

```

Usage
-----

[](#usage)

```
require 'vendor/autoload.php';

$mayarId = new \ReactMoreTech\MayarHeadlessAPI\MayarProvider();
$mayarId->setProduction(false);
$mayarId->apiToken("xxxx");
$mayarId->webhookToken("xxxxxx");
```

OR

```
$mayarId = new \ReactMoreTech\MayarHeadlessAPI\MayarProvider([
  'apiToken' => "xxxxxxxxxxxxx",
  'webhookToken' => "xxxxxxxxxxx",
  'isProduction' => false,
]);
```

Mayar Headless API Example Method in WIKI
-----------------------------------------

[](#mayar-headless-api-example-method-in-wiki)

See Example on [WIKI](https://github.com/reactmore-tech/mayar-headless-api/wiki):

- Product
- Invoice
- Request Payment
- Installment
- Discount &amp; Coupon
- Cart (No Realease yet from api)
- Customer
- Transaction
- Webhook
- Software License Code
- SaaS Membership License

Note that this repository is currently under development, additional classes and endpoints being actively added.

Contributions
-------------

[](#contributions)

We welcome community contributions to this repository. Please refer to the contribution guidelines to get started.

Licensing
---------

[](#licensing)

Licensed under the MIT license. See the [LICENSE](LICENSE) file for details.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance64

Regular maintenance activity

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~58 days

Total

3

Last Release

333d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3570cc985c6b8a72d6c662e81a23ef79c03cea6b4ad9e82da64365a5a641afe5?d=identicon)[reactmore](/maintainers/reactmore)

---

Top Contributors

[![reactmore](https://avatars.githubusercontent.com/u/64960434?v=4)](https://github.com/reactmore "reactmore (55 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")

---

Tags

mayar-phppayment-gatewayMayarmayar.idMayar Payment Gateway

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/reactmore-tech-mayar-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/reactmore-tech-mayar-php-sdk/health.svg)](https://phpackages.com/packages/reactmore-tech-mayar-php-sdk)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[imdhemy/google-play-billing

Google Play Billing

491.3M5](/packages/imdhemy-google-play-billing)[buckaroo/sdk

Buckaroo payment SDK

12189.1k9](/packages/buckaroo-sdk)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[contica/facturador-electronico-cr

Un facturador de código libre para integrar facturación electrónica en Costa Rica a un proyecto PHP

2128.8k](/packages/contica-facturador-electronico-cr)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
