happyr/cloud-flare-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 5
  • Watchers: 2
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-06-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固