承接 rivalex/laravel-humanstxt 相关项目开发

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

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

rivalex/laravel-humanstxt

最新稳定版本:v11.0

Composer 安装命令:

composer require rivalex/laravel-humanstxt

包简介

Simple humans.txt routes and views for Laravel 10

README 文档

README

Latest Version on Packagist Software License

laravel-humanstxt

Thanks to Marcus Olsson for this great solution

Stop polluting your customers footers with a "made by my agency so I put a cheap link in the footer"-link – that footer is your customers property. Instead, if you want credit – add a simple humans.txt.

All this package does is to add a route for /humans.txt and the associated view. "Why would I ever need a package for a simple thing like this?" you wonder? Well, so did I until I had done it over 20-30 times – it just saves a few minutes which adds up over time.

Version Compatibility

See COMPATABILITY.md for full a full compatability chart. Else Composer should be able to figure it out by itself.

Install

Install via composer:

$ composer require rivalex/laravel-humanstxt

Since Laravel > 5.5 the service provider will be automatically added. You can also add the service provider to your app.php manually:

'providers' => [
    Rivalex\Humans\ServiceProvider::class
]

Publish the view:

$ php artisan vendor:publish --provider="Rivalex\Humans\ServiceProvider"

Or by just typing:

$ php artisan vendor:publish

And selecting Rivalex\Humans\ServiceProvider.

Make it your own

The view is located in your views-folder /humans/humans.blade.php.

It's also valid to put this in your <head>:

<link type="text/plain" rel="author" href="http://domain.com/humans.txt" />

If you by any chance need to access your humans.txt via a named route, that's also possible:

<link type="text/plain" rel="author" href="{{ route('humans.txt') }}" />

Learn more

Learn more about the humans.txt-standard at humanstxt.org.

Testing

$ composer test

or

$ phpunit

License

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

© 2021 Marcus Olsson.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-07-31