PHPackages                             ginsen/img-finder - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. ginsen/img-finder

ActiveLibrary[Caching](/categories/caching)

ginsen/img-finder
=================

App to find images in several public repositories

v4.0.1(3y ago)1541MITPHPPHP &gt;=8.0

Since Dec 11Pushed 3y ago2 watchersCompare

[ Source](https://github.com/ginsen/img-finder)[ Packagist](https://packagist.org/packages/ginsen/img-finder)[ RSS](/packages/ginsen-img-finder/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (11)Versions (13)Used By (0)

img-finder
==========

[](#img-finder)

[![Latest Stable Version](https://camo.githubusercontent.com/ff0f405c7d77df580bef5785f3ba1b490b7fd46a0c3b7238f895442005b83322/68747470733a2f2f706f7365722e707567782e6f72672f67696e73656e2f696d672d66696e6465722f762f737461626c652e737667)](https://packagist.org/packages/ginsen/img-finder)[![Latest Unstable Version](https://camo.githubusercontent.com/ea7830395e2251c0d0204a68a27b65ceaeca18ebc8533780139ed75e65e8bf30/68747470733a2f2f706f7365722e707567782e6f72672f67696e73656e2f696d672d66696e6465722f762f756e737461626c652e737667)](https://packagist.org/packages/ginsen/img-finder)[![License](https://camo.githubusercontent.com/c686320a24fdc01b2c4ba31ce82f43366b2070409ebdaf720d3cdb9be87c7149/68747470733a2f2f706f7365722e707567782e6f72672f67696e73656e2f696d672d66696e6465722f6c6963656e73652e737667)](https://packagist.org/packages/ginsen/img-finder)

PHP Library to find images in several public repositories

Install
-------

[](#install)

```
$ composer require ginsen/img-finder
```

Config file
-----------

[](#config-file)

### With YAML format

[](#with-yaml-format)

Create a configuration file in yaml format, `img-finder.yml`, with the following content:

```
img-finder:
    repositories:
        ImgFinder\Repository\PexelsRepository:
            params:
                authorization: your-authorization  # Visit https://www.pexels.com/es-es/api/new/

        ImgFinder\Repository\UnsplashRepository:
            params:
                authorization: your-authorization  # Visit https://unsplash.com/developers

    # Optional
    translators:
        ImgFinder\Translator\DictionaryYaml:
            no_cache: true
            params:
                filename: img-finder/doc/examples/yaml_dictionary.yml

        ImgFinder\Translator\GoogleTranslate:
            params:
                apikey: your-credentials
                from: es
                to: en
```

### With PHP format

[](#with-php-format)

Create config file with PHP is very similar at YAML, create php file format, as below.

```
