PHPackages                             froccsos/laravel-barion - 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. froccsos/laravel-barion

ActiveLibrary[Payment Processing](/categories/payments)

froccsos/laravel-barion
=======================

Simple Laravel wrapper for the API of the Barion online payment system. Forked by froccsos.

v1.3(5y ago)0259MITPHPPHP &gt;=5.6.0

Since Nov 6Pushed 5y agoCompare

[ Source](https://github.com/froccsos/laravel-barion)[ Packagist](https://packagist.org/packages/froccsos/laravel-barion)[ RSS](/packages/froccsos-laravel-barion/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (3)Versions (12)Used By (0)

Use the Barion API with Laravel
===============================

[](#use-the-barion-api-with-laravel)

Laravel-Barion is provides an easy way to use the Barion API with Laravel applications. Under the hood there is just a thin wrapper to make API calls simple.

Forked from laravelhungary/laravel-barion.

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

[](#installation)

1. Install the package using composer:

`composer require froccsos/laravel-barion`

**If you're using Laravel 5.5, you're done, the following steps are being done automatically.**

2. Register the service provider in the `app.php` config file

```
LaravelHungary\Barion\BarionServiceProvider::class,
```

3. Register the Barion facade (optional)

```
'Barion' =>  LaravelHungary\Barion\BarionFacade::class
```

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

[](#configuration)

Laravel-Barion comes preconfigured, you only need to set your POS key in the .env file:

`BARION_POS_KEY=`

The Barion environment defaults to `test.barion.com`. To use the live instead, set

`BARION_LIVE_ENV=true`.

If you'd like to tweak the configuration values, publish the config file:

`artisan vendor:publish --provider="LaravelHungary\Barion\BarionServiceProvider"`

Usage
-----

[](#usage)

You can either resolve the `Barion` class from the Service Container using Laravel's dependency injection, or simply use the provided Facade.

There are two convenience methods for the two most-often used API calls:

#### Get the payment status

[](#get-the-payment-status)

```
Barion::getPaymentState('my-payment-id')
```

#### Start a Payment

[](#start-a-payment)

```
Barion::paymentStart([
    'PaymentType' => PaymentType::IMMEDIATE,
    'GuestCheckOut' => true,
    'FundingSources' => [FundingSource::ALL],
    'Locale' => Locale::HU,
    'Currency' => Currency::HUF,
    'Transactions' => [
        [
            'POSTransactionId' => 'ABC-1234',
            'Payee' => 'example@email.com',
            'Total' => 4990,
            'Items' => [
                [
                    'Name' => 'Example item',
                    'Description' => 'This is a sample description',
                    'Quantity' => 1,
                    'Unit' => 'db',
                    'UnitPrice' => 4990,
                    'ItemTotal' => 4990
                ]
            ]
         ]
    ]
])
```

All other API calls are accessible using either `get` or `post`:

```
Barion::get('/api/url')
```

```
Barion::post('/api/url', ['my-data' => 'some value'])
```

POS Key is automatically appended to each request.

License
-------

[](#license)

Laravel-Barion is open source software licensed under the [MIT License](https://opensource.org/licenses/MIT).

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 83.3% 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 ~134 days

Recently: every ~220 days

Total

11

Last Release

2128d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/367126aeb83a26c968b9e2f6bcc2ef387bdc2e97590299b116c8d6fe8a76ec3e?d=identicon)[belsodaniel](/maintainers/belsodaniel)

---

Top Contributors

[![nxu](https://avatars.githubusercontent.com/u/6393515?v=4)](https://github.com/nxu "nxu (40 commits)")[![danfekete](https://avatars.githubusercontent.com/u/2891082?v=4)](https://github.com/danfekete "danfekete (5 commits)")[![froccsos](https://avatars.githubusercontent.com/u/2646921?v=4)](https://github.com/froccsos "froccsos (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/froccsos-laravel-barion/health.svg)

```
[![Health](https://phpackages.com/badges/froccsos-laravel-barion/health.svg)](https://phpackages.com/packages/froccsos-laravel-barion)
```

###  Alternatives

[sebdesign/laravel-viva-payments

A Laravel package for integrating the Viva Payments gateway

4845.9k](/packages/sebdesign-laravel-viva-payments)[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)[aedart/athenaeum

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

245.2k](/packages/aedart-athenaeum)[henryejemuta/laravel-monnify

A laravel package to seamlessly integrate monnify api within your laravel application

132.1k](/packages/henryejemuta-laravel-monnify)

PHPackages © 2026

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