PHPackages                             erfanhemmati/kavenegar - 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. [API Development](/categories/api)
4. /
5. erfanhemmati/kavenegar

ActiveLaravel-package[API Development](/categories/api)

erfanhemmati/kavenegar
======================

laravel 4 and 5 kavenegar integration

02.2kPHP

Since Jul 20Pushed 1y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Kavenegar Laravel
=================

[](#kavenegar-laravel)

**First of all you will ned an [API Key](http://panel.kavenegar.com/client/setting/account "API Key") . You can get one [Here](https://panel.kavenegar.com/Client/Membership/Register).**

##### Supported Laravel Versions:

[](#supported-laravel-versions)

- V.4
- V.5
- V.6
- V.7
- V.8
- V.9
- **V.10**> We highly recomment you to always use the latest version of laravel

Installation
============

[](#installation)

Step 1 - Install the package
----------------------------

[](#step-1---install-the-package)

- **Method 1**: You can install kavenegar/laravel with Composer directly in your project:

```
composer require kavenegar/laravel
```

- **Method 2**: Add this line to **Composer.json** file in your project

```
"kavenegar/php": "*"
```

Then run following command to download extension using **composer**

```
$ composer update
```

Step 2
------

[](#step-2)

Head to **config/app.php** and add this line to the end of **providers** Array:

```
Kavenegar\Laravel\ServiceProvider::class,
```

So that array must me something like this:

```
'providers' => [
		/*
		* Laravel Framework Service Providers...
		*/
		.
		.
		.
		Kavenegar\Laravel\ServiceProvider::class
]
```

Then in the **config/app.php** and add this line to the end of **aliases** Array:

```
'Kavenegar' => Kavenegar\Laravel\Facade::class,
```

Step 3 - Publish
----------------

[](#step-3---publish)

Run this command in your project dirctory:

```
php artisan vendor:publish

```

In the message appear, find the number of Kavenegar, enter the related number then hit Enter. for Example in the below case you must enter **9** then enter:

```
Which provider or tag files would you like to publish?:
[0 ] Publish files from all providers and tags listed below
[1 ] Provider: Facade\Ignition\IgnitionServiceProvider
[2 ] Provider: Fideloper\Proxy\TrustedProxyServiceProvider
[3 ] Provider: Fruitcake\Cors\CorsServiceProvider
[4 ] Provider: Illuminate\Foundation\Providers\FoundationServiceProvider
[5 ] Provider: Illuminate\Mail\MailServiceProvider
[6 ] Provider: Illuminate\Notifications\NotificationServiceProvider
[7 ] Provider: Illuminate\Pagination\PaginationServiceProvider
**_ [8 ] Provider: Kavenegar\Laravel\ServiceProviderLaravel9_**
.
.
.
```

Step 4 - Api-Key
----------------

[](#step-4---api-key)

Now you must define your [API Key](http://panel.kavenegar.com/client/setting/account "API Key") to project. for this head to **config/kavenegar.php** then put your API KEY in the code:

```
