Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 24 additions & 1 deletion docs/php/symfony/storyblok/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,30 @@ This bundle provides helpers for

## Installation

Install the package:
You need to define various environment variables:

```dotenv
# your space id as number
STORYBLOK_SPACE_ID=

# your management token
STORYBLOK_MANAGEMENT_TOKEN=

# your content token – with `preview` scope
STORYBLOK_CONTENT_TOKEN=
```

Then add the base config in `config/packages/storyblok.yaml`:

```yaml
storyblok:
space_id: "%env(STORYBLOK_SPACE_ID)%"
management_token: "%env(STORYBLOK_MANAGEMENT_TOKEN)%"
content_token: "%env(STORYBLOK_CONTENT_TOKEN)%"
```


Then install the package:

```shell
composer require 21torr/storyblok
Expand Down