Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# Dependencies
/vendor/

# Composer
composer.lock

# IDE files
.idea/
.vscode/
Expand Down Expand Up @@ -34,4 +31,4 @@ logs/
# src/Models/
# src/Requests/
# src/Generated/
# composer-generated.json
# composer-generated.json
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ echo "Duration: " . $response->duration;

## Models

> **Note:** When constructing models directly, always use **named arguments** (e.g. `new Message(text: 'hello')`).
> Positional argument usage is not supported and may break across SDK updates as parameter order is not guaranteed.

### Automatic JSON Parsing

Generated models automatically handle JSON parsing and serialization:
Expand Down
2 changes: 1 addition & 1 deletion composer-generated.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"php": "^8.1",
"ext-json": "*",
"ext-curl": "*",
"firebase/php-jwt": "^6.0",
"firebase/php-jwt": "^7.0",
"guzzlehttp/guzzle": "^7.0",
"vlucas/phpdotenv": "^5.0"
},
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"php": "^8.1",
"ext-curl": "*",
"ext-json": "*",
"firebase/php-jwt": "^6.0",
"firebase/php-jwt": "^7.0",
"guzzlehttp/guzzle": "^7.0",
"vlucas/phpdotenv": "^5.0"
},
Expand Down
Loading