lukasmu/laravel-rickroll
Composer 安装命令:
composer require lukasmu/laravel-rickroll
包简介
Rickroll people trying to break into your Laravel site
README 文档
README
Sometimes you just gotta rickroll people who attempt to mess with your website. This lightweight package adds some redirect routes to your Laravel website in order to redirect these people to Rick Astley's Never Gonna Give You Up.
Credit to Liam Hammett for his tweet (7k+ likes) that inspired this package!
Installation
You can install the package via composer:
composer require lukasmu/laravel-rickroll
Usage
Just install the package. That's it. By default the following paths will be redirected to Never Gonna Give You Up:
- .env
- .git
- wp-admin
- wp-login
- wp-login.php
- composer.lock
- yarn.lock
- package-lock.json
- xmlrpc.php
- typo3
- phpinfo.php
- .htaccess
Do you know any well-known paths that people might use to mess with your website? Add them in the config file, and submit a pull request, thanks!
Customization
You can publish the config file with:
php artisan vendor:publish --provider="LukasMu\Rickroll\RickrollServiceProvider" --tag="config"
Feel free to edit the published config file in order to customize the Rickroll behaviour.
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Contributions are welcome and will be fully credited. Feedback is very much appreciated as well.
Please see CONTRIBUTING for details.
Testing
The package includes tests which can be run by calling:
composer test
Security
If you discover any security related issues, please email hello@lukasmu.com instead of using the issue tracker.
Credits
This package has been derived from Felix Dorn's and Mitchell Johnson's packages but has been greatly simplified and properly versioned.
License
The MIT License (MIT). Please see LICENSE for more information.
lukasmu/laravel-rickroll 适用场景与选型建议
lukasmu/laravel-rickroll 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 452 次下载、GitHub Stars 达 0, 最近一次更新时间为 2021 年 01 月 28 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「rickroll」 「lukasmu」 「rick」 「astley」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 lukasmu/laravel-rickroll 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 lukasmu/laravel-rickroll 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 lukasmu/laravel-rickroll 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Alfabank REST API integration
Use Glide with ease directly in Laravel views
Kirby Rickroll
Laravel package for Accurate Online API integration.
Shared RCX Laravel DataTables UI and configuration helpers.
统计信息
- 总下载量: 452
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-01-28
