Download the PHP package makinacorpus/php-header-fixer without Composer
On this page you can find all versions of the php package makinacorpus/php-header-fixer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download makinacorpus/php-header-fixer
More information about makinacorpus/php-header-fixer
Files in makinacorpus/php-header-fixer
Download makinacorpus/php-header-fixer
More information about makinacorpus/php-header-fixer
Files in makinacorpus/php-header-fixer
Vendor makinacorpus
Package php-header-fixer
Short Description Fixes headers in HTML text
License MIT
Package php-header-fixer
Short Description Fixes headers in HTML text
License MIT
Please rate this library. Is it a good library?
Informations about the package php-header-fixer
Header fixer
Usage
Fixes header semantic hierarchy in HTML text.
$fixedHtmlText = \MakinaCorpus\HeaderFixer\Header::fix($originalHtmlText, 0, true);
And that is pretty much it.
Options are:
- 0
is the decal, if you, for example, want the text to start with
h2
instead of h1
, then set 1
here, for h3
set 2
, etc...
- true
is the relocate orphans options, if set to true, when a title is
the single one at his own level, with no siblings, it will be put at a higher
level side by side its parent.
TODOLIST
- implement a generic twig filter
- implement a drupal 7 module (another repo, including jolitypo)
- implement a drupal 8 module (another repo, including jolitypo)
All versions of php-header-fixer with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.0
The package makinacorpus/php-header-fixer contains the following files
Loading the files please wait ....