2019-05-09 18:54:39 +12:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Appwrite\Client;
|
|
|
|
use Appwrite\Services\Database;
|
|
|
|
|
|
|
|
$client = new Client();
|
|
|
|
|
|
|
|
$client
|
2019-10-02 07:10:33 +13:00
|
|
|
->setProject('')
|
2019-05-09 18:54:39 +12:00
|
|
|
;
|
|
|
|
|
|
|
|
$database = new Database($client);
|
|
|
|
|
2019-10-22 06:15:27 +13:00
|
|
|
$result = $database->createDocument('[COLLECTION_ID]', '{}', [], []);
|