Add server docs

This commit is contained in:
Jake Barnby
2025-05-18 02:28:12 +12:00
parent 7687c99480
commit 41451b775e
3871 changed files with 64270 additions and 0 deletions
@@ -0,0 +1,20 @@
<?php
use Appwrite\Client;
use Appwrite\Services\Databases;
$client = (new Client())
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
->setProject('<YOUR_PROJECT_ID>') // Your project ID
->setKey('<YOUR_API_KEY>'); // Your secret API key
$databases = new Databases($client);
$result = $databases->createBooleanAttribute(
databaseId: '<DATABASE_ID>',
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: false, // optional
array: false // optional
);