Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
ginfarma committed Dec 11, 2020
1 parent fc7f9ec commit 9dd3624
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,28 @@ $finder = new ImgFinder\ImgFinder($config);

**ImgFinder** is now available to query image repositories, just it only necessary to create a request.

### Request in all repositories

```php
// Search in all repositories
$request = ImgFinder\Request::set('nature');
// same as:
$request = ImgFinder\Request::set('nature', 1, 10, 'landscape');
$request = ImgFinder\Request::set('nature', null, 1, 10, 'landscape');
```
Both requests are the same, **"nature"** is the search term, **1** is the default page, **10** is the number of response
images for each repository and page, and finally **"landscape"** is the orientation.

### Request to search only in one repository

```php
// Search in pexels repository
$request = ImgFinder\Request::set('nature', 'pexels');
// same as:
$request = ImgFinder\Request::set('nature', 'pexels', 1, 10, 'landscape');
```

### Search

Finally you only need to perform the search.

```php
Expand Down

0 comments on commit 9dd3624

Please sign in to comment.