From 5f3cbc8b8ce35406d30a396cf9798295e66e2829 Mon Sep 17 00:00:00 2001 From: krzysiej Date: Mon, 30 May 2022 12:00:42 +0200 Subject: [PATCH] Before running parse operation on search results page it checks now if there are any books to parse. --- README.md | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/README.md b/README.md index e69de29..47f6796 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,44 @@ +## Installation + +Place this in the composer.json. + +```composer +{ + "repositories": [{ + "type": "composer", + "url": "https://satis.techtube.pl" + }] +} +``` +Then execute + +```bash +composer require techtube/bookinfo:"1.0.4" +``` + +## Usage + +To get information about the book by the link: + +```php +byUrl('https://lubimyczytac.pl/ksiazka/5008411/oni'); + +print_r($data); +``` + +To search the book by phrase: +```php +search('jack reacher'); + +print_r($data); +``` \ No newline at end of file