dot-env-it/signature
Composer 安装命令:
composer require dot-env-it/signature
包简介
Customizable host-based branding for Laravel
README 文档
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.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-05-15