preprio/laravel-sdk
A Laravel SDK for integrating with the Prepr.io API, offering convenient configuration, service providers, facades, and helpers to fetch and manage content from your Prepr workspace within Laravel applications.
composer require preprio/laravel-rest-sdk:"^5.0". Confirm your app is on Laravel 12 or 13 and PHP 8.2+ — 5.0.0 drops support for older Laravel versions, so an upgrade of the host app may be a prerequisite.php artisan vendor:publish and pick the Prepr config tag) and set the connection values in .env: API URL, access token, and PREPR_CACHE if you want GET responses cached. Keep the cache toggle per-environment (off in local, on in staging/production) so you can see live CMS edits while developing.PREPR_CACHE enabled in 5.0.0, GET responses are stored as status + body and rebuilt on hit. Design your code to consume the rebuilt response object exactly as it would a live one; don't assume cached calls retain headers or any other envelope data.^5.0 on a Laravel 11 codebase.TypeError fix is the headline reason to upgrade. If you saw failures only when PREPR_CACHE was on, that's this bug. Upgrade, clear cache, then re-test your cached read paths specifically — not just the uncached ones.php artisan config:clear (and config:cache in deploy steps). A stale cached config will happily send you to the wrong environment.How can I help you explore Laravel packages today?