olssonm / l5-humans by olssonm

Simple humans.txt routes and views for Laravel 5.
2,018
8
2
Package Data
Maintainer Username: olssonm
Maintainer Contact: contact@marcusolsson.me (Marcus Olsson)
Package Create Date: 2016-06-30
Package Last Update: 2023-09-11
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-04-30 15:06:03
Package Statistics
Total Downloads: 2,018
Monthly Downloads: 20
Daily Downloads: 0
Total Stars: 8
Total Watchers: 2
Total Forks: 1
Total Open Issues: 1

Laravel 5 Humans.txt

Latest Version on Packagist Software License Build Status

l5-humans

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 olssonm/l5-humans

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

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

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.

© 2018 Marcus Olsson.