PHP code example of valantic-spryker-eco / storyblok-client

1. Go to this page and download the library: Download valantic-spryker-eco/storyblok-client library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

valantic-spryker-eco / storyblok-client example snippets


$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;