Install the SDK from your site
Your own site serves the SDK, and any API key from it lets you in. In a terminal, in your Laravel
app’s folder, run:The first line tells Composer the SDK comes from your site (it’s saved in The service provider registers itself.
Terminal
composer.json). The second
saves your key in the app’s auth.json. The third installs the SDK, and the API client it uses, from
your site. Put your site’s address in the first two lines (set your site in the bar under this page’s
title and the example shows it), and paste your whole key in place of fsk_acme_….Any API key from your site works, the same one your app uses included: its scopes and signing
mode don’t matter for installing, only that it’s switched on and not past its expiry date. No key
yet? Make one in the CMS under API Keys (Authentication).
Install it into the app
config/fetchski-attract.php, asks for the site’s slug, URL and API key, then the
key’s signing secret (leave it empty for a token-only key), and writes them to .env (and empty
ones to .env.example, when the app has one). Then it calls the site to check it’s reachable, the
key is accepted and the clocks agree. With no secret, a FETCHSKI_ATTRACT_SIGNING_SECRET left in
.env by an earlier key is removed.Rather keep the key out of .env? Store it encrypted in a table the package ships instead (see
Key in the database):Terminal
Give your coding agent the skill
Requirements
Laravel 12 or 13
The service provider, the facade and the Artisan commands.
PHP 8.5.12+
Earlier releases carry severe security vulnerabilities.
Guzzle 7.10+ or 8.3+
Whichever your app’s other packages need: a new Laravel 13 app ships Guzzle 8.
Next: configuration
One site from
.env, more by hand, or a table.