YandexFleetLib
Описание
PHP library to work with Yandex Fleet API
Языки
- PHP98,6%
- Makefile1,4%
Yandex Fleet SDK
A PHP library for integrating with the Yandex Fleet API.
Requirements
- PHP >= 8.1
- Composer
- Guzzle HTTP Client >= 7.10 (or any PSR-18 HTTP client)
- Active Yandex Fleet account with API credentials
Installation
Quick Start
Configuration
Credentials
All three credentials are required. Obtain them from your Yandex Fleet account:
| Key | Description |
|---|---|
| Your application's unique identifier |
| API authentication key |
| Fleet (park) identifier |
Options
PSR-18 HTTP client
Inject any PSR-18 compatible HTTP client (e.g. Symfony HttpClient):
Logging
Inject any PSR-3 logger (e.g. Monolog):
Rate limit awareness
API Reference
| Endpoint | Client method | Available methods |
|---|---|---|
| Contractor Profiles | | , , , , , , , , , , , , |
| Vehicles | | , , , , , |
| Orders | | , |
| Transactions | | , , , , , |
| Driver Work Rules | | |
Contractor Profiles
Vehicles
Orders
Transactions
Driver Work Rules
Pagination
All list endpoints return a with , , and . Use to iterate all pages automatically — it yields typed DTOs:
Error Handling
All API errors throw . It extends and adds two methods:
Transient failures (5xx, 429, connection errors) are retried automatically up to the configured limit before an exception is thrown.
Project Structure
src/
├── Client.php
├── Endpoints/
│ ├── BaseEndpoint.php
│ ├── ContractorProfiles.php
│ ├── DriverWorkRules.php
│ ├── Orders.php
│ ├── Transactions.php
│ └── Vehicles.php
├── Exception/
│ └── ApiException.php
└── Http/
├── HttpClientInterface.php
└── Request.php
Testing
Changelog
See CHANGELOG.md for release history.
License
MIT — see LICENSE.
Author
Denis Joloudov — info@inteliada.ru
This SDK is not officially affiliated with Yandex.