PHPackages                             gerbang-bayar/atome - 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. gerbang-bayar/atome

ActiveLibrary[Payment Processing](/categories/payments)

gerbang-bayar/atome
===================

Simple SDK package for Atome Payment API. Use as standalone or with Laravel

0.0.2(2y ago)022MITPHPPHP ^8.0

Since Aug 30Pushed 2y ago1 watchersCompare

[ Source](https://github.com/gerbang-bayar/atome)[ Packagist](https://packagist.org/packages/gerbang-bayar/atome)[ Docs](https://github.com/gerbang-bayar/atome)[ RSS](/packages/gerbang-bayar-atome/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (5)Used By (0)

Atome
=====

[](#atome)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a0a465af2560411fa48aa071d574eb6f7dc0bdafec7da87871ea08f2bd040679/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f67657262616e672d62617961722f61746f6d652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/gerbang-bayar/atome)[![Total Downloads](https://camo.githubusercontent.com/7d3f48b500b490ea7ef6a932a89b0502e302229731fa2d0d2835caaf802df2d1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f67657262616e672d62617961722f61746f6d652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/gerbang-bayar/atome)[![GitHub Actions](https://github.com/gerbang-bayar/atome/actions/workflows/main.yml/badge.svg)](https://github.com/gerbang-bayar/atome/actions/workflows/main.yml/badge.svg)

SDK for Atome payment gateway. Can use as standalone package or use with `laraditz/bayar` laravel package.

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

[](#installation)

```
composer require gerbang-bayar/atome
```

Available Request Methods
-------------------------

[](#available-request-methods)

Below are all methods available under this package.

- `checkConfiguration(string $countryCode, ?string $callbackUrl = null): Response`
- `createPayment(array $args): Response`
- `getPayment(string $referenceId): Response`
- `cancelPayment(string $referenceId): Response`
- `refundPayment(string $referenceId): Response`

Usage
-----

[](#usage)

### Create Payment

[](#create-payment)

To create payment and get the payment URL to be redirected to.

```
use GerbangBayar\Atome\Atome;

// Instantiate connector
$atome = new Atome(username: $username, password: $password, sandbox: false);

$response = $atome->createPayment(
    referenceId: 'someuniquereferenceid',
    currency: 'MYR',
    amount: 1000, // in cents
    callbackUrl: 'https://callbackurl.here',
    paymentResultUrl: 'https:/returnurl.here',
    customerInfo: [
        'name' => 'Raditz Farhan',
        'phone' => '6012345678',
        'email' => 'raditzfarhan@gmail.com'
    ],
    shippingAddress: [
        'countryCode' => 'MY',
        'lines' => [
            'No 1, Taman ABC',
            'Jalan DCEF'
        ],
        'postCode' => '12345'
    ],
    items: [
        [
            'itemId' => 'ITEMSKU',
            'name' => 'Item 1',
            'quantity' => 1,
            'price' => 1000,
        ]
    ]
);
```

See the [documentation](https://doc.apaylater.com/) for more details.

Use with Laravel
----------------

[](#use-with-laravel)

You can use this package with [laraditz/bayar](https://github.com/laraditz/bayar) as a provider.

### Add configuration to config/services.php

[](#add-configuration-to-configservicesphp)

```
'atome' => [
    'username' => env('ATOME_USERNAME'),
    'password' => env('ATOME_PASSWORD'),
    'sandbox' => env('ATOME_SANDBOX', false),
],

```

### Add provider event listener

[](#add-provider-event-listener)

```
protected $listen = [
    \Laraditz\Bayar\Events\AtomeCallbackReceived::class => [
        // register your listener here
    ],
];

```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

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

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)

- [Raditz Farhan](https://github.com/gerbang-bayar)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~64 days

Total

3

Last Release

857d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1203676?v=4)[Raditz Farhan](/maintainers/raditzfarhan)[@raditzfarhan](https://github.com/raditzfarhan)

---

Top Contributors

[![raditzfarhan](https://avatars.githubusercontent.com/u/1203676?v=4)](https://github.com/raditzfarhan "raditzfarhan (14 commits)")

---

Tags

Atomegerbang-bayar

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/gerbang-bayar-atome/health.svg)

```
[![Health](https://phpackages.com/badges/gerbang-bayar-atome/health.svg)](https://phpackages.com/packages/gerbang-bayar-atome)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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