oscarotero / typofixer
Html microtypography fixer
Installs: 1 252
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-11-17 00:09:24 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>