Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/daniellienert/assetsource-pexels

Neos Asset Source for https://www.pexels.com/
https://github.com/daniellienert/assetsource-pexels

assetsource neoscms pexels

Last synced: 3 months ago
JSON representation

Neos Asset Source for https://www.pexels.com/

Awesome Lists containing this project

README

        

[![Latest Stable Version](https://poser.pugx.org/dl/assetsource-pexels/v/stable)](https://packagist.org/packages/dl/assetsource-pexels) [![Total Downloads](https://poser.pugx.org/dl/assetsource-pexels/downloads)](https://packagist.org/packages/dl/assetsource-pexels) [![License](https://poser.pugx.org/dl/assetsource-pexels/license)](https://packagist.org/packages/dl/assetsource-pexels)

![Images provided by Pexels](https://user-images.githubusercontent.com/642226/39978717-6c848b32-5742-11e8-82bb-d5e325e29c6d.png)

# Pexels Asset Source
This package provides a Neos Asset Source to access the [Pexels](https://www.pexels.com) image database.

## How to use it
1. Install the package via composer `composer require dl/assetsource-pexels`
2. Request an API key from Pexels https://www.pexels.com/api/new/
3. Configure the API key in the settings:

```yaml
Neos:
Media:
assetSources:
pexels:
assetSourceOptions:
accessKey: your-access-key
```

![Neos Media Browser with Pexels Data Source selected](https://user-images.githubusercontent.com/642226/87046128-0d288c00-c1f9-11ea-9d82-b46a27affff7.png)

## AssetsourceOptions

**accessKey**

The access key to the Pexels.com API

**proxyUrl**

If a proxy is needed to access pexels.com, configure the proxy here.

**copyRightNoticeTemplate**

Eel expression to compile the copyright notice using available data:

* *user.name* The authors name

**defaultSearchTerm**

If set, this search is shown instead of the curated photos when no search term is defined.