PHPackages                             ipinchuk/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. [API Development](/categories/api)
4. /
5. ipinchuk/php-yandex-taxi-api

ActiveLibrary[API Development](/categories/api)

ipinchuk/php-yandex-taxi-api
============================

PHP client for Yandex Taxi API

v1.2(6y ago)15611MITPHPPHP &gt;=7.0.0CI failing

Since May 1Pushed 6y ago1 watchersCompare

[ Source](https://github.com/i-pinchuk/php-yandex-taxi-api)[ Packagist](https://packagist.org/packages/ipinchuk/php-yandex-taxi-api)[ RSS](/packages/ipinchuk-php-yandex-taxi-api/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (4)Used By (1)

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

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~2 days

Total

3

Last Release

2197d ago

PHP version history (2 changes)v1.0PHP &gt;=7.1

v1.1PHP &gt;=7.0.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3767199?v=4)[ipinchuk](/maintainers/ipinchuk)[@ipinchuk](https://github.com/ipinchuk)

---

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)")

---

Tags

apiyandextaxiЯндекс.Такси

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  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)[hardworm/webmaster.api

Yandex Webmaster Api v4.1 library

109.7k](/packages/hardworm-webmasterapi)

PHPackages © 2026

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