PHPackages                             tohidplus/mellat - 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. tohidplus/mellat

ActiveLibrary

tohidplus/mellat
================

A Laravel package for connecting to (Iran) Mellat bank gateway.

v1.0.0(7y ago)81961MITPHP

Since Nov 13Pushed 5y ago1 watchersCompare

[ Source](https://github.com/tohidplus/mellat)[ Packagist](https://packagist.org/packages/tohidplus/mellat)[ RSS](/packages/tohidplus-mellat/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

[![GitHub issues](https://camo.githubusercontent.com/e18cf2c83af6533ea5155732b2a36bf324449d49e3f6556b3b39cae21e31b745/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f746f686964706c75732f6d656c6c61742e737667)](https://github.com/tohidplus/mellat/issues)[![GitHub stars](https://camo.githubusercontent.com/0a380c9482b876dbd83fb44903396d7ab72962f03f46b8b0cbbeed6adaba8ffb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f746f686964706c75732f6d656c6c61742e737667)](https://github.com/tohidplus/mellat/stargazers)[![Total Downloads](https://camo.githubusercontent.com/48020402a440eb4d5b394e074fc01044829e041f76cbc885c588b6555d6b7871/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f686964706c75732f6d656c6c61742e737667)](https://packagist.org/packages/tohidplus/mellat)[![GitHub license](https://camo.githubusercontent.com/8552d37a03346ce94e433e39ed264b455f1ea8811994ef6790db5f36fd192c43/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f746f686964706c75732f6d656c6c61742e737667)](https://github.com/tohidplus/mellat/blob/master/LICENSE.txt)

Laravel package for Mellat bank
===============================

[](#laravel-package-for-mellat-bank)

This package is built for connecting Iranian websites to Mellat bank gateway.

---

### Installation

[](#installation)

1. Run the command below

```
composer require tohidplus/mellat
```

2. Add the following code to end of the **providers** array in **config/app.php** file.

```
'providers' => [
    Tohidplus\Mellat\MellatServiceProvider::class,
];
```

3. Add the following code to end of the **aliases** array in **config/app.php** file.

```
'aliases' => [
   'Mellat' => Tohidplus\Mellat\Facades\Mellat::class,
];
```

4. Run the command below

```
php artisan vendor:publish --provider=Tohidplus\Mellat\MellatServiceProvider
```

5. Migrate the database

```
php artisan migrate
```

6. Now you can see a new config file named **mellat.php** is added to config directory. So open the file...

```
