PHPackages                             alexchitoraga/apiok - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. alexchitoraga/apiok

ActiveLibrary[Testing &amp; Quality](/categories/testing)

alexchitoraga/apiok
===================

APIOK PHP SDK with support for Laravel integration

1.0.0(8y ago)241MITPHPPHP &gt;=7.0.0

Since Mar 7Pushed 8y ago1 watchersCompare

[ Source](https://github.com/alexchitoraga/apiok-sdk-php)[ Packagist](https://packagist.org/packages/alexchitoraga/apiok)[ RSS](/packages/alexchitoraga-apiok/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

OK SDK PHP
==========

[](#ok-sdk-php)

OK SDK PHP is a **PHP wrapper** providing an easier way to make API call using OKSDK REST methods.

Requirements
------------

[](#requirements)

- PHP &gt;= 5.4

Composer Installation
---------------------

[](#composer-installation)

The best way to install Intervention Image is quickly and easily with [Composer](http://getcomposer.org).

Now your composer.json has been updated automatically and you're able to require the just created vendor/autoload.php file to PSR-4 autoload the library.

The next step is to decide, if you want to integrate APIOK SDK into the Laravel framework. If you want to use the library with Laravel, just skip the following step and continue with the description of Laravel Integration.

Usage
-----

[](#usage)

APIOK SDK doesn't require Laravel or any other framework at all. If you want to use it as is, you just have to require the composer autoload file to instatiate image objects as shown in the following example.

```
// include composer autoload
require 'vendor/autoload.php';

// import the Alexchitoraga APIOK Class
use Alexchitoraga\Apiok\Apiok;

// create an APIOK instance with custom app configs
$apiok = new Apiok([
    'application_key' => '***',
    'session_key' => '***',
    'access_token' => '***',
    'secret_key' => '***',
]);

// Call OKSDK API method
// Methods must be converted by next principle:
// users.getInfo => usersGetInfo
// messagesV2.sendGameInvite => messagev2SendGameInvite
$apiok->usersGetInfo($params);
```

Integration in Laravel
----------------------

[](#integration-in-laravel)

APIOK has optional support for Laravel and comes with a Service Provider and Facades for easy integration. The vendor/autoload.php is included by Laravel, so you don't have to require or autoload manually. Just see the instructions below.

After you have installed APIOK, open your Laravel config file config/app.php and add the following lines.

In the $providers array add the service providers for this package.

```
Alexchitoraga\Apiok\ApiokServiceProvider::class
```

Add the facade of this package to the $aliases array.

```
'Apiok' => Alexchitoraga\Apiok\Facades\Apiok::class
```

Now the Apiok Class will be auto-loaded by Laravel.

### Configuration

[](#configuration)

APIOK hasn't default configurations as each OK application has it's own configuration. To set configuration you have to add new service in config/services.php file.

```
'apiok' => {
    'application_key' => env('APPLICATION_KEY'),
    'session_key' => env('SESSION_KEY'),
    'access_token' => env('ACCESS_TOKEN'),
    'secret_key' => env('SECRET_KEY'),
],
```

### Testing

[](#testing)

Tests are stored in **/tests** folder. There are two tests which are disabled. To run them you must modify phpunit.xml php constansts by configuration from your applications. Also you must to prefix this two tests with keyword "test".

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2989d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/627dd93c41b0bf44c550b53e7403e12f8a08e1e5e7b6cff3cee776ec2f964087?d=identicon)[Alechi](/maintainers/Alechi)

---

Top Contributors

[![alexchitoraga](https://avatars.githubusercontent.com/u/7384488?v=4)](https://github.com/alexchitoraga "alexchitoraga (2 commits)")

---

Tags

phpapitestlaravelsdkOK

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/alexchitoraga-apiok/health.svg)

```
[![Health](https://phpackages.com/badges/alexchitoraga-apiok/health.svg)](https://phpackages.com/packages/alexchitoraga-apiok)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
