定制 indigophp/http-adapter-auth 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

indigophp/http-adapter-auth

Composer 安装命令:

composer require indigophp/http-adapter-auth

包简介

Easily authenticate requests in Ivory Http Adapter

README 文档

README

DEPRECATED in favor of https://github.com/php-http/authentication

Ivory Http Adapter Authentication plugin

Latest Version Software License Build Status Code Coverage Quality Score HHVM Status Total Downloads

Easily authenticate requests in Ivory Http Adapter.

Install

Via Composer

$ composer require indigophp/http-adapter-auth

Usage

  1. Create your custom authentication implementing Indigo\HttpAdapter\Authentication interface (BasicAuth is provided by the package)
  2. Wrap your HTTP Adapter of choice into an Indigo\HttpAdapter\AuthenticatingHttpAdapter
  3. Enjoy!
use Indigo\HttpAdapter\AuthenticatingHttpAdapter;
use Indigo\HttpAdapter\Authentication\BasicAuth;
use Ivory\HttpAdapter\HttpAdapterFactory;

$httpAdapter = HttpAdapterFactory::guess();
$authentication = new BasicAuth('john.doe', 'secret');

$httpAdapter = new AuthenticatingHttpAdapter($httpAdapter, $authentication);

Testing

$ phpspec run

Looking forward to PHP 7

PHP 7 will introduce scalar type hints, thus for the long run it makes no sense to write checks for scalar types. Until PHP 7 is not released (and became the most commonly used version) beberlei/assert is used for type checking. Any further checks should be done in the code.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-04-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固