dot-env-it / signature
Customizable host-based branding for Laravel
Requires
- php: ^8.2
- illuminate/support: ^10.0|^11.0|^12.0|^13.0
This package is auto-updated.
Last update: 2026-05-16 05:37:33 UTC
README
Signature is a lightweight Laravel package that allows you to inject developer credits, company branding, and contact information into your application's HTTP headers, HTML source code, and a virtual humans.txt fileāall based on the current request host.
Features
- Dynamic Branding: Different signatures for different domains/subdomains using wildcards (e.g.,
dev.*vs*). - Zero-File
humans.txt: Automatically generates ahumans.txtroute without cluttering yourpublic/folder. - Stealth Headers: Adds custom
X-Developed-Byheaders to every response. - HTML Injection: Appends a clean developer credit comment to the bottom of your HTML source.
- Fully Configurable: Easily enable/disable features via
.envor the published config file.
Installation
You can install the package via composer:
composer require dot-env-it/signature
The service provider will automatically register itself.
Publish Configuration
Publish the config file to customize your branding:
php artisan vendor:publish --tag="signature-config"
Configuration
After publishing, you can manage your default signature in your .env file:
SIGNATURE_ENABLED=true SIGNATURE_NAME="Jagdish Patel" SIGNATURE_COMPANY="Dot Env IT" SIGNATURE_URL="https://github.com/dot-env-it" SIGNATURE_EMAIL="jagdish.j.ptl@gmail.com" SIGNATURE_HEADER="powered-by-dot-env-it"
Advanced Host Matching
In config/signature.php, you can define specific branding for different environments or tenants:
'hosts' => [ 'staging.*' => [ 'name' => 'QA Team', 'header' => 'staging-environment', ], 'admin.*' => [ 'show_signature' => false, // Hide signature on admin subdomains ], ],
Usage
1. HTTP Headers
Once installed, all web responses will include:
X-Developed-By: powered-by-dot-env-it (Customizable in config).
2. HTML Source
At the bottom of your rendered HTML, you will see():
<!-- Developed by: Jagdish Patel | dot-env-it | https://github.com/dot-env-it | jagdish.j.ptl@gmail.com -->
3. Humans.txt
Visit your-site.test/humans.txt to see your machine-readable developer credits.
Security
If you discover any security-related issues, please email jagdish.j.ptl@gmail.com instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.