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

ActiveLibrary

ifaniqbal/api-its-laravel
=========================

API ITS client for Laravel

0.1.2(5y ago)027MITPHPPHP ^7.2

Since Dec 2Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ifaniqbal/api-its-laravel)[ Packagist](https://packagist.org/packages/ifaniqbal/api-its-laravel)[ RSS](/packages/ifaniqbal-api-its-laravel/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependencies (2)Versions (4)Used By (0)

API ITS client for Laravel
==========================

[](#api-its-client-for-laravel)

The purpose of this package is to consume API ITS. This package should be compatible with Laravel 5.1, 5.5, and 6.x.

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

[](#installation)

```
composer require ifaniqbal/api-its-laravel
```

If using Laravel 5.1, include the service provider within `config/app.php`.

```
'providers' => [
    'Ifaniqbal\ApiIts\ApiItsServiceProvider',
];
```

Add a facade alias to this same file at the bottom:

```
'aliases' => [
    'ApiIts' => 'Ifaniqbal\ApiIts\Facades\ApiIts',
];
```

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

[](#configuration)

These are list of `.env` keys that can be configured:

```
API_ITS_TOKEN_URL= # access token (client_credentials) token URL, default: https://my.its.ac.id/token
API_ITS_CLIENT_ID= # client ID
API_ITS_CLIENT_SECRET= # client secret
```

For example, if most of the values you need is same as default values, configure only these values within your `.env` file:

```
API_ITS_CLIENT_ID=
API_ITS_CLIENT_SECRET=
```

Usage
-----

[](#usage)

```
