0.10.0

(feat): You can now modify the generated composer.json file by adding a composerJson property to your generator configuration. Here’s an example of the generators.yml file with the composerJson property:

generators.yml ... groups:
1 php-sdk:
2 generators:
3 - name: fernapi/fern-php-sdk
4 ...
5 config:
6 composerJson:
7 description: This is my PHP library
8 keywords:
9 - myCustomTag
10 license:
11 - "LGPL-2.1-only"
12 - "GPL-3.0-or-later"
13 scripts:
14 hello: echo hello

Which will result in the following composer.json file:

composer.json {
1 // ...,
2 "description": "This is my PHP library",
3 "keywords": [
4 "myCustomTag",
5 // ...,
6 ],
7 "license": [
8 "LGPL-2.1-only",
9 "GPL-3.0-or-later"
10 ],
11 // ...,
12 "scripts": {
13 // ...,
14 "hello": "echo hello"
15 }
16} ```
17
18## 0.9.0
19**`(feat):`** Add the ability to access alpha or undocumented response properties from every class. Users can access the additional properties like so:
20```php $response = $client->users->get(...); $additionalProperties = $response->getAdditionalProperties(); ```
21
22## 0.8.0
23**`(feat):`** Add automatic pagination support for endpoints that return a paginated response.
24Here's an example of how users can use paginated endpoints:
25```php $items = $client->list($request); foreach($items as $item){
26 echo $item;
27} $pages = $items->getPages(); foreach($pages as $page){
28 foreach($page as $item){
29 echo $item;
30 }
31} ```