From 086116d0f0821fd792a1f46f3a67c3fcbc8b68ee Mon Sep 17 00:00:00 2001 From: Pratik Gupta <91310568+GuptaPratik02@users.noreply.github.com> Date: Tue, 17 Oct 2023 01:43:09 +0530 Subject: [PATCH] Update php GETTING_STARTED.md --- docs/sdks/php/GETTING_STARTED.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/sdks/php/GETTING_STARTED.md b/docs/sdks/php/GETTING_STARTED.md index faa3dcf654..dc3bcfe059 100644 --- a/docs/sdks/php/GETTING_STARTED.md +++ b/docs/sdks/php/GETTING_STARTED.md @@ -20,7 +20,7 @@ Once your SDK object is set, create any of the Appwrite service objects and choo ```php $users = new Users($client); -$user = $users->create(ID::unique(), 'email@example.com', 'password'); +$user = $users->create(ID::unique(), email = 'email@example.com', phone = '+123456789', password = 'password', name = "Walter O'Brien"); ``` ### Full Example @@ -40,7 +40,7 @@ $client $users = new Users($client); -$user = $users->create(ID::unique(), 'email@example.com', 'password'); +$user = $users->create(ID::unique(), email = 'email@example.com', phone = '+123456789', password = 'password', name = "Walter O'Brien"); ``` ### Error Handling @@ -49,7 +49,7 @@ The Appwrite PHP SDK raises `AppwriteException` object with `message`, `code` an ```php $users = new Users($client); try { - $user = $users->create(ID::unique(), 'email@example.com', 'password'); + $user = $users->create(ID::unique(), email = 'email@example.com', phone = '+123456789', password = 'password', name = "Walter O'Brien"); } catch(AppwriteException $error) { echo $error->message; }