2017 © Pedro Peláez
 

library php-html-heading-normalizer

PHP class for normalizing (promote/demote) HTML headings

image

vikpe/php-html-heading-normalizer

PHP class for normalizing (promote/demote) HTML headings

  • Tuesday, January 31, 2017
  • by vikpe
  • Repository
  • 1 Watchers
  • 0 Stars
  • 42 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 5 % Grown

The README.md

PHP: HTML Heading Normalizer

PHP class for normalizing (promote/demote) HTML headings., (*1)

Build Status Test Coverage Code Climate Scrutinizer Code Quality StyleCI, (*2)

Installation

composer require vikpe/php-html-heading-normalizer

Methods

promote(string $html, int $numberOfLevels)

Promotes all headings in $html by $numberOfLevels levels., (*3)

\Vikpe\HtmlHeadingNormalizer::promote('<h6>Foo</h6>', 3); // '<h3>Foo</h3>'

demote(string $html, int $numberOfLevels)

Demotes all headings in $html by $numberOfLevels levels., (*4)

\Vikpe\HtmlHeadingNormalizer::demote('<h1>Foo</h1>', 1); // '<h2>Foo</h2>'

min(string $html, int $minLevel)

Promotes/demotes all headings in $html so that the lowest heading level equals $minLevel., (*5)

\Vikpe\HtmlHeadingNormalizer::min('<h4>Foo</h4><h5>Bar</h5>', 1); // '<h1>Foo</h1><h2>Bar</h2>'

The Versions

31/01 2017

dev-develop

dev-develop https://github.com/vikpe/php-html-heading-normalizer

PHP class for normalizing (promote/demote) HTML headings

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

html normalize headings promote demote

30/01 2017

dev-master

9999999-dev https://github.com/vikpe/php-html-heading-normalizer

PHP class for normalizing (promote/demote) HTML headings

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

html normalize headings promote demote

29/01 2017

1.1.0

1.1.0.0 https://github.com/vikpe/php-html-heading-normalizer

PHP class for normalizing (promote/demote) HTML headings

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

html normalize headings promote demote

29/01 2017

dev-release/1.1.0

dev-release/1.1.0 https://github.com/vikpe/php-html-heading-normalizer

PHP class for normalizing (promote/demote) HTML headings

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

html normalize headings promote demote

19/01 2017

1.0.0

1.0.0.0 https://github.com/vikpe/php-html-heading-normalizer

PHP class for normalizing (promote/demote) HTML headings

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

html normalize headings promote demote