bwibrew /
让特里·普拉切特爵士永远活在电报中。
1.2.1
2020-04-28 18:50 UTC
Requires
- php: >=5.6
- illuminate/http: ^5.0 || ^6.0 || ^7.0
Requires (Dev)
- codacy/coverage: ^1.4.3
- orchestra/testbench: ^3.0 || ^4.0 || ^5.0
- phpmd/phpmd: ^2.8.2
- phpunit/phpunit: ^5.7.27 || ^6.5.14 || ^7.1 || ^8.0 || ^9.0
- squizlabs/php_codesniffer: ^3.5.5
README
"一个人只要名字还在被人提起,他就还没有死去。" —— 《邮差总有一天会来》,第四章序言
在圆桌王国里有一种类似...互联网的东西。这是一系列横跨世界的信号塔,以与我们世界旧电报系统相似的方式传输信息。
这个中间件包借鉴了Reddit 论坛中的想法以及众多做类似事情的包和插件。
这个中间件包将为通过中间件的每个HTTP响应添加头信息 X-Clacks-Overhead: GNU Terry Pratchett
。
安装
通过运行Composer进行安装
composer require bwibrew/laravel-gnu-terry-pratchett
将 GnuPratchettMiddleware
类添加到 app/Http/Kernel.php
文件中的一个中间件属性中。
<?php // app/Http/Kernel.php namespace App\Http; use Illuminate\Foundation\Http\Kernel as HttpKernel; class Kernel extends HttpKernel { protected $middleware = [ // ... \BWibrew\GnuPratchett\GnuPratchettHeader::class, ]; }