riclep/laravel-storyblok-typography
最新稳定版本:1.0.1
Composer 安装命令:
composer require riclep/laravel-storyblok-typography
包简介
A bunch of typographical helpers and features for Laravel Storyblok
README 文档
README
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
Installation
You can install the package via composer:
composer require riclep/laravel-storyblok-typography
Usage
It’s really simple to use, just add the trait to any Blocks 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']; }
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email ric@sirric.co.uk instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.
统计信息
- 总下载量: 28
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-09-23