ivo-valchev / anchor-tags
🏷 This Bolt extension adds IDs to HTML elements for use as anchor tags.
Installs: 268
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 1
Open Issues: 0
Type:bolt-extension
Requires
- php: >=7.2.9
- twig/twig: ^2.12 | ^3.0
Requires (Dev)
- bolt/core: ^4.1
- symplify/easy-coding-standard: ^8.3
This package is auto-updated.
Last update: 2024-11-15 20:07:54 UTC
README
Author: Ivo Valchev
🏷 This Bolt extension adds IDs to HTML elements for use as anchor tags.
Installation:
composer require ivo-valchev/anchor-tags
Usage
See the ivovalchev-anchortags.yaml
for all configuration options.
In addition, you can use the anchor_tags
filter to add anchor tags
to specific HTML, like so:
{% set html %} <h2>Hi there</h2> <p>I am some html.</p> <strong>It only works on here.</strong> {% endset %} {{ html|anchor_tags }}
Running PHPStan and Easy Codings Standard
First, make sure dependencies are installed:
COMPOSER_MEMORY_LIMIT=-1 composer update
And then run ECS:
vendor/bin/ecs check src