mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
10171c80da
Updated SDK generator to fix Java examples Kotlin syntax issues and regenerated all affected documentation examples across multiple SDK versions.
509 B
509 B
<?php
use Appwrite\Client;
use Appwrite\Services\Sites;
use Appwrite\Enums\VCSReferenceType;
$client = (new Client())
->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
->setProject('') // Your project ID
->setKey(''); // Your secret API key
$sites = new Sites($client);
$result = $sites->createVcsDeployment(
siteId: '',
type: VCSReferenceType::BRANCH(),
reference: '',
activate: false // optional
);