An open API service indexing awesome lists of open source software.

https://github.com/gemorroj/ebookreader

E-books reader
https://github.com/gemorroj/ebookreader

Last synced: 2 months ago
JSON representation

E-books reader

Awesome Lists containing this project

README

        

# E-book reader

[![License](https://poser.pugx.org/gemorroj/ebook-reader/license)](https://packagist.org/packages/gemorroj/ebook-reader)
[![Latest Stable Version](https://poser.pugx.org/gemorroj/ebook-reader/v/stable)](https://packagist.org/packages/gemorroj/ebook-reader)
[![Continuous Integration](https://github.com/Gemorroj/EbookReader/workflows/Continuous%20Integration/badge.svg)](https://github.com/Gemorroj/EbookReader/actions?query=workflow%3A%22Continuous+Integration%22)

### Formats:
- EPUB
- MOBI
- FB2, FB2-ZIP

### Requirements:
- PHP >= 8.2
- ext-zip
- ext-dom
- ext-xmlreader

### Installation:
```bash
composer require gemorroj/ebook-reader
```

### Example:
```php
getMeta();
print_r($meta); // EbookMetaInterface object

$ebookReader = EbookReaderFactory::create('fake.file'); // throws UnsupportedFormatException exception

$driver = new Epub3Driver('fake.file');
var_dump($driver->isValid()); // false
```