This example requires Docker
-
Create your application in the Yoti Hub (this requires having a Yoti account)
-
Do the steps below inside the examples/doc-scan folder
-
Put
your-application-pem-file.pem
file inside the keys folder, as Docker requires the.pem
file to reside within the same location where it's run from. -
Copy
.env.example
to.env
-
Open
.env
file and fill in the environment variablesYOTI_SDK_ID
,YOTI_KEY_FILE_PATH
- Set
YOTI_KEY_FILE_PATH
to./keys/your-application-pem-file.pem
- Set
-
Install dependencies
docker-compose up composer
-
Run the
docker-compose up --build web
command -
Visit https://localhost:4003
-
Run the
docker-compose stop
command to stop the containers. -
The default controller demonstrates how to create a Doc Scan session
-
The success controller demonstrates how to retrieve a Doc Scan session