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