PHP code example of chernysh / fish-text

1. Go to this page and download the library: Download chernysh/fish-text 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/ */

    

chernysh / fish-text example snippets


$fish = new FishText();

// Вернет указанное количество предложений
echo $fish->loadSentence(10);

// Вернет указанное количество абзацев
echo $fish->loadParagraph(3);

// Вернет указанное количество заголовков
echo $fish->loadTitle(1);