承接 jpkleemans/firewall 相关项目开发

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

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

jpkleemans/firewall

Composer 安装命令:

composer require jpkleemans/firewall

包简介

Easy access control for PHP

README 文档

README

License

Easy access control for PHP

This library is currently under development. Things will change. Things will break.

Install

Via Composer

$ composer require jpkleemans/firewall:dev-master

Usage

use Firewall\Adapter\HtaccessAdapter;
use Firewall\Host\IP;

// Create an instance of an adapter that implements the Firewall interface.
$firewall = new HtaccessAdapter('path/to/.htaccess');

// Create an instance of a class that implements the Host interface.
$host = IP::fromString('123.0.0.1');

// Block the host
$firewall->deny($host);

Planned Adapters

  • Htaccess
  • NGINX
  • IIS
  • HHVM
  • lighttpd
  • PSR-7 Middleware

Testing

$ phpspec run

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-09-28