Skip to content

Commit 6bd335d

Browse files
committed
chore: regenerate
1 parent 773784e commit 6bd335d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+4838
-85
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Appwrite PHP SDK
22

33
![License](https://img.shields.io/github/license/appwrite/sdk-for-php.svg?style=flat-square&v=1)
4-
![Version](https://img.shields.io/badge/api%20version-1.7.4-blue.svg?style=flat-square&v=1)
4+
![Version](https://img.shields.io/badge/api%20version-1.8.0-blue.svg?style=flat-square&v=1)
55
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
66
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
77
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
88

9-
**This SDK is compatible with Appwrite server version 1.7.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-php/releases).**
9+
**This SDK is compatible with Appwrite server version 1.8.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-php/releases).**
1010

1111
Appwrite is an open-source backend as a service server that abstract and simplify complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way. Use the PHP SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)
1212

docs/databases.md

Lines changed: 52 additions & 54 deletions
Large diffs are not rendered by default.

docs/examples/databases/create-document.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ use Appwrite\Services\Databases;
55
66
$client = (new Client())
77
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
8-
->setAdmin('') //
98
->setSession('') // The user session to authenticate with
109
->setKey('<YOUR_API_KEY>') // Your secret API key
1110
->setJWT('<YOUR_JWT>'); // Your secret JSON Web Token

docs/examples/databases/create-documents.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use Appwrite\Services\Databases;
55
66
$client = (new Client())
77
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
8+
->setAdmin('') //
89
->setKey('<YOUR_API_KEY>'); // Your secret API key
910

1011
$databases = new Databases($client);

docs/examples/databases/upsert-document.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@ use Appwrite\Services\Databases;
55
66
$client = (new Client())
77
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
8-
->setProject('<YOUR_PROJECT_ID>') // Your project ID
9-
->setSession(''); // The user session to authenticate with
8+
->setSession('') // The user session to authenticate with
9+
->setKey('<YOUR_API_KEY>') // Your secret API key
10+
->setJWT('<YOUR_JWT>'); // Your secret JSON Web Token
1011

1112
$databases = new Databases($client);
1213

1314
$result = $databases->upsertDocument(
1415
databaseId: '<DATABASE_ID>',
1516
collectionId: '<COLLECTION_ID>',
16-
documentId: '<DOCUMENT_ID>',
17-
data: [],
18-
permissions: ["read("any")"] // optional
17+
documentId: '<DOCUMENT_ID>'
1918
);

docs/examples/databases/upsert-documents.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@ use Appwrite\Services\Databases;
55
66
$client = (new Client())
77
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
8-
->setProject('<YOUR_PROJECT_ID>') // Your project ID
8+
->setAdmin('') //
99
->setKey('<YOUR_API_KEY>'); // Your secret API key
1010

1111
$databases = new Databases($client);
1212

1313
$result = $databases->upsertDocuments(
1414
databaseId: '<DATABASE_ID>',
15-
collectionId: '<COLLECTION_ID>',
16-
documents: []
15+
collectionId: '<COLLECTION_ID>'
1716
);
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
use Appwrite\Client;
4+
use Appwrite\Services\Tables;
5+
6+
$client = (new Client())
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
8+
->setProject('<YOUR_PROJECT_ID>') // Your project ID
9+
->setKey('<YOUR_API_KEY>'); // Your secret API key
10+
11+
$tables = new Tables($client);
12+
13+
$result = $tables->createBooleanColumn(
14+
databaseId: '<DATABASE_ID>',
15+
tableId: '<TABLE_ID>',
16+
key: '',
17+
required: false,
18+
default: false, // optional
19+
array: false // optional
20+
);
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
use Appwrite\Client;
4+
use Appwrite\Services\Tables;
5+
6+
$client = (new Client())
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
8+
->setProject('<YOUR_PROJECT_ID>') // Your project ID
9+
->setKey('<YOUR_API_KEY>'); // Your secret API key
10+
11+
$tables = new Tables($client);
12+
13+
$result = $tables->createDatetimeColumn(
14+
databaseId: '<DATABASE_ID>',
15+
tableId: '<TABLE_ID>',
16+
key: '',
17+
required: false,
18+
default: '', // optional
19+
array: false // optional
20+
);
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
use Appwrite\Client;
4+
use Appwrite\Services\Tables;
5+
6+
$client = (new Client())
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
8+
->setProject('<YOUR_PROJECT_ID>') // Your project ID
9+
->setKey('<YOUR_API_KEY>'); // Your secret API key
10+
11+
$tables = new Tables($client);
12+
13+
$result = $tables->createEmailColumn(
14+
databaseId: '<DATABASE_ID>',
15+
tableId: '<TABLE_ID>',
16+
key: '',
17+
required: false,
18+
default: '[email protected]', // optional
19+
array: false // optional
20+
);
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
3+
use Appwrite\Client;
4+
use Appwrite\Services\Tables;
5+
6+
$client = (new Client())
7+
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
8+
->setProject('<YOUR_PROJECT_ID>') // Your project ID
9+
->setKey('<YOUR_API_KEY>'); // Your secret API key
10+
11+
$tables = new Tables($client);
12+
13+
$result = $tables->createEnumColumn(
14+
databaseId: '<DATABASE_ID>',
15+
tableId: '<TABLE_ID>',
16+
key: '',
17+
elements: [],
18+
required: false,
19+
default: '<DEFAULT>', // optional
20+
array: false // optional
21+
);

0 commit comments

Comments
 (0)