This is a Composer package that handles the data fetching from the Bakku CMS API. You'll be able to get all the blocks/images from a certain page and all page URLs.
- Has some built in caching through Laravel's Cache functionality;
- Caching TTL is configurable in the .env
with BAKKU_CACHE_TTL
;
- Still a work in progress;
1. Run composer config repositories.rapideinternet/bakku-client vcs https://github.com/rapideinternet/bakku-client
to add the package to your composer.json
2. Run composer require rapideinternet/bakku-client:dev-main
to add the package to your vendor
.
3. Run php artisan vendor:expose
to generate the bakkuclient.php
config file.
4. Add BAKKU_SITE_ID
and BAKKU_SITE_API_TOKEN
to your .env
5. Use RapideSoftware\BakkuClient\Services\BakkuClient
for the API calls
(If I missed anything, please let me know)
Slack: Max van der WerfEmail: max.vanderwerf@rapide.software