PHPackages                             soap/treasurer - 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. soap/treasurer

ActiveLibrary

soap/treasurer
==============

Laravel integration for OMISE payment service

v0.0.3(1y ago)01[2 PRs](https://github.com/soap/treasurer/pulls)MITPHPPHP ^8.3CI passing

Since Dec 9Pushed 1y ago1 watchersCompare

[ Source](https://github.com/soap/treasurer)[ Packagist](https://packagist.org/packages/soap/treasurer)[ Docs](https://github.com/soap/treasurer)[ GitHub Sponsors](https://github.com/soap)[ RSS](/packages/soap-treasurer/feed)WikiDiscussions main Synced 1mo ago

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

Laravel integration for OMISE payment service
=============================================

[](#laravel-integration-for-omise-payment-service)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3eabd414e1828bc7ba73358b29123ed3016eefff4187b15af644be371557b82f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736f61702f7472656173757265722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/soap/treasurer)[![run-tests](https://github.com/soap/treasurer/actions/workflows/run-tests.yml/badge.svg)](https://github.com/soap/treasurer/actions/workflows/run-tests.yml)[![Check & fix styling](https://github.com/soap/treasurer/actions/workflows/php-cs-fixer.yml/badge.svg)](https://github.com/soap/treasurer/actions/workflows/php-cs-fixer.yml)[![Total Downloads](https://camo.githubusercontent.com/16fccdd1ee9facc419f3f7895ed1276287d68749491372f030ba6555d83655a3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736f61702f7472656173757265722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/soap/treasurer)

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

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

[](#support-us)

[![](https://camo.githubusercontent.com/3d2fff99e07fb0550b988c0620fea81c0e11ac3db66fc00697c7d30d24fec4bf/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f7472656173757265722e6a70673f743d31)](https://spatie.be/github-ad-click/treasurer)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

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

[](#installation)

You can install the package via composer:

```
composer require soap/treasurer
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="treasurer-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="treasurer-config"
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="treasurer-views"
```

This is the contents of the published config file:

```
return [

    'url' => 'https://api.omise.co',

    'live_public_key' => env('OMISE_LIVE_PUBLIC_KEY', ''),
    'live_secret_key' => env('OMISE_LIVE_SECRET_KEY', ''),

    'test_public_key' => env('OMISE_TEST_PUBLIC_KEY', ''),
    'test_secret_key' => env('OMISE_TEST_SECRET_KEY', ''),

    'api_version' => env('OMISE_API_VERSION', '2019-05-29'),

    'sanbox_status' => env('OMISE_SANDBOX_STATUS', true),
];
```

Usage
-----

[](#usage)

Firstly, you have to register for OMISE payment service. Then fill in your keys in .env file.

You can retreive Public key or Secret key like this (it will provide LIVE or TEST key depending on your configuration.)

```
$treasurer = app(\Soap\Treasurer\Treasure::class);

$publicKey = $treasurer->getPublicKey();
$secretKey = $treasurer->getSecretKey();
```

### Note for all Omise wrapper classes, like Charge, Customer, Account etc.

[](#note-for-all-omise-wrapper-classes-like-charge-customer-account-etc)

When you make a call to each API call, the object will have access to response array using $object-&gt;$key or $object-&gt;$key(). These keys are provided in response API array by Omise. For example Charge API response array will be:

```
#_values => [
  'object' => 'charge',
  'id' => 'chrg_tes_6131313133131344',
  'amount' => 2000,
  'fee_vat' => 51,
   ...
];
```

Then you can get them like this:

```
  $charge->amount(); // $charge->amount;
  $charg->feeVat(); // $charge->fee_vat;
```

For each of Omise wrapper class, you can call without worry about Public key and Secret key. And the package (early version) provides an ease way to get return values from Omise like above.

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

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

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Prasit Gebsaap](https://github.com/soap)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance41

Moderate activity, may be stable

Popularity1

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

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

Total

3

Last Release

515d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1073690?v=4)[Prasit Gebsaap](/maintainers/soap)[@soap](https://github.com/soap)

---

Top Contributors

[![soap](https://avatars.githubusercontent.com/u/1073690?v=4)](https://github.com/soap "soap (25 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (16 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (12 commits)")[![kpscyber](https://avatars.githubusercontent.com/u/126277570?v=4)](https://github.com/kpscyber "kpscyber (7 commits)")

---

Tags

laravelsoaptreasurer

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/soap-treasurer/health.svg)

```
[![Health](https://phpackages.com/badges/soap-treasurer/health.svg)](https://phpackages.com/packages/soap-treasurer)
```

###  Alternatives

[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[codedredd/laravel-soap

A SoapClient wrapper integration for Laravel

221516.6k3](/packages/codedredd-laravel-soap)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)

PHPackages © 2026

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