PHP code example of hans-thomas / ashei
1. Go to this page and download the library: Download hans-thomas/ashei 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/ */
hans-thomas / ashei example snippets
use Hans\Ashei\Facades\Ashei;
Ashei::read( '/path/to/ebook.epub' );
use Hans\Ashei\Facades\Ashei;
foreach ( Ashei::iterator( '/path/to/ebook.epub' ) as $number => $page ) {
// ...
}
use Hans\Ashei\Facades\Ashei;
Ashei::setParagraphLength( 50 )->read( '/path/to/ebook.epub' );
bash
php artisan vendor:publish --tag ashei-config