PHPackages                             tohidplus/zarrinpal - 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/zarrinpal

ActiveLibrary

tohidplus/zarrinpal
===================

A Laravel package for connecting to (Iran) Zarrinpal gateway

v1.0.2(7y ago)543MITPHP

Since Oct 15Pushed 7y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (4)Used By (0)

[![GitHub issues](https://camo.githubusercontent.com/a52c91cb1443c69cd0e55ca75389520661d93c2613002d2d3b9550aafc8ecf7c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f746f686964706c75732f7a617272696e70616c2e737667)](https://github.com/tohidplus/zarrinpal/issues)[![Total Downloads](https://camo.githubusercontent.com/74fa266a5667e99aa9e3f7c27c95c52f0589eac0e0a431e0e8a35aaa3638bb80/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f686964706c75732f7a617272696e70616c2e737667)](https://packagist.org/packages/tohidplus/zarrinpal)[![GitHub stars](https://camo.githubusercontent.com/568a6f8ca560ca9fc4422dcfe219199f6237a9ca61011ac787d7304c7573b9bb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f746f686964706c75732f7a617272696e70616c2e737667)](https://github.com/tohidplus/zarrinpal/stargazers)[![GitHub license](https://camo.githubusercontent.com/d0dec877e9015e6cb89c7141ad129844581cf6a4e21f490d28ce1a0d5ff2e950/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f746f686964706c75732f7a617272696e70616c2e737667)](https://github.com/tohidplus/zarrinpal/blob/master/LICENSE.txt)

Laravel package for Zarinpal
============================

[](#laravel-package-for-zarinpal)

This package is built for connecting Iranian websites to Zarrinpal gateway.

---

### Installation

[](#installation)

1. Run the command below

```
composer require tohidplus/zarrinpal
```

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

```
'providers'=>[
    Tohidplus\Zarrinpal\ZarrinpalServiceProvider::class,
];
```

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

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

4. Run the command below

```
php artisan vendor:publish --provider=Tohidplus\Zarrinpal\ZarrinpalServiceProvider
```

5. Migrate the database

```
php artisan migrate
```

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

```
