PHPackages                             appwrite/appwrite - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. appwrite/appwrite

ActiveLibrary[API Development](/categories/api)

appwrite/appwrite
=================

Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API

21.0.0(1mo ago)155251.1k↓19.9%24[1 PRs](https://github.com/appwrite/sdk-for-php/pulls)4BSD-3-ClausePHPPHP &gt;=8.0.0

Since Mar 9Pushed 1mo ago15 watchersCompare

[ Source](https://github.com/appwrite/sdk-for-php)[ Packagist](https://packagist.org/packages/appwrite/appwrite)[ RSS](/packages/appwrite-appwrite/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (67)Used By (4)

Appwrite PHP SDK
================

[](#appwrite-php-sdk)

[![License](https://camo.githubusercontent.com/74aebd1290ab656f2d635fbf306d5ef4ba9cc0ebd94b246f44e394c1838acd40/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f61707077726974652f73646b2d666f722d7068702e7376673f7374796c653d666c61742d73717561726526763d31)](https://camo.githubusercontent.com/74aebd1290ab656f2d635fbf306d5ef4ba9cc0ebd94b246f44e394c1838acd40/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f61707077726974652f73646b2d666f722d7068702e7376673f7374796c653d666c61742d73717561726526763d31)[![Version](https://camo.githubusercontent.com/cf2d6216c21dacb22d81ba58d3d8f61c3c1a9992b58888a8333fb04331043f3f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f61706925323076657273696f6e2d312e392e302d626c75652e7376673f7374796c653d666c61742d73717561726526763d31)](https://camo.githubusercontent.com/cf2d6216c21dacb22d81ba58d3d8f61c3c1a9992b58888a8333fb04331043f3f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f61706925323076657273696f6e2d312e392e302d626c75652e7376673f7374796c653d666c61742d73717561726526763d31)[![Build Status](https://camo.githubusercontent.com/35c9a1f34950f5ae09c4b260724006ef93cf502c5998900c22ac4c103ccbd830/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f636f6d2f61707077726974652f73646b2d67656e657261746f723f7374796c653d666c61742d737175617265)](https://travis-ci.com/appwrite/sdk-generator)[![Twitter Account](https://camo.githubusercontent.com/95a35a6a7b26a4a26b1e365e36ac3ddf1794b2796d2b91de2f37ccb81274ae9d/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f666f6c6c6f772f61707077726974653f636f6c6f723d303061636565266c6162656c3d74776974746572267374796c653d666c61742d737175617265)](https://twitter.com/appwrite)[![Discord](https://camo.githubusercontent.com/793c234f12541be170e68233083ccfc7e5966e80a054d84a3e14ec0670ee66a5/68747470733a2f2f696d672e736869656c64732e696f2f646973636f72642f3536343136303733303834353135313234343f6c6162656c3d646973636f7264267374796c653d666c61742d737175617265)](https://appwrite.io/discord)

**This SDK is compatible with Appwrite server version 1.9.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-php/releases).**

Appwrite is an open-source backend as a service server that abstracts and simplifies complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way. Use the PHP SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools. For full API documentation and tutorials go to

[![Appwrite](https://github.com/appwrite/appwrite/raw/main/public/images/github.png)](https://github.com/appwrite/appwrite/raw/main/public/images/github.png)

Installation
------------

[](#installation)

To install via [Composer](http://getcomposer.org/):

```
composer require appwrite/appwrite
```

Getting Started
---------------

[](#getting-started)

### Init your SDK

[](#init-your-sdk)

Initialize your SDK with your Appwrite server API endpoint and project ID which can be found in your project settings page and your new API secret Key from project's API keys section.

```
$client = new Client();

$client
    ->setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
    ->setProject('5df5acd0d48c2') // Your project ID
    ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
    ->setSelfSigned() // Use only on dev mode with a self-signed SSL cert
;
```

### Make Your First Request

[](#make-your-first-request)

Once your SDK object is set, create any of the Appwrite service objects and choose any request to send. Full documentation for any service method you would like to use can be found in your SDK documentation or in the [API References](https://appwrite.io/docs) section.

```
$users = new Users($client);

$user = $users->create(ID::unique(), "email@example.com", "+123456789", "password", "Walter O'Brien");
```

### Full Example

[](#full-example)

```
use Appwrite\Client;
use Appwrite\ID;
use Appwrite\Services\Users;

$client = new Client();

$client
    ->setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
    ->setProject('5df5acd0d48c2') // Your project ID
    ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
    ->setSelfSigned() // Use only on dev mode with a self-signed SSL cert
;

$users = new Users($client);

$user = $users->create(ID::unique(), "email@example.com", "+123456789", "password", "Walter O'Brien");
```

### Error Handling

[](#error-handling)

The Appwrite PHP SDK raises `AppwriteException` object with `message`, `code` and `response` properties. You can handle any errors by catching `AppwriteException` and present the `message` to the user or handle it yourself based on the provided error information. Below is an example.

```
$users = new Users($client);
try {
    $user = $users->create(ID::unique(), "email@example.com", "+123456789", "password", "Walter O'Brien");
} catch(AppwriteException $error) {
    echo $error->message;
}
```

### Learn more

[](#learn-more)

You can use the following resources to learn more and get help

- 🚀 [Getting Started Tutorial](https://appwrite.io/docs/getting-started-for-server)
- 📜 [Appwrite Docs](https://appwrite.io/docs)
- 💬 [Discord Community](https://appwrite.io/discord)
- 🚂 [Appwrite PHP Playground](https://github.com/appwrite/playground-for-php)

Contribution
------------

[](#contribution)

This library is auto-generated by Appwrite custom [SDK Generator](https://github.com/appwrite/sdk-generator). To learn more about how you can help us improve this SDK, please check the [contribution guide](https://github.com/appwrite/sdk-generator/blob/master/CONTRIBUTING.md) before sending a pull-request.

License
-------

[](#license)

Please see the [BSD-3-Clause license](https://raw.githubusercontent.com/appwrite/appwrite/master/LICENSE) file for more information.

###  Health Score

67

—

FairBetter than 100% of packages

Maintenance89

Actively maintained with recent releases

Popularity52

Moderate usage in the ecosystem

Community31

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~43 days

Recently: every ~12 days

Total

61

Last Release

54d ago

Major Versions

16.0.0 → 17.0.02025-09-08

17.5.0 → 18.0.02025-11-10

18.0.1 → 19.0.02025-12-02

19.1.0 → 20.0.02026-02-02

20.2.1 → 21.0.02026-03-26

PHP version history (3 changes)v0.1.0PHP &gt;=5.3.0

v1.0.3PHP &gt;=7.1.0

20.0.0PHP &gt;=8.0.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/023f08a9df59f81cc4a04b1cebd20f45ede5db53ef2f9e9ad3d75f4c69be66b8?d=identicon)[eldadfux](/maintainers/eldadfux)

---

Top Contributors

[![eldadfux](https://avatars.githubusercontent.com/u/1297371?v=4)](https://github.com/eldadfux "eldadfux (84 commits)")[![abnegate](https://avatars.githubusercontent.com/u/5857008?v=4)](https://github.com/abnegate "abnegate (69 commits)")[![ChiragAgg5k](https://avatars.githubusercontent.com/u/110609663?v=4)](https://github.com/ChiragAgg5k "ChiragAgg5k (40 commits)")[![christyjacob4](https://avatars.githubusercontent.com/u/20852629?v=4)](https://github.com/christyjacob4 "christyjacob4 (36 commits)")[![TorstenDittmann](https://avatars.githubusercontent.com/u/1759475?v=4)](https://github.com/TorstenDittmann "TorstenDittmann (16 commits)")[![lohanidamodar](https://avatars.githubusercontent.com/u/6360216?v=4)](https://github.com/lohanidamodar "lohanidamodar (8 commits)")[![loks0n](https://avatars.githubusercontent.com/u/22452787?v=4)](https://github.com/loks0n "loks0n (8 commits)")[![ArnabChatterjee20k](https://avatars.githubusercontent.com/u/83803257?v=4)](https://github.com/ArnabChatterjee20k "ArnabChatterjee20k (5 commits)")[![stnguyen90](https://avatars.githubusercontent.com/u/1477010?v=4)](https://github.com/stnguyen90 "stnguyen90 (3 commits)")[![SoftCreatR](https://avatars.githubusercontent.com/u/81188?v=4)](https://github.com/SoftCreatR "SoftCreatR (2 commits)")[![Meldiron](https://avatars.githubusercontent.com/u/19310830?v=4)](https://github.com/Meldiron "Meldiron (1 commits)")

---

Tags

appwritebaashacktoberfestphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/appwrite-appwrite/health.svg)

```
[![Health](https://phpackages.com/badges/appwrite-appwrite/health.svg)](https://phpackages.com/packages/appwrite-appwrite)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
