Download the PHP package shipwake/laravel-ai-crawl without Composer
On this page you can find all versions of the php package shipwake/laravel-ai-crawl. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download shipwake/laravel-ai-crawl
More information about shipwake/laravel-ai-crawl
Files in shipwake/laravel-ai-crawl
Package laravel-ai-crawl
Short Description Server-side AI crawler tracking middleware for Laravel applications.
License MIT
Homepage https://github.com/kodebeacon/shipwake-laravel-ai-crawl
Informations about the package laravel-ai-crawl
shipwake/laravel-ai-crawl
Laravel middleware for observing AI and search crawler requests on the server. It uses the same four product categories as Shipwake (ai_answers, indexing, training, other) and dispatches a small request to Shipwake after the response has been sent.
Install
Set these values in .env:
The package sends crawler signals to Shipwake's production endpoint automatically. No endpoint URL needs to be configured in the Laravel application.
Register Shipwake\LaravelAiCrawl\Http\Middleware\TrackAiCrawler::class in the web middleware group from bootstrap/app.php.
The middleware calls the application normally, then queues the outbound request when Laravel terminates the response. The configured queue and connection are therefore honoured, and a slow analytics endpoint cannot delay the page or the Inertia response.
Laravel + Inertia + React
No React or SPA changes are needed. Inertia navigation still works through Laravel and the middleware observes the server request around the response. Keep window.signal.track(...) for human pageviews and client-side route changes; this package is the complementary server-side crawler signal.
The site key identifies the site and is the same public key used by the browser tracker. Generate or rotate the private server token from the Shipwake dashboard, then keep it only in server-side environment variables. The package sends the token as the Bearer credential and the raw user agent only to Shipwake for classification; server-side crawler requests do not submit visitor IPs or create visitor identities.