承接 achievers/cloudfront-ip-alert 相关项目开发

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

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

achievers/cloudfront-ip-alert

最新稳定版本:0.3

Composer 安装命令:

composer require achievers/cloudfront-ip-alert

包简介

Display updated Amazon CloudFront IP addresses.

README 文档

README

Sends an email when Amazon CloudFront IP addresses are updated

======= Basic useful feature list

  • Lightweight Library
  • Checks Amazon CloudFront IP and alert user.
  • Can easily integrate with email notification or 3rd party notification.

Description

Installation

The easiest way to install is via Composer.

{
    "require": {
        "achievers/cloudfront-ip-alert": "0.*"
    }
}

Usage

Take a look at index.php for an example. Here is a quick start:

require_once('CloudFront/IPWhiteList.php');

use Achievers\CloudFront\IPWhiteList;

$cloudFrontIP = new IPWhiteList(); // Initialize a class
$listOfIPs = $cloudFrontIP->getLastCloudFrontFile(); //Get the latest CloudFront file
$data = $cloudFrontIP->checkIP($listOfIPs); //Return a list of changes

Config

You can pass in configuration for customization cloudFrontType : The CloudFront file from Amazon contains IP of different services. Default is "CLOUDFRONT".

cloudFrontLastFile : The is the full file path where we will store the most recent file as. ie. '/tmp/ip-ranges-old.json'.

cloudFrontUrl : The URL to Amazon CloudFront file. Default 'https://ip-ranges.amazonaws.com/ip-ranges.json'

License

MIT License

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 5
  • Forks: 2
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-01-31