PHPackages                             lloricode/laravel-maya-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. lloricode/laravel-maya-sdk

ActiveLibrary

lloricode/laravel-maya-sdk
==========================

SDK for Paymaya using Laravel

v3.2.0(8mo ago)0196MITPHPPHP ^8.3CI passing

Since Sep 1Pushed 2mo agoCompare

[ Source](https://github.com/lloricode/laravel-maya-sdk)[ Packagist](https://packagist.org/packages/lloricode/laravel-maya-sdk)[ Docs](https://github.com/lloricode/laravel-maya-sdk)[ GitHub Sponsors](https://github.com/lloricde)[ RSS](/packages/lloricode-laravel-maya-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (16)Versions (6)Used By (0)

Maya SDK for Laravel
====================

[](#maya-sdk-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/cdfd4a05308c6d79c0c27a7e9445e6df9e951ddef380b7cf32f732d2a1bf2a13/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6c6f7269636f64652f6c61726176656c2d6d6179612d73646b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lloricode/laravel-maya-sdk)[![Tests](https://github.com/lloricode/laravel-maya-sdk/actions/workflows/run-tests.yml/badge.svg)](https://github.com/lloricode/laravel-maya-sdk/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/b460934b54c0eb39dca21d11472ec9dbe2dcdc1fa407a2fd6c4fc683265e32bb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6c6f7269636f64652f6c61726176656c2d6d6179612d73646b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lloricode/laravel-maya-sdk)[![codecov](https://camo.githubusercontent.com/98e28dc10a3ead4cb2a1f1daa3f35017f9abd78e2865434ca766d3f84b9b89e7/68747470733a2f2f636f6465636f762e696f2f67682f6c6c6f7269636f64652f6c61726176656c2d6d6179612d73646b2f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d4a58524839584234424c)](https://codecov.io/gh/lloricode/laravel-maya-sdk)[![Donate](https://camo.githubusercontent.com/604e3db9c8751116b3f765aad0353ec7ded655bbe8aaacbc38d8c4a6b784b3ed/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d677265656e2e737667)](https://www.paypal.com/donate?hosted_button_id=V8PYXUNG6QP44)

[![ko-fi](https://camo.githubusercontent.com/201ef269611db7eb6b5d08e9f756ab8980df3014b64492770bdf13a6ed924641/68747470733a2f2f6b6f2d66692e636f6d2f696d672f676974687562627574746f6e5f736d2e737667)](https://ko-fi.com/D1D71HJZD)

Maya SDK for laravel, it uses [lloricode/paymaya-sdk-php](https://github.com/lloricode/paymaya-sdk-php).

- [Installation](#installation)
- [Usage](#usage)
    - [Checkout](#checkout)
    - [Webhooks](#webhook)
    - [Testing with Saloon Client Mock](#testing-with-saloon-client-mock)

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

[](#installation)

You can install the package via composer:

```
composer require lloricode/laravel-maya-sdk
```

You can publish the config file with:

```
php artisan vendor:publish --provider="Lloricode\LaravelPaymaya\LaravelPaymayaServiceProvider" --tag="maya-sdk-config"
```

This is the contents of the published config file:

```
