happyr/cloud-flare-bundle
Composer 安装命令:
composer require happyr/cloud-flare-bundle
包简介
This Symfony2 bundle lets you talk to the CloudFlare client API
README 文档
README
This Symfony2 bundle lets you talk to the CloudFlare client API. For API reference please visit the CloudFlare website.
Installation and Configuration
Install it like any other bundle with composer:
composer require happyr/cloud-flare-bundle
Once install and activated in the AppKernel.php you have to add your CloudFlare email and token in the configuration.
# app/config/config.yml happyr_cloud_flare: email: tobias@happyr.com token: abcdefghijklmnop
Usage example
Here below is an example how you clear the cache for the http://my-domain.com/static/style.css url.
$cloudFlare=$this->container->get('happyr.cloudflare.service.cloudflare'); $cloudFlare->api('zone_file_purge', array('z'=>'my-domain.com', 'url'=>'http://my-domain.com/static/style.css'));
统计信息
- 总下载量: 18.62k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-06-25