Skip to content

Commit ccea310

Browse files
authored
Merge pull request #27 from appwrite/dev
Dev
2 parents da579af + 51f9a3b commit ccea310

File tree

319 files changed

+19548
-2343
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

319 files changed

+19548
-2343
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2023 Appwrite (https://appwrite.io) and individual contributors.
1+
Copyright (c) 2024 Appwrite (https://appwrite.io) and individual contributors.
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# Appwrite PHP SDK
22

33
![License](https://img.shields.io/github/license/appwrite/sdk-for-php.svg?style=flat-square&v=1)
4-
![Version](https://img.shields.io/badge/api%20version-1.4.12-blue.svg?style=flat-square&v=1)
4+
![Version](https://img.shields.io/badge/api%20version-1.5.0-blue.svg?style=flat-square&v=1)
55
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
66
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
77
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
88

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

1111
Appwrite is an open-source backend as a service server that abstract and simplify 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)
1212

13-
![Appwrite](https://appwrite.io/images/github.png)
13+
![Appwrite](https://github.com/appwrite/appwrite/raw/main/public/images/github.png)
1414

1515
## Installation
1616

@@ -43,7 +43,7 @@ Once your SDK object is set, create any of the Appwrite service objects and choo
4343
```php
4444
$users = new Users($client);
4545

46-
$user = $users->create(ID::unique(), '[email protected]', 'password');
46+
$user = $users->create(ID::unique(), "[email protected]", "+123456789", "password", "Walter O'Brien");
4747
```
4848

4949
### Full Example
@@ -63,7 +63,7 @@ $client
6363

6464
$users = new Users($client);
6565

66-
$user = $users->create(ID::unique(), '[email protected]', 'password');
66+
$user = $users->create(ID::unique(), "[email protected]", "+123456789", "password", "Walter O'Brien");
6767
```
6868

6969
### Error Handling
@@ -72,7 +72,7 @@ The Appwrite PHP SDK raises `AppwriteException` object with `message`, `code` an
7272
```php
7373
$users = new Users($client);
7474
try {
75-
$user = $users->create(ID::unique(), '[email protected]', 'password');
75+
$user = $users->create(ID::unique(), "[email protected]", "+123456789", "password", "Walter O'Brien");
7676
} catch(AppwriteException $error) {
7777
echo $error->message;
7878
}

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"ext-json": "*"
1919
},
2020
"require-dev": {
21-
"phpunit/phpunit": "3.7.35"
21+
"phpunit/phpunit": "^10",
22+
"mockery/mockery": "^1.6.6"
2223
},
2324
"minimum-stability": "dev"
2425
}

0 commit comments

Comments
 (0)