PHPackages                             numerics/npay - 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. numerics/npay

ActiveLibrary[Payment Processing](/categories/payments)

numerics/npay
=============

A laravel 5.6 package for NPay

013PHP

Since Aug 3Pushed 7y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

NPay-Laravel
============

[](#npay-laravel)

> A Laravel 5.6 Package for integrating NPay seamlessly

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

[](#installation)

[PHP](https://php.net) 5.4+ and [Composer](https://getcomposer.org) are required.

To get the latest version of Npay-laravel, simply require it using composer

```
composer require numerics/npay
```

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

```
"numerics/npay-laravel"

```

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

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

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

- `Numerics\Npay\NpayServiceProvider::class`

Also, register the Facade like so:

```
'aliases' => [
    ...
    'Npay' => Numerics\Npay\Facades\Npay::class,
    ...
]
```

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

[](#configuration)

You can publish the configuration file using this command:

```
php artisan vendor:publish --provider="Numerics\Npay\NpayServiceProvider"
```

A configuration-file named `npay.php` with some defaults will be placed in your `config` directory:

```
