PHPackages                             triverla/laravel-opay - 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. triverla/laravel-opay

ActiveLibrary[Payment Processing](/categories/payments)

triverla/laravel-opay
=====================

A laravel package for Opay

v1.0.0(2y ago)3342MITPHPPHP ^7.2|^8.0|^8.1

Since Jul 26Pushed 2y ago1 watchersCompare

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

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

laravel-opay
============

[](#laravel-opay)

A Laravel package to seamlessly integrate Opay payment APIs to any new or existing laravel application.

[Link to Opay documentation](https://documentation.opayweb.com)

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

[](#installation)

[PHP](https://php.net) 7.2+ or [HHVM](http://hhvm.com) 3.3+, and [Composer](https://getcomposer.org) are required.

To get the latest version of Laravel Opay, simply require it

```
composer require triverla/laravel-opay
```

Or add the following line to the require block of your `composer.json` file.

```
"triverla/laravel-opay": "1.0.*"

```

You'll then need to run `composer install` or `composer update` to download it and have the autoloader updated.

Once Laravel Opay is installed, you need to register the service provider. Open up `config/app.php` and add the following to the `providers` key.

```
'providers' => [
    ...
    Triverla\LaravelOpay\OpayServiceProvider::class,
    ...
]
```

> If you use **Laravel &gt;= 5.5** you can skip this step and go to [**`configuration`**](https://github.com/triverla/laravel-opay#configuration)

- `Triverla\LaravelOpay\OpayServiceProvider::class`

Also, register the Facade like so:

```
'aliases' => [
    ...
    'Opay' => Triverla\LaravelOPay\Facades\Opay::class,
    ...
]
```

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

[](#configuration)

You can publish the configuration file using this command:

```
php artisan vendor:publish --provider="Triverla\LaravelOpay\OpayServiceProvider"
```

A configuration file `opay.php` with some sensible defaults will be placed in your `config` directory as displayed below:

```
