PHPackages                             laraditz/xenopay - 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. laraditz/xenopay

ActiveLaravel-package[Payment Processing](/categories/payments)

laraditz/xenopay
================

Xenopay SDK for Laravel

1.0.2(5y ago)01.3kMITPHPPHP ^7.2.5

Since May 27Pushed 5y ago1 watchersCompare

[ Source](https://github.com/laraditz/xenopay)[ Packagist](https://packagist.org/packages/laraditz/xenopay)[ RSS](/packages/laraditz-xenopay/feed)WikiDiscussions master Synced today

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

Xenopay
=======

[](#xenopay)

[![Latest Stable Version](https://camo.githubusercontent.com/c5c8315aa1d79249a32f42cf3dda3b586520462ef2abd78268eda247a15f54e5/68747470733a2f2f706f7365722e707567782e6f72672f6c6172616469747a2f78656e6f7061792f762f737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/laraditz/xenopay)[![Total Downloads](https://camo.githubusercontent.com/7dacc02fc21e517b8ad8c0b74ba6e6f71691befbe46bdd8450bda7675436f3fa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6172616469747a2f78656e6f7061793f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laraditz/xenopay)[![License](https://camo.githubusercontent.com/78e232d8372e237be2af5667cc37db66e6ecf1be64d6100cab7a738ba0ed8736/68747470733a2f2f706f7365722e707567782e6f72672f6c6172616469747a2f78656e6f7061792f6c6963656e73653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/laraditz/xenopay)[![StyleCI](https://camo.githubusercontent.com/3ebb9759d3748ad0fa1b6c7f477c842a04b4bdc799f75a8b68f3c6d585d07be8/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f373534383938362f736869656c643f7374796c653d737175617265)](https://github.com/laraditz/xenopay)

Xenopay SDK for Laravel.

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

[](#installation)

Via Composer

```
$ composer require laraditz/xenopay
```

Configuration
-------------

[](#configuration)

Edit the `config/app.php` file and add the following line to register the service provider:

```
'providers' => [
    ...
    Laraditz\Xenopay\XenopayServiceProvider::class,
    ...
],
```

> Tip: If you're on Laravel version **5.5** or higher, you can skip this part of the setup in favour of the Auto-Discovery feature.

You can set default Xenopay account in your `.env` so that you do not need to pass it everytime you login.

```
...
XENOPAY_EMAIL=
XENOPAY_PASSWORD=
...

```

Getting started
---------------

[](#getting-started)

Execute migration file:

```
php artisan migrate
```

Usage
-----

[](#usage)

Example usage as below snippet:

```
// using Facade
$response = \Xenopay::auth()->login(['email' => 'test@mail.com', 'password' => 'password']);

// using Service Container
$response = app('Xenopay')->auth()->login(['email' => 'test@mail.com', 'password' => 'password']);

// login
$response = \Xenopay::auth()->login(); // if u have set default account in .env, do not need to pass anything

// create bill
$response = \Xenopay::bill()->withToken($access_token)->create([
    'ref_no' => 'youruniquereferenceno',
    'amount' => 1,
    'description' => 'your description here.',
    'contact' => '0121234567',
    'redirect_url' => 'https://yourapp.com',
]);

// view bill
$response = \Xenopay::bill()->withToken($access_token)->view($id);
```

The request returns an instance of `Laraditz\Xenopay\XenopayResponse`, which provides a variety of methods that may be used to inspect the response:

```
$response->isSuccess() : bool; // true or false

$response->status() : int; // http status code. e.g. 200, 400, 500 etc.

$response->message() : string; // message for the response. e.g. "Invalid data".

$response->data() : mixed; // response content

$response->errors() : array; // usually contain validation errors
```

Change log
----------

[](#change-log)

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

Credits
-------

[](#credits)

- [Raditz Farhan](https://github.com/raditzfarhan)

License
-------

[](#license)

MIT. Please see the [license file](LICENSE) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Total

3

Last Release

2082d 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 (29 commits)")

### Embed Badge

![Health badge](/badges/laraditz-xenopay/health.svg)

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

###  Alternatives

[laraveldaily/laravel-invoices

Missing invoices for Laravel

1.5k1.3M4](/packages/laraveldaily-laravel-invoices)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)[karson/mpesa-php-sdk

172.2k](/packages/karson-mpesa-php-sdk)

PHPackages © 2026

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