PHPackages                             fannypack/beyonic - 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. fannypack/beyonic

ActiveLibrary[Payment Processing](/categories/payments)

fannypack/beyonic
=================

laravel beyonic mobile money payment implementation

2.1(6y ago)0661PHP

Since Sep 12Pushed 6y ago1 watchersCompare

[ Source](https://github.com/mpaannddreew/beyonic-laravel)[ Packagist](https://packagist.org/packages/fannypack/beyonic)[ RSS](/packages/fannypack-beyonic/feed)WikiDiscussions master Synced 2w ago

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

About this library
------------------

[](#about-this-library)

This is a simple/basic implementation of beyonic payments in laravel 5

Actions supported
-----------------

[](#actions-supported)

Note: You must have a valid Beyonic account to use this library

- RECEIVING MONEY \[Collection request\]
- SENDING MONEY \[Payments\]

For more information visit [Beyonic](https://apidocs.beyonic.com)

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

[](#installation)

composer require fannypack/beyonic

For Laravel &lt;= 5.4 Register service provider

```
FannyPack\Beyonic\BeyonicServiceProvider::class,
```

For Laravel &lt;= 5.4 Register Facade

```
'Beyonic' => FannyPack\Beyonic\Beyonic::class,
```

For Laravel &gt; 5.4 Service provider and Facade are discovered automatically

After the service provider is registered run this command

```
php artisan vendor:publish
```

This command will create a copy of the library's config file and migrations into your code base

```
beyonic.php
```

Run migrations to create beyonic\_payments table to store your payment instances

```
php artisan migrate
```

Environment setup
-----------------

[](#environment-setup)

The library loads configurations from the .env file in your application's root folder. These are the contents of beyonic.php

```
return [
    'apiKey' => env('BEYONIC_API_KEY', ''),
    'currency' => env('CURRENCY', 'UGX'),
    'callback_url' => env('CALLBACK_URL', ''),
    'account_id' => env('ACCOUNT_ID', ''),
];

```

Usage in context of your beyonic account
----------------------------------------

[](#usage-in-context-of-your-beyonic-account)

Using it with your models, add trait FannyPack\\Beyonic\\Billable to your models and make sure your model has a phone\_number field

```
namespace App;

use FannyPack\Beyonic\Billable;
use Illuminate\Database\Eloquent\Model;

class Account extends Model
{
    use Billable;
}
```

Requesting payment from a billable instance, this method takes an optional phone number in case you want to provide a different number to withdraw the funds from and the method returns a FannyPack\\Beyonic\\Payment::class instance

```
$account = Account::find(1);
$payment = Beyonic::deposit($account, $amount, $reason, $optional_phone_number);
// or
$payment = $account->deposit($amount, $reason, $optional_phone_number);
```

Information about a Collection request

```
$payment = $account->payments[0]
$response = Beyonic::info($payment);
// or
$response = $payment->info();
```

Sending payment to th phone number associated with the billable instance, this method takes an optional phone number in case you want to provide a different number to deposit the funds to and the method returns a FannyPack\\Beyonic\\Payment::class instance

```
$payment = Beyonic::withdraw($account, $amount, $reason, $optional_phone_number);
// or
$payment = $account->withdraw($amount, $reason, $optional_phone_number);
```

For information about the response body visit [Beyonic](https://apidocs.beyonic.com)

Bugs
----

[](#bugs)

For any bugs found, please email me at  or register an issue at [issues](https://github.com/mpaannddreew/beyonic-laravel/issues)

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity67

Established project with proven stability

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

Total

5

Last Release

2490d ago

Major Versions

v1.0 → v2.0beta2018-04-14

### Community

Maintainers

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

---

Top Contributors

[![mpaannddreew](https://avatars.githubusercontent.com/u/10240351?v=4)](https://github.com/mpaannddreew "mpaannddreew (13 commits)")

---

Tags

phplaravellibrarypaymentsmobile-moneybeyonic

### Embed Badge

![Health badge](/badges/fannypack-beyonic/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9772.3M122](/packages/roots-acorn)[laravel/cashier-paddle

Cashier Paddle provides an expressive, fluent interface to Paddle's subscription billing services.

267880.7k3](/packages/laravel-cashier-paddle)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1232.2k16](/packages/fleetbase-core-api)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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