klehm/content-blocks-kit

Ready-to-use block types for ContentBlocks (Text, Title, Image, Tabs).

Maintainers

Package info

github.com/Klehm/content-blocks-kit

Homepage

Issues

Type:symfony-bundle

pkg:composer/klehm/content-blocks-kit

Statistics

Installs: 3

Dependents: 0

Suggesters: 0

Stars: 0

v0.1.0-alpha.2 2026-04-30 08:49 UTC

This package is auto-updated.

Last update: 2026-04-30 14:05:11 UTC


README

Ready-to-use block types for klehm/content-blocks.

Included blocks

Type Class
text TextBlock
title TitleBlock
image ImageBlock
tabs TabsBlock

Installation

composer require klehm/content-blocks klehm/content-blocks-kit

The blocks are auto-registered via Symfony autoconfiguration (#[AsContentBlock] attribute) — no extra configuration needed.

File uploads

ImageBlock requires a FileStorageInterface implementation. The kit ships with LocalFileStorage:

# config/services.yaml
ContentBlocks\Storage\FileStorageInterface:
    class: ContentBlocks\Storage\LocalFileStorage
    arguments:
        $uploadDir: '%kernel.project_dir%/public/uploads/content-blocks'
        $publicPrefix: '/uploads/content-blocks'

Documentation & contributing

Full documentation and development setup live in the monorepo: github.com/klehm/content-blocks-project

License

MIT