diff --git a/README.md b/README.md index 36510a9c..6f35b579 100755 --- a/README.md +++ b/README.md @@ -42,13 +42,13 @@ Add the Yoti SDK dependency: ```json "require": { - "yoti/yoti-php-sdk" : "^4.2.1" + "yoti/yoti-php-sdk" : "^4.3.0" } ``` Or run this Composer command ```console -$ composer require yoti/yoti-php-sdk "^4.2.1" +$ composer require yoti/yoti-php-sdk "^4.3.0" ``` ## Setup diff --git a/examples/digitalidentity/README.md b/examples/digitalidentity/README.md index 8faa9b32..4b9d91b5 100644 --- a/examples/digitalidentity/README.md +++ b/examples/digitalidentity/README.md @@ -18,7 +18,11 @@ This example requires [Docker](https://docs.docker.com/) * Visit [https://localhost:4002](https://localhost:4002) * Run the `docker-compose stop` command to stop the containers. -> To see how to retrieve activity details using the one time use token, refer to the [digitalidentity controller](app/Http/Controllers/IdentityController.php) +> To see how to retrieve a profile using share receipt, refer to the [digitalidentity controller](app/Http/Controllers/ReceiptController.php) ## Digital Identity Example * Visit [/generate-share](https://localhost:4002/generate-share) +## Digital Identity(Advanced) Share Example +* Visit [/generate-advanced-identity-share](https://localhost:4002/generate-advanced-identity-share) +* ## Digital Identity DBS Example +* Visit [/generate-dbs-share](https://localhost:4002/generate-dbs-share) diff --git a/examples/digitalidentity/app/Http/Controllers/AdvancedIdentityController.php b/examples/digitalidentity/app/Http/Controllers/AdvancedIdentityController.php index cdfda0f6..c084faf2 100644 --- a/examples/digitalidentity/app/Http/Controllers/AdvancedIdentityController.php +++ b/examples/digitalidentity/app/Http/Controllers/AdvancedIdentityController.php @@ -4,12 +4,10 @@ use Illuminate\Routing\Controller as BaseController; use Illuminate\Support\Facades\Log; -use mysql_xdevapi\Exception; use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; use Yoti\DigitalIdentityClient; use Yoti\Identity\Policy\PolicyBuilder; use Yoti\Identity\ShareSessionRequestBuilder; -use Yoti\YotiClient; class AdvancedIdentityController extends BaseController { diff --git a/examples/digitalidentity/app/Http/Controllers/IdentityController.php b/examples/digitalidentity/app/Http/Controllers/IdentityController.php index 72ba9fc3..ca987617 100644 --- a/examples/digitalidentity/app/Http/Controllers/IdentityController.php +++ b/examples/digitalidentity/app/Http/Controllers/IdentityController.php @@ -4,12 +4,10 @@ use Illuminate\Routing\Controller as BaseController; use Illuminate\Support\Facades\Log; -use mysql_xdevapi\Exception; use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; use Yoti\DigitalIdentityClient; use Yoti\Identity\Policy\PolicyBuilder; use Yoti\Identity\ShareSessionRequestBuilder; -use Yoti\YotiClient; class IdentityController extends BaseController { diff --git a/examples/digitalidentity/app/Http/Controllers/ReceiptController.php b/examples/digitalidentity/app/Http/Controllers/ReceiptController.php index cc529386..40299d42 100644 --- a/examples/digitalidentity/app/Http/Controllers/ReceiptController.php +++ b/examples/digitalidentity/app/Http/Controllers/ReceiptController.php @@ -3,13 +3,12 @@ namespace App\Http\Controllers; use Yoti\DigitalIdentityClient; -use Yoti\YotiClient; use Illuminate\Http\Request; use Illuminate\Routing\Controller as BaseController; use Yoti\Profile\Attribute; use Yoti\Profile\UserProfile; use Yoti\Util\Logger; -use Yoti\Exception\ActivityDetailsException; + class ReceiptController extends BaseController { public function show(Request $request, DigitalIdentityClient $client, ?LoggerInterface $logger = null)