Files
appwrite/docs/examples/1.8.x/server-php/examples/databases/create-integer-attribute.md

584 B

<?php use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey(''); // Your secret API key $databases = new Databases($client); $result = $databases->createIntegerAttribute( databaseId: '', collectionId: '', key: '', required: false, min: null, // optional max: null, // optional default: null, // optional array: false // optional );