PHP code example of tttptd / laravel-mdash

1. Go to this page and download the library: Download tttptd/laravel-mdash 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/ */

    

tttptd / laravel-mdash example snippets


Tttptd\Mdash\MdashServiceProvider::class

'Mdash' => Tttptd\Mdash\Facades\Mdash::class

$result = \Mdash::process($rawText, [
    'Text.paragraphs' => false,
    'Text.breakline' => false,
]);