PHP code example of marcorieser / statamic-vitals
1. Go to this page and download the library: Download marcorieser/statamic-vitals library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
marcorieser / statamic-vitals example snippets
bash
php please vitals:generate-key
bash
curl --request POST \
--url https://site.tld/api/statamic-vitals/vitals \
--header 'Content-Type: application/json' \
--data '{
"access_key":"4Vz?xNc_eE&2uqQL"
}'