PHPackages                             nighten/api-client - 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. nighten/api-client

ActiveLibrary[API Development](/categories/api)

nighten/api-client
==================

Nighten API client

0.1(6y ago)04MITPHPPHP &gt;=7.4.0

Since Jan 16Pushed 6y ago1 watchersCompare

[ Source](https://github.com/nighten/api-client)[ Packagist](https://packagist.org/packages/nighten/api-client)[ RSS](/packages/nighten-api-client/feed)WikiDiscussions master Synced 3d ago

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

Nighten Api Client
==================

[](#nighten-api-client)

[![Latest Stable Version](https://camo.githubusercontent.com/154e49ae8713b7d857f77c5f35c54db4ece3dc89c8eef2fc8f2a1c5a3ca8a1a9/68747470733a2f2f706f7365722e707567782e6f72672f6e69676874656e2f6170692d636c69656e742f762f737461626c65)](https://packagist.org/packages/nighten/api-client)[![Build Status](https://camo.githubusercontent.com/54759ec5b87367555bb2ef8fb835e6d2ac8ab00e4b0e6446dbe4957fd21e3ec0/68747470733a2f2f7472617669732d63692e6f72672f6e69676874656e2f6170692d636c69656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/nighten/api-client)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/b0f9a59c5f14227d381b30b02d58837a43d1a1b247f3948b3a852c3f09e5ebbc/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e69676874656e2f6170692d636c69656e742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/nighten/api-client/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/c031b4f348bb1c3342e4e3da2244dc4b4316afc5ff5b7e36379e6828e6fb2978/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e69676874656e2f6170692d636c69656e742f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/nighten/api-client/?branch=master)[![License](https://camo.githubusercontent.com/90d3948fcd226fc9b7e79bf212ff4af6ba8a8b21e0643b61f499a97ff7b515ac/68747470733a2f2f706f7365722e707567782e6f72672f6e69676874656e2f6170692d636c69656e742f6c6963656e7365)](https://packagist.org/packages/nighten/api-client)

Описание
--------

[](#описание)

Библиотека для взаимодействия с API

Установка
---------

[](#установка)

```
composer require nighten/api-client

```

Пример
------

[](#пример)

### Создание клиента

[](#создание-клиента)

```
$client = new \Nighten\ApiClient\Client($host);
```

### Аунтификация в API

[](#аунтификация-в-api)

```
$response = $client->request(new AuthRequest($login, $password)); //return \Nighten\ApiClient\Response\Auth\AuthResponse;
$response->getUserId(); //Уникальный идентификатор пользователя
$response->getKey(); //Api ключ, для аунтификации в запросах требующих ключ.
```

### Запросы требующие ключ

[](#запросы-требующие-ключ)

```
$client->setAuthenticationProvider(new DefaultAuthenticationProvider('api-key'));
$response = $client->request(...);
```

Лицензия
--------

[](#лицензия)

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE) file for details

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

2311d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b742e20ea9cffbf3dedfd6cb7f28f5a13f8ce3c4d877a1383bed5030009a2c5d?d=identicon)[nighten](/maintainers/nighten)

---

Top Contributors

[![nighten](https://avatars.githubusercontent.com/u/7446731?v=4)](https://github.com/nighten "nighten (3 commits)")

---

Tags

api

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nighten-api-client/health.svg)

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

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[gabrielbull/ups-api

PHP UPS API

4642.4M10](/packages/gabrielbull-ups-api)[bushlanov-dev/max-bot-api-client-php

Max Bot API Client library

281.6k](/packages/bushlanov-dev-max-bot-api-client-php)

PHPackages © 2026

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