appwrite-php

Implements server-side Appwrite integrations in PHP covering users, databases, storage, and functions.

Updated Jul 29, 2026
One-click install
npx skills add https://github.com/SMGolamAlif/Orbit --skill appwrite-php-smgolamalif
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: appwrite-php
Source: https://github.com/SMGolamAlif/Orbit/tree/main/.agents/skills/appwrite-php
Command: npx skills add https://github.com/SMGolamAlif/Orbit --skill appwrite-php-smgolamalif

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires appwrite/appwrite.

What problem does it solve? Building server-side PHP applications with Appwrite requires knowing the correct SDK patterns for authentication, database CRUD, file storage, and permissions, and mistakes like using deprecated classes or missing permission strings cause broken or insecure backends. ## Core Features & Use Cases - Server SDK Patterns: Set up admin and session clients with API keys, covering user management, TablesDB CRUD, queries, file storage, teams, and serverless functions. - SSR Authentication: Implement email/password and OAuth2 login flows for Laravel and Symfony with secure session cookie handling. - Permissions & Error Handling: Apply Permission and Role helpers correctly and handle AppwriteException codes like 401, 403, and 429. - Use Case: A developer building a Laravel app with Appwrite can use this Skill to generate the OAuth2 login flow, create rows with per-user permissions, and upload files to a bucket without consulting scattered documentation. ## Quick Start Use the appwrite-php skill to write a PHP script that creates an Appwrite table, inserts a row with user-level read permissions, and queries it with filters.

Frequently Asked Questions about appwrite-php

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use the Appwrite PHP SDK for server-side apps?

Install the SDK with composer require appwrite/appwrite, then create a Client with setEndpoint, setProject, and setKey using your API key. From there, instantiate services like Users, TablesDB, Storage, and Functions to perform backend operations.

How do I implement SSR authentication with Appwrite in Laravel or Symfony?

Use an admin client with an API key to create the session via createEmailPasswordSession or createSession after OAuth2, then store the secret in an httpOnly cookie named a_session_<PROJECT_ID>. Create a per-request session client with setSession for authenticated calls.

Should I use Databases or TablesDB in the Appwrite PHP SDK?

Use TablesDB for all new code, since the Databases class is deprecated. Only use Databases if the existing codebase already relies on it or it is explicitly requested.

Why is my Appwrite row inaccessible after creating it in PHP?

Appwrite grants no access by default, so a row created without permission strings is inaccessible to all users including the creator. Pass Permission and Role helpers, such as Permission::read(Role::user($userId)), when creating the row.

How do I handle Appwrite API errors in PHP?

Catch AppwriteException and inspect getMessage, getCode, getType, and getResponse for details. Common codes include 401 for invalid credentials, 403 for insufficient permissions, 404 for missing resources, and 429 for rate limiting.