PHPackages                             datastat/megapos - 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. datastat/megapos

ActiveLibrary

datastat/megapos
================

EON MegaPOS for laravel 5

032[2 PRs](https://github.com/datastat/megapos/pulls)PHP

Since Dec 23Pushed 9y ago4 watchersCompare

[ Source](https://github.com/datastat/megapos)[ Packagist](https://packagist.org/packages/datastat/megapos)[ RSS](/packages/datastat-megapos/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

EON MegaPOS
===========

[](#eon-megapos)

add to providers in app.php ...

```
Datastat\MegaPOS\MegaPOSServiceProvider::class,

```

publish vendor ...

```
php artisan vendor:publish

```

register events in EventServiceProvider.php ...

```
'Datastat\MegaPOS\MegaPOSUpdateWasCalledEvent' => [
    'App\Listeners\MegaPosUpdateWasCalledEventListener',
],
'Datastat\MegaPOS\MegaPOSStatusWasCalledEvent' => [
    'App\Listeners\MegaPosStatusWasCalledEventListener',
],
'Datastat\MegaPOS\MegaPOSCancelTransactionWasCalledEvent' => [
    'App\Listeners\MegaPOSCancelTransactionWasCalledEventCalledEventListener',
],

```

generate handlers ... \[then delete the Events/Datastat folder, change namespace alias in handlers\]

```
php artisan event:generate

```

routes visible for production

```
| GET|HEAD  | megapos/update        | megapos.update   | Closure
| GET|HEAD  | megapos/status        | megapos.status   | Closure

```

routes visible for testing \[enable\_test\_routes = true in megapos.php config\]

```
| GET|HEAD  | megapos/test          | megapos.test     | Closure
| POST      | megapos/init          | megapos.init     | Closure
| POST      | megapos/cancel        | megapos.cancel   | Closure
| POST      | megapos/process       | megapos.process  | Closure
| GET|HEAD  | megapos/list-gateways | megapos.list     | Closure

```

from IOC...

```
$megapos = App::make('megapos');

```

facade...

```
\MegaPOS

```

and now, the api...

```
$megapos->init($params);

```

$params rules:

```
'name' => array( 'required', 'alpha_dash', 'max:200' ),
'surname' => array( 'required', 'alpha_dash', 'max:200' ),
'email' => array( 'required', 'email', 'min:6', 'max:200' ),
'language' => array( 'required', 'in:si,en'),
'gateway' => array( 'required', 'in:ACTIVA_PGW,BANKART_PGW,DINERS,EFUNDS,MONETA,KLIK,ABANET'),
'tx_type' => array( 'sometimes|required', 'in:PURCHASE,ORDER'),
'amount' => array( 'required', 'numeric'),

```

```
$megapos->cancel($txId);

```

```
$megapos->listGateways();

```

exceptions to catch

```
Datastat\MegaPOS\MegaPOSException

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity44

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/fc152d117c46ceca8fe4f32ac96e2bed282fc0f3220a648937fd7c87ef342481?d=identicon)[modmanx](/maintainers/modmanx)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/datastat-megapos/health.svg)

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

PHPackages © 2026

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