PHPackages                             alopeyk/alopeyk-api-laravel - 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. alopeyk/alopeyk-api-laravel

AbandonedPackage[API Development](/categories/api)

alopeyk/alopeyk-api-laravel
===========================

Laravel 5.\* Integration With RESTful Api Of AloPeyk

v2.0.0(5y ago)141.1k11[7 PRs](https://github.com/AloPeyk/AloPeyk-Api-Laravel/pulls)MITPHP

Since Oct 2Pushed 3y ago3 watchersCompare

[ Source](https://github.com/AloPeyk/AloPeyk-Api-Laravel)[ Packagist](https://packagist.org/packages/alopeyk/alopeyk-api-laravel)[ RSS](/packages/alopeyk-alopeyk-api-laravel/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (9)Dependencies (1)Versions (11)Used By (0)

AloPeyk-Api-Laravel
===================

[](#alopeyk-api-laravel)

[![License](https://camo.githubusercontent.com/a8767dee6e831a7e5e3dd7179f38deb6ea0162d4ec843fdfb3c602a30426755e/68747470733a2f2f706f7365722e707567782e6f72672f616c6f7065796b2f616c6f5065796b2d6170692d6c61726176656c2f6c6963656e7365)](https://packagist.org/packages/alopeyk/aloPeyk-api-laravel)[![Latest Stable Version](https://camo.githubusercontent.com/988c3ca40c7b299c27c5bb6dc72acb150d1f69177bd1f04f512aa5d376f2e7af/68747470733a2f2f706f7365722e707567782e6f72672f616c6f7065796b2f616c6f5065796b2d6170692d6c61726176656c2f762f737461626c65)](https://packagist.org/packages/alopeyk/aloPeyk-api-laravel)[![Monthly Downloads](https://camo.githubusercontent.com/cd5a5b56aa6d2577ef269be99600a9d109375f493a6cda3be893a001da4de457/68747470733a2f2f706f7365722e707567782e6f72672f616c6f7065796b2f616c6f5065796b2d6170692d6c61726176656c2f642f6d6f6e74686c79)](https://packagist.org/packages/alopeyk/aloPeyk-api-laravel)

This package is built to facilitate application development for AloPeyk RESTful API. For more information about this api, please visit [AloPeyk Documents](https://docs.alopeyk.com/)

⚠️ Use v1.0.7 for Laravel 5

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

[](#installation)

First of all, You need an [ACCESS-TOKEN](https://alopeyk.com/contact?unit=sales). All Alopeyk API endpoints support the JWT authentication protocol. To start sending authenticated HTTP requests you will need to use your JWT authorization token which is sent to you. Then you can install this package by using [Composer](http://getcomposer.org), running this command:

```
composer require alopeyk/alopeyk-api-laravel
```

Link to Packagist:

To install this package you will need:

- Laravel 7+

Install via composer edit your composer.json to require the package.

```
"require": {
    "alopeyk/alopeyk-api-laravel": "2.*"
}

```

Then run ` composer update ` in your terminal to pull it in.

Once this has finished, you will need to add the service provider to the providers array in your app.php config as follows:

```
AloPeyk\Api\RESTful\Provider\AloPeykServiceProvider::class
```

Next, also in the app.php config file, under the aliases array, you may want to add the JWTAuth facade.

```
'AloPeykApiHandler' => AloPeyk\Api\RESTful\Facade\AloPeykApiHandlerFacade::class,
```

Finally, you will want to publish the config using the following command:

```
$ php artisan vendor:publish --tag=alopeyk
```

Usage
-----

[](#usage)

```
