PHPackages                             yandex-cloud/ydb-php-sdk - 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. [Database &amp; ORM](/categories/database)
4. /
5. yandex-cloud/ydb-php-sdk

ActiveLibrary[Database &amp; ORM](/categories/database)

yandex-cloud/ydb-php-sdk
========================

YDB PHP SDK

v1.16.3(2w ago)3822.8k↓50%19[127 issues](https://github.com/ydb-platform/ydb-php-sdk/issues)[3 PRs](https://github.com/ydb-platform/ydb-php-sdk/pulls)Apache-2.0PHPPHP &gt;=7.2CI passing

Since Apr 15Pushed 3d ago11 watchersCompare

[ Source](https://github.com/ydb-platform/ydb-php-sdk)[ Packagist](https://packagist.org/packages/yandex-cloud/ydb-php-sdk)[ RSS](/packages/yandex-cloud-ydb-php-sdk/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (10)Dependencies (12)Versions (60)Used By (0)

YDB PHP SDK
===========

[](#ydb-php-sdk)

[![codecov](https://camo.githubusercontent.com/dbe4c88dad0fb2d873ecf8c0d986965698a486e0faac716cc74ff7519c903a6e/68747470733a2f2f636f6465636f762e696f2f67682f7964622d706c6174666f726d2f7964622d7068702d73646b2f62616467652e7376673f707265636973696f6e3d32)](https://app.codecov.io/gh/ydb-platform/ydb-php-sdk)

YDB PHP SDK provides access to [YDB](https://ydb.tech/) from PHP code.

YDB is a open-source distributed fault-tolerant DBMS with high availability and scalability, strict consistency and ACID. An SQL dialect – YQL – is used for queries.

YDB is available in several modes:

- On-prem installation (is not supported by this SDK yet);
- Serverless computing mode in YC (only performed operations are paid);
- Dedicated instance mode in YC (dedicated computing resources are paid).

Documentation
=============

[](#documentation)

Installation
============

[](#installation)

The recommended method of installing is Composer.

Run the following:

```
composer require ydb-platform/ydb-php-sdk
```

Connection
==========

[](#connection)

First, create a database using [Yandex Cloud Console](https://cloud.yandex.com/docs/ydb/quickstart/create-db).

YDB supports the following authentication methods:

- Access token
- OAuth token
- JWT + private key
- JWT + JSON file
- Metadata URL
- Anonymous

Access token
------------

[](#access-token)

Use your access token:

```
