Passport PHP Client

PHP Client Library

The PHP client library allows you to integrate Passport with your PHP application.

Source Code:

Here is an example of using the PassportClient to retrieve a User by their email address via the Passport User API:

include_once 'PassportClient.php'

$client = new PassportClient('6b87a398-39f2-4692-927b-13188a81a9a3', 'http://localhost:9011');

$email = "user@example.com";
$response = client->retrieveUserByEmail($email);
if($response->wasSuccessful()){
    $user = $response->successResponse->user;
} else {
    // Handle $response->errorResponse or $response->exception
}