PHPackages                             pezhvak/onlinenic-api - 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. pezhvak/onlinenic-api

ActiveLibrary

pezhvak/onlinenic-api
=====================

A simple and useful onlinenic standalone package (with laravel support)

v1.0.8(5y ago)3327MITPHPPHP ^7.2|^8.0CI failing

Since Dec 28Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Pezhvak/onlinenic-api)[ Packagist](https://packagist.org/packages/pezhvak/onlinenic-api)[ RSS](/packages/pezhvak-onlinenic-api/feed)WikiDiscussions master Synced today

READMEChangelog (6)Dependencies (2)Versions (8)Used By (0)

[![StyleCI](https://camo.githubusercontent.com/7585864c4c55e943db8ec9a4cc4048f3d8fdb005f9844abd0d7a0aeede6863b3/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3136333334323635312f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/163342651)[![Total Downloads](https://camo.githubusercontent.com/0fc8beef1c1f4d731b4f4427269be689c85bb4df63e935bf91e29c00391d6746/68747470733a2f2f706f7365722e707567782e6f72672f70657a6876616b2f6f6e6c696e656e69632d6170692f642f746f74616c2e737667)](https://packagist.org/packages/pezhvak/onlinenic-api)[![Latest Stable Version](https://camo.githubusercontent.com/a477b85351c10a2c241c45e6d24b1630f96ebe37ca9ded4d20efd75ae162ef92/68747470733a2f2f706f7365722e707567782e6f72672f70657a6876616b2f6f6e6c696e656e69632d6170692f762f737461626c652e737667)](https://packagist.org/packages/pezhvak/onlinenic-api)[![License](https://camo.githubusercontent.com/c0f29e81cd562810c3261790bc195a23734533d15e55735b35eb7a60e1514f98/68747470733a2f2f706f7365722e707567782e6f72672f70657a6876616b2f6f6e6c696e656e69632d6170692f6c6963656e73652e737667)](https://packagist.org/packages/pezhvak/onlinenic-api)

onlinenic-api
=============

[](#onlinenic-api)

A simple and useful onlinenic standalone package (with laravel support)

since there was no library written for APIv4 of onlinenic i written one. this package contains all methods described in their documentation, howevern it's poorly written and most of the endpoints are now testable in sandbox mode.

[Onlinenice API v4 Documentation](https://www.onlinenic.com/cp_english/template_api/download/Onlinenic_API_v4.0_Reseller_Guide.pdf)

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

[](#installation)

The recommended way to install this library is through Composer:

`$ composer require pezhvak/onlinenic-api`

If you're not familiar with `composer` follow the installation instructions for [Linux/Unix/Mac](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx) or [Windows](https://getcomposer.org/doc/00-intro.md#installation-windows), and then read the [basic usage introduction](https://getcomposer.org/doc/01-basic-usage.md).

### Laravel 5.5 and up

[](#laravel-55-and-up)

You don't have to do anything else, this package uses the Package Auto-Discovery feature, and should be available as soon as you install it via Composer.

### Laravel 5.4 or 5.3

[](#laravel-54-or-53)

Add the following Service Provider to your **config/app.php** providers array:

`Pezhvak\OnlinenicApi\OnlinenicServiceProvider::class,`

### Publish Laravel Configuratino Files (All Versions)

[](#publish-laravel-configuratino-files-all-versions)

`php artisan vendor:publish --provider="Pezhvak\OnlinenicApi\OnlinenicServiceProvider"`

### Environment Variables

[](#environment-variables)

```
ONLINENIC_SANDBOX=TRUE
ONLINENIC_ACCOUNT=
ONLINENIC_PASSWORD=
ONLINENIC_KEY=

```

Standalone Usage
----------------

[](#standalone-usage)

after installing with composer you can simply initiate a new instance of Onlinenic class:

```
$onlinenic = new Pezhvak\OnlinenicApi\Onlinenic($account_id, $password, $api_key, $sandbox);
// use the method you want, ex:
var_dump($onlinenic->checkDomain('universe.space'));
```

Laravel Usage
-------------

[](#laravel-usage)

you can use dependency injection feature in any method of your controller or resolve it through laravel service container:

using dependency injection:

```
Route::get('/', function (\Pezhvak\OnlinenicApi\Onlinenic $onlinenic) {
    dd($onlinenic->checkDomain('universe.space'));
});
```

using service container:

```
$onlinenic = resolve('Pezhvak\\OnlinenicApi\\Onlinenic');
dd($onlinenic->checkDomain('universe.space'));
```

Dependencies
------------

[](#dependencies)

The library uses [Guzzle](https://github.com/guzzle/guzzle) as its HTTP communication layer.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity70

Established project with proven stability

 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

Every ~118 days

Recently: every ~177 days

Total

7

Last Release

1981d ago

PHP version history (2 changes)v1.0.0PHP ^7.2

v1.0.8PHP ^7.2|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/80fe63a037c64484387e591145783fe2ca80c0ce8229d9dec92b1a1c2157ef62?d=identicon)[Pezhvak](/maintainers/Pezhvak)

---

Top Contributors

[![Pezhvak](https://avatars.githubusercontent.com/u/3134479?v=4)](https://github.com/Pezhvak "Pezhvak (19 commits)")

---

Tags

apilaravellaravel57onlinenicpackagephpphp7standalone

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pezhvak-onlinenic-api/health.svg)

```
[![Health](https://phpackages.com/badges/pezhvak-onlinenic-api/health.svg)](https://phpackages.com/packages/pezhvak-onlinenic-api)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k20](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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