Make your content sing with enhanced typography thanks to PHP Typography. The package includes a trait making it simple to apply typographic fixes such as proper quotes '' -> ‘’, small caps and useful class names for styling numbers etc.
This package is a module for Laravel Storyblok
You can install the package via composer:
composer require riclep/laravel-storyblok-typography
It’s really simple to use, just add the trait to any Block
s you want to apply typography to. Create an $applyTypography
property containing an array of fields. It will work for text and html content and has sensible defaults but you can override the settings on a Block
by Block
basis.
<?php
namespace App\Storyblok;
use Riclep\Storyblok\Block as BaseBlock;
use Riclep\StoryblokTypography\Traits\AppliesTypography;
class Block extends BaseBlock
{
use AppliesTypography;
protected $applyTypography = ['Text', 'Html'];
}
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email ric@sirric.co.uk instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.
This package was generated using the Laravel Package Boilerplate.