To use this project
- Clone the repository:
git clone firstname.lastname@example.org:psecio/secure-api.git
- Change over to the
- Use the built-in PHP web server to handle requests
php -S localhost:8000
Then go to
http://localhost:8000 in a browser to view the result.
test-client.php contains an example of the HTTP client making a request to the API key with the flow created in the tutorial series. You'll need to install Guzzle to have it work correctly. Install it via Composer with:
composer require guzzlehttp/guzzle
Then you can run it with:
php test-client.php. If all goes well you should get the "validation success" message back from the last call to the API.