dot-env-it/signature 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dot-env-it/signature

Composer 安装命令:

composer require dot-env-it/signature

包简介

Customizable host-based branding for Laravel

README 文档

README

Signature

Latest Stable Version Total Downloads License

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 a humans.txt route without cluttering your public/ folder.
  • Stealth Headers: Adds custom X-Developed-By headers 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 .env or 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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-05-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固