PHPackages                             neolinks/php-yandex-taxi-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. neolinks/php-yandex-taxi-api

ActiveLibrary

neolinks/php-yandex-taxi-api
============================

PHP client for Yandex Taxi API

0502↓100%PHP

Since Jun 12Pushed 1y agoCompare

[ Source](https://github.com/neolinks/php-yandex-taxi-api)[ Packagist](https://packagist.org/packages/neolinks/php-yandex-taxi-api)[ RSS](/packages/neolinks-php-yandex-taxi-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

php-yandex-taxi-api
===================

[](#php-yandex-taxi-api)

PHP library for [Yandex.Taxi API](https://fleet.taxi.yandex.ru/api/docs/concepts/index.html)

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

[](#installation)

You can use [Composer](https://getcomposer.org)

```
$ composer require ipinchuk/php-yandex-taxi-api
```

or download from [GitHub](https://github.com/i-pinchuk/php-yandex-taxi-api)

Usage
-----

[](#usage)

```
require __DIR__ . '/vendor/autoload.php';

$clientId = 'YOUR_CLIENT_ID';
$apiKey = 'YOUR_API_KEY';
$parkId = 'YOUR_PARK_ID';

$client = new IPinchuk\YandexTaxi\Client($clientId, $apiKey, $parkId);
```

### Cars

[](#cars)

#### Gets a list of cars

[](#gets-a-list-of-cars)

[View API method documentation](https://fleet.taxi.yandex.ru/api/docs/reference/Cars/v1_parks_cars_list_post.html)

```
$cars = $client->api('cars')->all();
```

### Driver Profiles

[](#driver-profiles)

#### Gets a list of driver profiles

[](#gets-a-list-of-driver-profiles)

[View API method documentation](https://fleet.taxi.yandex.ru/api/docs/reference/DriverProfiles/v1_parks_driver-profiles_list_post.html)

```
$cars = $client->api('drivers')->all();
```

#### Change association with driver profile and car

[](#change-association-with-driver-profile-and-car)

[View API method documentation](https://fleet.taxi.yandex.ru/api/docs/reference/DriverProfiles/v1_parks_driver-profiles_car-bindings_put.html)

```
$profile_id = "SOME_DRIVER_PROFILE_ID";
$car_id = "SOME_CAR_ID";

$cars = $client->api('drivers')->bindVehicle($profile_id, $car_id);
```

#### Removes driver profile association with vehicle

[](#removes-driver-profile-association-with-vehicle)

[View API method documentation](https://fleet.taxi.yandex.ru/api/docs/reference/DriverProfiles/v1_parks_driver-profiles_car-bindings_delete.html)

```
$profile_id = "SOME_DRIVER_PROFILE_ID";
$car_id = "SOME_CAR_ID";

$cars = $client->api('drivers')->unbindVehicle($profile_id, $car_id);
```

### Driver work rules

[](#driver-work-rules)

#### Gets a list of working rules.

[](#gets-a-list-of-working-rules)

[View API method documentation](https://fleet.taxi.yandex.ru/api/docs/reference/DriverWorkRules/v1_parks_driver-work-rules_get.html)

```
$cars = $client->api('rules')->all();
```

### Orders

[](#orders)

#### Gets a list of orders.

[](#gets-a-list-of-orders)

[View API method documentation](https://fleet.taxi.yandex.ru/api/docs/reference/Orders/v1_parks_orders_list_post.html)

```
$cars = $client->api('orders')->all();
```

### Transactions

[](#transactions)

#### Gets a list of transactions.

[](#gets-a-list-of-transactions)

[View API method documentation](https://fleet.taxi.yandex.ru/api/docs/reference/Transactions/v2_parks_transactions_list_post.html)

```
$cars = $client->api('transactions')->all();
```

#### Gets a list of transaction categories.

[](#gets-a-list-of-transaction-categories)

[View API method documentation](https://fleet.taxi.yandex.ru/api/docs/reference/Transactions/v2_parks_transactions_categories_list_post.html)

```
$cars = $client->api('transactions')->categories();
```

#### Gets a list of transactions for specified driver

[](#gets-a-list-of-transactions-for-specified-driver)

[View API method documentation](https://fleet.taxi.yandex.ru/api/docs/reference/Transactions/v2_parks_driver-profiles_transactions_list_post.html)

```
$driver_id = 'SOME_DRIVER_ID';

$cars = $client->api('transactions')->driverTransactions($driver_id);
```

#### Gets a list of transactions for the orders

[](#gets-a-list-of-transactions-for-the-orders)

[View API method documentation](https://fleet.taxi.yandex.ru/api/docs/reference/Transactions/v2_parks_orders_transactions_list_post.html)

```
$order_ids = ['ORDER_ID_1', 'ORDER_ID_2', 'ORDER_ID_3'];

$cars = $client->api('transactions')->orderTransactions($order_ids);
```

#### Create a new driver transaction

[](#create-a-new-driver-transaction)

[View API method documentation](https://fleet.taxi.yandex.ru/api/docs/reference/Transactions/v2_parks_driver-profiles_transactions_post.html)

```
$driver_id = 'SOME_DRIVER_ID';
$amount = '-10'; // You can increase or decrease driver balance
$cad_id = 'SOME_TRANSACTION_CATEGORY_ID';
$description = 'SOME_TRANSACTION_DESCRIPTION';

$cars = $client->api('transactions')->createTransaction($driver_id, $amount, $cad_id, $description);
```

or

```
$driver_id = 'SOME_DRIVER_ID';
$amount = '10';
$cad_id = 'SOME_TRANSACTION_CATEGORY_ID';
$description = 'SOME_TRANSACTION_DESCRIPTION';

// For increase balance.
$cars = $client->api('transactions')->increaseBalance($driver_id, $amount, $cad_id, $description);
// For decrease balance
$cars = $client->api('transactions')->decreaseBalance($driver_id, $amount, $cad_id, $description);
```

### Add proxy server

[](#add-proxy-server)

```
$client->setProxy('YOR_PROXY_IP');
```

Code Quality
------------

[](#code-quality)

You need to configure API Key, Client ID and Park ID information in ClientTest.php and run the PHPUnit tests with [PHPUnit](https://phpunit.de)

```
$ phpunit tests/
```

License
-------

[](#license)

> MIT License
>
> Copyright (c) 2020 Igor Pinchuk
>
> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
>
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
>
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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.

### Community

Maintainers

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

---

Top Contributors

[![i-pinchuk](https://avatars.githubusercontent.com/u/64547545?v=4)](https://github.com/i-pinchuk "i-pinchuk (5 commits)")[![pinDevel](https://avatars.githubusercontent.com/u/12303945?v=4)](https://github.com/pinDevel "pinDevel (5 commits)")[![neolinks](https://avatars.githubusercontent.com/u/8432141?v=4)](https://github.com/neolinks "neolinks (2 commits)")

### Embed Badge

![Health badge](/badges/neolinks-php-yandex-taxi-api/health.svg)

```
[![Health](https://phpackages.com/badges/neolinks-php-yandex-taxi-api/health.svg)](https://phpackages.com/packages/neolinks-php-yandex-taxi-api)
```

PHPackages © 2026

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