astina / fotolia-bundle

此包已被废弃,不再维护。未建议替代包。

Fotolia-API 集成 Symfony Bundle

0.1.0 2013-05-17 20:32 UTC

This package is not auto-updated.

Last update: 2022-07-15 10:56:40 UTC


README

PHP 的 Fotolia API Kit 集成的 Symfony 2 Bundle。

https://github.com/Fotolia/Fotolia-API

安装

步骤 1

在您的 composer.json 中添加 astina/fotolia-bundle

{
    "require": {
        "astina/fotolia-bundle": "dev-master"
    }
}

并安装它

$ php composer.phar update astina/fotolia-bundle

步骤 2: 启用 Bundle

在内核中启用 Bundle

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Astina\Bundle\FotoliaBundle\AstinaFotoliaBundle(),
        // ...
    );
}

步骤 3

配置客户端服务

astina_fotolia:
    api_key: your_fotolia_api_key
    caching: true|false # whether to cache api requests