valantic-spryker-eco/storyblok-client

1.0.0 2023-08-01 15:03 UTC

This package is auto-updated.

Last update: 2024-04-09 11:34:32 UTC


README

Minimum PHP Version

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.