You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-14Lines changed: 15 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,16 @@
1
-
YDB PHP SDK provides access to Yandex Database cloud services from PHP code.
1
+
YDB PHP SDK provides access to [https://ydb.tech/](YDB) from PHP code.
2
2
3
-
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.
3
+
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.
4
4
5
-
Yandex Database is available in two modes:
5
+
YDB is available in several modes:
6
6
7
-
- Serverless computing mode (only performed operations are paid);
8
-
- Dedicated instance mode (dedicated computing resources are paid).
7
+
- On-prem installation (is not supported by this SDK yet);
8
+
- Serverless computing mode in YC (only performed operations are paid);
9
+
- Dedicated instance mode in YC (dedicated computing resources are paid).
First, create a database using [Yandex Cloud Console](https://cloud.yandex.ru/docs/ydb/quickstart/create-db).
27
+
First, create a database using [Yandex Cloud Console](https://cloud.yandex.com/docs/ydb/quickstart/create-db).
27
28
28
-
Yandex Database supports the following authentication methods:
29
+
YDB supports the following authentication methods:
29
30
30
31
- OAuth token
31
32
- JWT + private key
@@ -34,7 +35,7 @@ Yandex Database supports the following authentication methods:
34
35
35
36
## OAuth token
36
37
37
-
You should obtain [a new OAuth token](https://cloud.yandex.ru/docs/iam/concepts/authorization/oauth-token).
38
+
You should obtain [a new OAuth token](https://cloud.yandex.com/docs/iam/concepts/authorization/oauth-token).
38
39
39
40
Use your OAuth token:
40
41
@@ -70,7 +71,7 @@ $ydb = new Ydb($config);
70
71
71
72
## JWT + private key
72
73
73
-
Create [a service account](https://cloud.yandex.ru/docs/iam/operations/sa/create) with the `editor` role, then create a private key. Also you need a key ID and a service account ID.
74
+
Create [a service account](https://cloud.yandex.com/docs/iam/operations/sa/create) with the `editor` role, then create a private key. Also you need a key ID and a service account ID.
74
75
75
76
Connect to your database:
76
77
@@ -101,9 +102,9 @@ $ydb = new Ydb($config);
101
102
102
103
## JWT + JSON file
103
104
104
-
Create [a service account](https://cloud.yandex.ru/docs/iam/operations/sa/create) with the `editor` role.
105
+
Create [a service account](https://cloud.yandex.com/docs/iam/operations/sa/create) with the `editor` role.
105
106
106
-
Create a service account [JSON file](https://cloud.yandex.ru/docs/iam/operations/iam-token/create-for-sa#via-cli), save it in your project as `sa_name.json`.
107
+
Create a service account [JSON file](https://cloud.yandex.com/docs/iam/operations/iam-token/create-for-sa#via-cli), save it in your project as `sa_name.json`.
107
108
108
109
Connect to your database:
109
110
@@ -131,7 +132,7 @@ $ydb = new Ydb($config);
131
132
132
133
## Metadata URL
133
134
134
-
When you deploy a project to VM or function at Yandex.Cloud, you are able to connect to the database using [Metadata URL](https://cloud.yandex.ru/docs/compute/operations/vm-connect/auth-inside-vm). Before you start, you should link your service account to an existing or new VM or function.
135
+
When you deploy a project to VM or function at Yandex.Cloud, you are able to connect to the database using [Metadata URL](https://cloud.yandex.com/docs/compute/operations/vm-connect/auth-inside-vm). Before you start, you should link your service account to an existing or new VM or function.
0 commit comments