olssonm / l5-humans
Simple humans.txt routes and views for Laravel.
Installs: 2 068
Dependents: 0
Suggesters: 0
Security: 0
Stars: 8
Watchers: 2
Forks: 1
Open Issues: 1
Requires
- php: ^7.3|^8.0
- illuminate/support: ^6.0|^7.0|^8.0
Requires (Dev)
- orchestra/testbench: ^4.0|^5.0|^6.0
- orchestra/testbench-browser-kit: ^4.0|^5.0|^6.0
- phpunit/phpunit: ^8.0|^9.0
README
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.
Install
Install via composer:
$ composer require olssonm/l5-humans
Publish the view:
$ php artisan vendor:publish --provider="Olssonm\Humans\ServiceProvider"
Or by just typing:
$ php artisan vendor:publish
And selecting Olssonm\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.