Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 374 Bytes

File metadata and controls

13 lines (10 loc) · 374 Bytes

Token setup from PHP code

Aikido exposes a new function, called \aikido\set_token that can be used to pass in the token to the Aikido Agent.

<?php
if (extension_loaded('aikido')) {
    \aikido\set_token("your token here");
}
?>

This code needs to run with every request, so you can add it in a middleware, as exemplified here.