承接 tebros/laravel-cloudflare 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

tebros/laravel-cloudflare

Composer 安装命令:

composer require tebros/laravel-cloudflare

包简介

Laravel framework Service Provider to automatic loading IP ranges of Cloudflare trust proxies.

README 文档

README

The package is developed to provide Cloudflare trust proxies support for Laravel Framework requests. List of IP ranges used by Cloudflare can be found here: (https://www.cloudflare.com/ips/).

Installation

I. Install composer package using command:

composer install tebros/laravel-cloudflare

II. Run artisan command to load fresh IPs from Cloudflare:

php artisan cloudflare:reload

Available commands

This package will not load Cloudflare IPs automatically. To do this you can use two registered commands:

  • cloudflare:reload - this command loads list of current Cloudflare Proxy IPs and store in application cache forever,
  • cloudflare:view - this command show list of loaded IPs from Cloudflare.

Automatic reloading

If you want automatic refreshing of Cloudflare IP ranges you can schedule cloudflare:reload command in your app. To do this open app/Console/Kernel.php and modify schedule function like this:

/**
 * Define the application's command schedule.
 *
 * @param \Illuminate\Console\Scheduling\Schedule $schedule
 * @return void
 */
protected function schedule(Schedule $schedule)
{
    $schedule->command('cloudflare:reload')
        ->daily();
}

统计信息

  • 总下载量: 93
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-09-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固