valantic-spryker-eco / storyblok-client
Provides Storyblok client.
1.0.0
2023-08-01 15:03 UTC
Requires
- php: >=8.0
- ext-bcmath: *
- ext-xmlwriter: *
- spryker/kernel: ^3.70
- spryker/transfer: ^3.33
- storyblok/php-client: ^2.4
Requires (Dev)
- spryker/architecture-sniffer: ^0.5.0
- spryker/code-sniffer: ^0.17.18
- spryker/development: ^3.34
README
Spryker wrapper for Storyblok PHP client
Install package
composer req valantic-spryker-eco/storyblok-client
Update your shared config
$config[StoryblokConstants::STORYBLOK_PUBLIC_SECRET] = '<Your Storyblok public secret>'; $config[StoryblokConstants::STORYBLOK_PREVIEW_SECRET] = '<Your Storyblok preview secret>'; $config[StoryblokConstants::SLUG_NAVIGATION_MAIN] = '<Slug for main navigation>'; $config[StoryblokConstants::SLUG_FOOTER] = '<Slug for footer>'; $config[StoryblokConstants::SLUG_CMS_CONTENT] = '/'; $config[StoryblokConstants::STORYBLOK_EXPIRATION_TIME] = 3600;
Usage
Inject
\ValanticSpryker\Client\Storyblok\StoryblokClient
where you need it.