{"id":13534130,"url":"https://github.com/appwrite/sdk-for-php","last_synced_at":"2026-03-03T13:06:14.029Z","repository":{"id":41259355,"uuid":"174654263","full_name":"appwrite/sdk-for-php","owner":"appwrite","description":"[READ-ONLY] Official Appwrite PHP SDK 🐘 ","archived":false,"fork":false,"pushed_at":"2025-05-08T11:37:59.000Z","size":835,"stargazers_count":148,"open_issues_count":0,"forks_count":22,"subscribers_count":17,"default_branch":"main","last_synced_at":"2025-05-15T16:10:06.129Z","etag":null,"topics":["appwrite","baas","hacktoberfest","php"],"latest_commit_sha":null,"homepage":"https://appwrite.io","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/appwrite.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-03-09T05:51:01.000Z","updated_at":"2025-04-17T19:39:11.000Z","dependencies_parsed_at":"2024-02-07T07:30:24.513Z","dependency_job_id":"2db945b0-4baf-477e-8791-8b18469ee41f","html_url":"https://github.com/appwrite/sdk-for-php","commit_stats":{"total_commits":155,"total_committers":10,"mean_commits":15.5,"dds":"0.46451612903225803","last_synced_commit":"c78ec21932ea831c87ece6ed04bf49d57e0a4ca4"},"previous_names":[],"tags_count":42,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appwrite%2Fsdk-for-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appwrite%2Fsdk-for-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appwrite%2Fsdk-for-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appwrite%2Fsdk-for-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appwrite","download_url":"https://codeload.github.com/appwrite/sdk-for-php/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254384988,"owners_count":22062422,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["appwrite","baas","hacktoberfest","php"],"created_at":"2024-08-01T07:01:26.758Z","updated_at":"2026-03-03T13:06:14.020Z","avatar_url":"https://github.com/appwrite.png","language":"PHP","readme":"# Appwrite PHP SDK\n\n![License](https://img.shields.io/github/license/appwrite/sdk-for-php.svg?style=flat-square\u0026v=1)\n![Version](https://img.shields.io/badge/api%20version-1.8.1-blue.svg?style=flat-square\u0026v=1)\n[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)\n[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee\u0026label=twitter\u0026style=flat-square)](https://twitter.com/appwrite)\n[![Discord](https://img.shields.io/discord/564160730845151244?label=discord\u0026style=flat-square)](https://appwrite.io/discord)\n\n**This SDK is compatible with Appwrite server version 1.8.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-php/releases).**\n\nAppwrite 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 [https://appwrite.io/docs](https://appwrite.io/docs)\n\n![Appwrite](https://github.com/appwrite/appwrite/raw/main/public/images/github.png)\n\n## Installation\n\nTo install via [Composer](http://getcomposer.org/):\n\n```bash\ncomposer require appwrite/appwrite\n```\n\n\n## Getting Started\n\n### Init your SDK\nInitialize 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.\n\n```php\n$client = new Client();\n\n$client\n    -\u003esetEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint\n    -\u003esetProject('5df5acd0d48c2') // Your project ID\n    -\u003esetKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key\n    -\u003esetSelfSigned() // Use only on dev mode with a self-signed SSL cert\n;\n```\n\n### Make Your First Request\nOnce 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.\n\n```php\n$users = new Users($client);\n\n$user = $users-\u003ecreate(ID::unique(), \"email@example.com\", \"+123456789\", \"password\", \"Walter O'Brien\");\n```\n\n### Full Example\n```php\nuse Appwrite\\Client;\nuse Appwrite\\ID;\nuse Appwrite\\Services\\Users;\n\n$client = new Client();\n\n$client\n    -\u003esetEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint\n    -\u003esetProject('5df5acd0d48c2') // Your project ID\n    -\u003esetKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key\n    -\u003esetSelfSigned() // Use only on dev mode with a self-signed SSL cert\n;\n\n$users = new Users($client);\n\n$user = $users-\u003ecreate(ID::unique(), \"email@example.com\", \"+123456789\", \"password\", \"Walter O'Brien\");\n```\n\n### Error Handling\nThe 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.\n\n```php\n$users = new Users($client);\ntry {\n    $user = $users-\u003ecreate(ID::unique(), \"email@example.com\", \"+123456789\", \"password\", \"Walter O'Brien\");\n} catch(AppwriteException $error) {\n    echo $error-\u003emessage;\n}\n\n```\n\n### Learn more\nYou can use the following resources to learn more and get help\n- 🚀 [Getting Started Tutorial](https://appwrite.io/docs/getting-started-for-server)\n- 📜 [Appwrite Docs](https://appwrite.io/docs)\n- 💬 [Discord Community](https://appwrite.io/discord)\n- 🚂 [Appwrite PHP Playground](https://github.com/appwrite/playground-for-php)\n\n\n## Contribution\n\nThis 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.\n\n## License\n\nPlease see the [BSD-3-Clause license](https://raw.githubusercontent.com/appwrite/appwrite/master/LICENSE) file for more information.","funding_links":[],"categories":["SDK"],"sub_categories":["Official Appwrite SDKs"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappwrite%2Fsdk-for-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappwrite%2Fsdk-for-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappwrite%2Fsdk-for-php/lists"}