oscarotero / typofixer
Html microtypography fixer
Installs: 1 250
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 4
Forks: 2
Open Issues: 0
Requires
- php: ^7.1|^8.0
- ext-mbstring: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.1
- phpunit/phpunit: ^8.0
This package is auto-updated.
Last update: 2024-10-16 23:55:43 UTC
README
A [wip] PHP library to fix microtypography issues in html code.
Requirements
- PHP ^7.1
- mbstring extension
Usage
use Typofixer\Typofixer; $input = '<p>"Hello" world...</p>'; $output = Typofixer::fix($input, ['language' => 'es']); echo $ouput; //<p>«Hello» world…</p>