PHPackages                             dimajolkin/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. dimajolkin/ydb-php-sdk

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

dimajolkin/ydb-php-sdk
======================

Yandex Database SDK (PHP)

v1.3.2(3y ago)0391Apache-2.0PHPPHP &gt;=7.0

Since Nov 6Pushed 3y agoCompare

[ Source](https://github.com/dimajolkin/ydb-php-sdk)[ Packagist](https://packagist.org/packages/dimajolkin/ydb-php-sdk)[ RSS](/packages/dimajolkin-ydb-php-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (3)Used By (1)

Об этом форке
=============

[](#об-этом-форке)

Так как в облаке по видимому забили на поддержку библиотеки, временно перенёс в эту ветку нужные изменения для установки использовать

```
  composer require dimajolkin/ydb-php-sdk "^1.3"
```

1.  - возможность ананимной авторизации
2. [ydb-platform#22](https://github.com/ydb-platform/ydb-php-sdk/pull/22)

YDB PHP SDK provides access to Yandex Database cloud services from PHP code.

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

Yandex Database is available in two modes:

- Serverless computing mode (only performed operations are paid);
- Dedicated instance mode (dedicated computing resources are paid).

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

[](#documentation)

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

[](#installation)

The recommended method of installing is Composer.

Run the following:

```
composer require yandex-cloud/ydb-php-sdk
```

Connection
==========

[](#connection)

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

Yandex Database supports the following authentication methods:

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

OAuth token
-----------

[](#oauth-token)

You should obtain [a new OAuth token](https://cloud.yandex.ru/docs/iam/concepts/authorization/oauth-token).

Use your OAuth token:

```
