PHPackages                             zgabievi/osmp - 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. zgabievi/osmp

AbandonedArchivedLibrary[Payment Processing](/categories/payments)

zgabievi/osmp
=============

Georgian OSMP System Payment

0.1.0(10y ago)329[1 PRs](https://github.com/zgabievi/laravel-osmp/pulls)MITPHPPHP &gt;=5.3.0

Since Jan 14Pushed 8y ago1 watchersCompare

[ Source](https://github.com/zgabievi/laravel-osmp)[ Packagist](https://packagist.org/packages/zgabievi/osmp)[ Docs](https://github.com/zgabievi/OSMP)[ RSS](/packages/zgabievi-osmp/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (3)Used By (0)

laravel-osmp
============

[](#laravel-osmp)

> Some great updates are comming soon...

[![Latest Stable Version](https://camo.githubusercontent.com/9bee00b9ebc631316d327795300b89a599f4506d9aae23c242bd944433a9abae/68747470733a2f2f706f7365722e707567782e6f72672f7a676162696576692f6f736d702f76657273696f6e3f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/zgabievi/osmp) [![Total Downloads](https://camo.githubusercontent.com/98974a07328baa9adf30b9b79441df7a8cf9aa971293198c248436910bdf0406/68747470733a2f2f706f7365722e707567782e6f72672f7a676162696576692f6f736d702f642f746f74616c3f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/zgabievi/osmp) [![License](https://camo.githubusercontent.com/8077bab7694f01d57a7f6270ef09d183f0b1c96de1dcfaa0cefe5efb9788d008/68747470733a2f2f706f7365722e707567782e6f72672f7a676162696576692f6f736d702f6c6963656e73653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/zgabievi/osmp)

OSMP[![OSMP](https://camo.githubusercontent.com/ee7055634301f902014ccf7b6f861364235b04cf489163ada2d7eca2e69c14f7/68747470733a2f2f692e696d67736166652e6f72672f666262653261336466642e706e67)](https://github.com/zgabievi/laravel-osmp)OSMP payment system integration for [Laravel 5.\*](http://laravel.com/). Trying to make it perfect, easy to use and awesome package 🎉 Pull requests are welcome.Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
    - [Composer](#composer)
    - [Laravel](#laravel)
- [Usage](#usage)
- [Protocol](#protocol)
- [Codes](#codes)
- [Config](#config)
- [License](#license)

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

[](#installation)

### Composer

[](#composer)

Run composer command in your terminal.

```
composer require zgabievi/osmp

```

### Laravel

[](#laravel)

Open `config/app.php` and find the `providers` key. Add `OSMPServiceProvider` to the array.

```
Gabievi\OSMP\OSMPServiceProvider::class
```

Find the `aliases` key and add `Facade` to the array.

```
'OSMP' => Gabievi\OSMP\OSMPFacade::class
```

Usage
-----

[](#usage)

**Attention!** You need to disable `short_open_tag` in your `php.ini` file, to use xml response;

Follow this url for more information: [ini.short-open-tag](http://php.net/manual/en/ini.core.php#ini.short-open-tag)

Create route in your `routes.php`

```
Route::get('billing', function () {
	// LISTENERS

	return OSMP::init();
})->middleware('osmp.auth');
```

Middleware is required if you want to make Basic Authentication

In place of `// LISTENERS` you can write `osmp` listeners:

```
Event::listen('osmp.*', function (...$args) {
	if ($args[0] == 'check') {
		// flash session data for check operation
		session()->flash('osmp', [
			'result' => 0,
			'data' => [
				'fullname' => 'Zura Gabievi',
				'account' => '000000'
			]
		]);
	} else {
		// flash session data for pay operation
		session()->flash('osmp', [
			'result' => 0,
			'data' => [
				'fullname' => 'John Doe',
				'account' => '000001'
			]
		]);
	}
});
```

Flashed session data will be used in XML response as additional information

You can call `Response` early to show some kind of error. For example:

```
return OSMP::Response(5);
```

This will output:

```

	5
	User does not exist

```

Protocol
--------

[](#protocol)

This is the protocol for provider:

- `http(s)://yoursite.com/billing/?command=check&account=000000`
- `http(s)://yoursite.com/billing/?command=pay&txn_id=1234567&account=000000&sum=10.45`

Command: check/pay are required

Codes
-----

[](#codes)

KeyDescription0Operation was successful1Server Timeout4Wrong format of the user's account5User does not exist7Payments are prohibited215Transaction duplication275Wrong amount300Fatal ErrorConfig
------

[](#config)

Publish OSMP config file using command:

```
php artisan vendor:publish

```

Created file `config\osmp.php`. Inside you can change configuration as you wish.

License
-------

[](#license)

laravel-osmp is licensed under a [MIT License](https://github.com/zgabievi/laravel-osmp/blob/master/LICENSE).

TODO
----

[](#todo)

- Create tests for checking funtionality
- Create separated file for response codes
- Make artisan command that will create reponse codes php file
- Make artisan command that will register routes for user
- Make OSMP object more Model like

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Unknown

Total

1

Last Release

3769d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/97b2001280ff47bbc67e542074e290919291715cd6c9f694e6787b50d67c60ad?d=identicon)[zgabievi](/maintainers/zgabievi)

---

Top Contributors

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

---

Tags

paymentzgabieviosmp

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/zgabievi-osmp/health.svg)

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

###  Alternatives

[shetabit/payment

Laravel Payment Gateway Integration Package

944330.1k5](/packages/shetabit-payment)[sebdesign/laravel-viva-payments

A Laravel package for integrating the Viva Payments gateway

4845.9k](/packages/sebdesign-laravel-viva-payments)[021/laravel-wallet

Reliable and flexible wallet system for Laravel

2785.2k](/packages/021-laravel-wallet)[tzsk/payu

PayU India Payment Gateway Integration with Laravel

47108.8k6](/packages/tzsk-payu)[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)
