trilobit-gmbh / contao-pexels-bundle
1.0.2
2023-11-20 15:59 UTC
Requires
- ext-curl: *
- contao/core-bundle: ^4.4 || ^4.9
Requires (Dev)
- contao/manager-plugin: ^2.0
- friendsofphp/php-cs-fixer: ^2.1
Suggests
- trilobit-gmbh/contao-worldofimages-bundle: for Contao 4.9, 4.13, 5.x and support for Flickr, Pexels, Pixabay and Unsplash
Conflicts
- contao/manager-plugin: <2.0 || >=3.0
README
使用 Pexels 扩展,您可以通过 Contao 的文件管理器从免费图片库 Pexels 下载图片或照片。为了使用 Pexels,您需要申请一个 API 密钥,您可以在注册 Pexels 后申请。您还可以在用户管理中设置 Pexels 搜索的预设。
使用 Pexels 扩展,您可以通过 Contao 的文件管理器从免费图片库 Pexels 下载图片或照片。为了使用 Pexels,您需要在 Pexels 网站注册后请求 API 密钥。您还可以在用户管理中设置 Pexels 搜索的预设。
后台截图
安装
通过 composer 安装扩展:trilobit-gmbh/contao-pexels-bundle。
并将以下代码(包含从 Pexels 网站获取的 API 密钥)添加到您的项目的 config.yml 文件中。
contao:
localconfig:
pexelsApiKey: 'Your API-Key'
pexelsImageSource: 'large2x'
兼容性
- Contao 版本 ~4.4