PHP code example of oscarotero / typofixer

1. Go to this page and download the library: Download oscarotero/typofixer library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

oscarotero / typofixer example snippets


use Typofixer\Typofixer;

$input = '<p>"Hello"&nbsp;&nbsp;world...</p>';
$output = Typofixer::fix($input, ['language' => 'es']);

echo $ouput; //<p>«Hello» world…</p>