Skip to content

Commit 38546dd

Browse files
authored
Merge pull request #65 from appwrite/dev
feat: PHP SDK update for version 22.0.0
2 parents ac56e79 + c985958 commit 38546dd

238 files changed

Lines changed: 15393 additions & 3172 deletions

File tree

Some content is hidden

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

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Change Log
22

3+
## 22.0.0
4+
5+
* [BREAKING] Raised minimum PHP version from 8.0 to 8.2
6+
* [BREAKING] All service methods now return typed model objects instead of `array`
7+
* Added 142 typed response model classes with `ArraySerializable` trait for backward-compatible array access
8+
* Added `from(string)` factory method to all enums for value-based construction
9+
* Added `Client::getHeaders()` method to retrieve request headers
10+
* Added `dart-3.11` and `flutter-3.41` runtime enum values
11+
312
## 21.0.0
413

514
* [BREAKING] Changed `$sequence` type from `int` to `string` for rows and documents

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ To install via [Composer](http://getcomposer.org/):
2020
composer require appwrite/appwrite
2121
```
2222

23+
Requires PHP 8.2 or later.
24+
2325

2426
## Getting Started
2527

@@ -93,4 +95,4 @@ This library is auto-generated by Appwrite custom [SDK Generator](https://github
9395

9496
## License
9597

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

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
}
1717
},
1818
"require": {
19-
"php": ">=8.0.0",
19+
"php": ">=8.2.0",
2020
"ext-curl": "*",
2121
"ext-json": "*"
2222
},
@@ -25,4 +25,4 @@
2525
"mockery/mockery": "1.6.12"
2626
},
2727
"minimum-stability": "dev"
28-
}
28+
}

docs/examples/databases/create-datetime-attribute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ $result = $databases->createDatetimeAttribute(
1616
collectionId: '<COLLECTION_ID>',
1717
key: '',
1818
required: false,
19-
default: '', // optional
19+
default: '2020-10-15T06:38:00.000+00:00', // optional
2020
array: false // optional
2121
);```

docs/examples/databases/update-datetime-attribute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ $result = $databases->updateDatetimeAttribute(
1616
collectionId: '<COLLECTION_ID>',
1717
key: '',
1818
required: false,
19-
default: '',
19+
default: '2020-10-15T06:38:00.000+00:00',
2020
newKey: '' // optional
2121
);```

docs/examples/messaging/create-email.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ $result = $messaging->createEmail(
2323
attachments: [], // optional
2424
draft: false, // optional
2525
html: false, // optional
26-
scheduledAt: '' // optional
26+
scheduledAt: '2020-10-15T06:38:00.000+00:00' // optional
2727
);```

docs/examples/messaging/create-push.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ $result = $messaging->createPush(
2828
tag: '<TAG>', // optional
2929
badge: null, // optional
3030
draft: false, // optional
31-
scheduledAt: '', // optional
31+
scheduledAt: '2020-10-15T06:38:00.000+00:00', // optional
3232
contentAvailable: false, // optional
3333
critical: false, // optional
3434
priority: MessagePriority::NORMAL() // optional

docs/examples/messaging/create-sms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ $result = $messaging->createSMS(
1818
users: [], // optional
1919
targets: [], // optional
2020
draft: false, // optional
21-
scheduledAt: '' // optional
21+
scheduledAt: '2020-10-15T06:38:00.000+00:00' // optional
2222
);```

docs/examples/messaging/update-email.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ $result = $messaging->updateEmail(
2222
html: false, // optional
2323
cc: [], // optional
2424
bcc: [], // optional
25-
scheduledAt: '', // optional
25+
scheduledAt: '2020-10-15T06:38:00.000+00:00', // optional
2626
attachments: [] // optional
2727
);```

docs/examples/messaging/update-push.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ $result = $messaging->updatePush(
2828
tag: '<TAG>', // optional
2929
badge: null, // optional
3030
draft: false, // optional
31-
scheduledAt: '', // optional
31+
scheduledAt: '2020-10-15T06:38:00.000+00:00', // optional
3232
contentAvailable: false, // optional
3333
critical: false, // optional
3434
priority: MessagePriority::NORMAL() // optional

0 commit comments

Comments
 (0)