PHPackages                             coreproc/paymaya-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. coreproc/paymaya-sdk

ActiveLibrary[Payment Processing](/categories/payments)

coreproc/paymaya-sdk
====================

A better PayMaya SDK

2.5.1(11mo ago)52.3k↓88.8%6[1 PRs](https://github.com/CoreProc/paymaya-sdk-php/pulls)1MITPHPPHP ^7.2|^8.0CI failing

Since Sep 18Pushed 11mo ago3 watchersCompare

[ Source](https://github.com/CoreProc/paymaya-sdk-php)[ Packagist](https://packagist.org/packages/coreproc/paymaya-sdk)[ Docs](https://github.com/coreproc/paymaya-sdk-php)[ RSS](/packages/coreproc-paymaya-sdk/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (5)Versions (23)Used By (1)

PayMaya SDK for PHP
===================

[](#paymaya-sdk-for-php)

[![Latest Version on Packagist](https://camo.githubusercontent.com/206d67bb7dd816a11eb1258cfa1b6b24d28962b106eb1ed6fd3ff3e798fe8e12/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f726570726f632f7061796d6179612d73646b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/coreproc/paymaya-sdk)[![Quality Score](https://camo.githubusercontent.com/ba3bfc3c0a4a327ce75549fa5f9c31af3df696cdc63da7fec7fdd8db307158df/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f636f726570726f632f7061796d6179612d73646b2d7068702e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/coreproc/paymaya-sdk)[![Total Downloads](https://camo.githubusercontent.com/2b7bdec516f69e0eee3bfc7b51256bee526a9118f6192759bfc62e2414f86fe4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f726570726f632f7061796d6179612d73646b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/coreproc/paymaya-sdk)

This is an unofficial SDK for PayMaya using PHP but offers improvements over the official PayMaya codebase.

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

[](#installation)

You can install the package via composer:

```
composer require coreproc/paymaya-sdk
```

Usage
-----

[](#usage)

Read the documentation here:

To get development API keys and credit cards, check the link here:

### Initiate checkout of items

[](#initiate-checkout-of-items)

Here is an example of how to use this SDK with checkout. The example is based off the payload found in the documentation.

```
$payMayaApi = new \CoreProc\PayMaya\PayMayaApi('',
    '', \CoreProc\PayMaya\PayMayaApi::ENVIRONMENT_SANDBOX);

$checkout = new \CoreProc\PayMaya\Requests\Checkout();

$checkout->setTotalAmount(
    (new \CoreProc\PayMaya\Requests\TotalAmount())
        ->setCurrency('PHP')
        ->setValue(6304.90)
        ->setDetails(
            (new \CoreProc\PayMaya\Requests\AmountDetail())
                ->setDiscount(300.00)
                ->setServiceCharge(50.00)
                ->setShippingFee(200.00)
                ->setTax(691.60)
                ->setSubtotal(5763.30))
)->setBuyer(
    (new \CoreProc\PayMaya\Requests\Buyer())
        ->setFirstName('Juan')
        ->setMiddleName('dela')
        ->setLastName('Cruz')
        ->setContact(
            (new \CoreProc\PayMaya\Requests\Contact())
                ->setEmail('paymayabuyer1@gmail.com')
                ->setPhone('+63(2)1234567890')
        )->setShippingAddress(
            (new \CoreProc\PayMaya\Requests\Address())
                ->setLine1('9F Robinsons Cybergate 3')
                ->setLine2('Pioneer Street')
                ->setCity('Mandaluyong City')
                ->setState('Metro Manila')
                ->setZipCode('12345')
                ->setCountryCode('PH')
        )->setBillingAddress(
            (new \CoreProc\PayMaya\Requests\Address())
                ->setLine1('9F Robinsons Cybergate 3')
                ->setLine2('Pioneer Street')
                ->setCity('Mandaluyong City')
                ->setState('Metro Manila')
                ->setZipCode('12345')
                ->setCountryCode('PH')
        )
        ->setIpAddress('125.60.148.241')
)->setItems([
    (new \CoreProc\PayMaya\Requests\Item())
        ->setName('Canvas Slip Ons')
        ->setCode('CVG-096732')
        ->setDescription('Shoes')
        ->setQuantity(3)
        ->setAmount(
            (new \CoreProc\PayMaya\Requests\ItemAmount())
                ->setValue(1621.10)
                ->setDetails(
                    (new \CoreProc\PayMaya\Requests\AmountDetail())
                        ->setDiscount(100.00)
                        ->setSubtotal(1721.10)
                )
        )->setTotalAmount(
            (new \CoreProc\PayMaya\Requests\TotalAmount())
                ->setValue(4863.30)
                ->setDetails(
                    (new \CoreProc\PayMaya\Requests\AmountDetail())
                        ->setDiscount(300)
                        ->setSubtotal(5163.30)
                )
        ),
    (new \CoreProc\PayMaya\Requests\Item())
        ->setName('PU Ballerina Flats')
        ->setCode('CVG-096733')
        ->setDescription('Shoes')
        ->setQuantity(1)
        ->setAmount(
            (new \CoreProc\PayMaya\Requests\ItemAmount())
                ->setValue(600)
        )->setTotalAmount(
            (new \CoreProc\PayMaya\Requests\TotalAmount())
                ->setValue(600)
        ),
])->setRedirectUrl(
    (new \CoreProc\PayMaya\Requests\RedirectUrl())
        ->setSuccess('http://shop.test/success')
        ->setFailure('http://shop.test/failure')
        ->setCancel('http://shop.test/cancel')
)->setRequestReferenceNumber('0001');

$checkoutResponse = $payMayaApi->checkout($checkout);

echo $checkoutResponse->getRedirectUrl();
```

### Testing

[](#testing)

No tests yet.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Chris Bautista](https://github.com/chrisbjr)
- [All Contributors](../../contributors)

Support us
----------

[](#support-us)

CoreProc is a software development company that provides software development services to startups, digital/ad agencies, and enterprises.

Learn more about us on our [website](https://coreproc.com).

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance51

Moderate activity, may be stable

Popularity27

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~112 days

Recently: every ~436 days

Total

20

Last Release

344d ago

Major Versions

0.0.1 → 1.0.02019-10-02

1.0.1 → v2.x-dev2019-12-21

PHP version history (2 changes)0.0.1PHP ^7.2

2.5.0PHP ^7.2|^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7066371?v=4)[CoreProc](/maintainers/coreproc)[@CoreProc](https://github.com/CoreProc)

---

Top Contributors

[![chrisbjr](https://avatars.githubusercontent.com/u/571279?v=4)](https://github.com/chrisbjr "chrisbjr (15 commits)")[![kodumen](https://avatars.githubusercontent.com/u/8342995?v=4)](https://github.com/kodumen "kodumen (4 commits)")[![agustinecarpio-cp](https://avatars.githubusercontent.com/u/67459427?v=4)](https://github.com/agustinecarpio-cp "agustinecarpio-cp (3 commits)")[![owenbanan-cp](https://avatars.githubusercontent.com/u/70565582?v=4)](https://github.com/owenbanan-cp "owenbanan-cp (3 commits)")[![jpalaca-cp](https://avatars.githubusercontent.com/u/147417443?v=4)](https://github.com/jpalaca-cp "jpalaca-cp (2 commits)")[![lloricode](https://avatars.githubusercontent.com/u/8251344?v=4)](https://github.com/lloricode "lloricode (2 commits)")[![rdaitan-cp](https://avatars.githubusercontent.com/u/66294995?v=4)](https://github.com/rdaitan-cp "rdaitan-cp (2 commits)")[![kaelmoreno-cp](https://avatars.githubusercontent.com/u/229916426?v=4)](https://github.com/kaelmoreno-cp "kaelmoreno-cp (1 commits)")

---

Tags

coreprocpaymaya-sdk

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/coreproc-paymaya-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/coreproc-paymaya-sdk/health.svg)](https://phpackages.com/packages/coreproc-paymaya-sdk)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[chargebee/chargebee-php

ChargeBee API client implementation for PHP

758.5M9](/packages/chargebee-chargebee-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[imdhemy/google-play-billing

Google Play Billing

491.5M5](/packages/imdhemy-google-play-billing)

PHPackages © 2026

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