delboy1978uk/bone-http 问题修复 & 功能扩展

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

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

delboy1978uk/bone-http

最新稳定版本:v2.10.0

Composer 安装命令:

composer require delboy1978uk/bone-http

包简介

HTTP package for Bone Framework

README 文档

README

Latest Stable Version Total Downloads Latest Unstable Version License
build status Code Coverage Scrutinizer Code Quality

Http Middleware stack and HAL middleware for Bone Framework.

installation

This is a core package of Bone Framework. It is installed by default.

usage

middleware stack

To add application wide middleware that will run pre-routing, just add your middleware class into your config/middleware.php file. For instance, to use the delboy1978uk/bone-firewall middleware:

<?php

use Bone\Firewall\RouteFirewall;

return [
    'stack' => [
        RouteFirewall::class,
    ],
];

You can add middleware of course to the router's stack, either on a group of routes or an individual route.

bundled middleware

This package comes with two middleware classes for representing HAL links for an API. For a single entity, you can use the Bone\Http\Middleware\HalEntity, and for an array you can use the Bone\Http\Middleware\HalCollection.

adding your own middlware to a package

If your package class implements Bone\Http\MiddlewareRegistrationInterface you can return an array of middlewares and it will be added by the Bone Application to the container

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: HTML

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-03-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固