Download the PHP package rivalex/laravel-humanstxt without Composer
On this page you can find all versions of the php package rivalex/laravel-humanstxt. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rivalex/laravel-humanstxt
More information about rivalex/laravel-humanstxt
Files in rivalex/laravel-humanstxt
Package laravel-humanstxt
Short Description Simple humans.txt routes and views for Laravel 11
License MIT
Homepage https://github.com/rivalex/laravel-humanstxt
Informations about the package laravel-humanstxt
Laravel 7 Humans.txt
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:
Since Laravel > 5.5 the service provider will be automatically added. You can also add the service provider to your app.php
manually:
Publish the view:
Or by just typing:
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>
:
If you by any chance need to access your humans.txt
via a named route, that's also possible:
Learn more
Learn more about the humans.txt-standard at humanstxt.org.
Testing
or
License
The MIT License (MIT). Please see License File for more information.
© 2021 Marcus Olsson.