prestashop/header-stamp 问题修复 & 功能扩展

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

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

prestashop/header-stamp

最新稳定版本:v2.6

Composer 安装命令:

composer require prestashop/header-stamp

包简介

Rewrite your file headers to add the license or to make them up-to-date

README 文档

README

PHP tests

Update the headers of the current folder. This tools extracts the command originally available in the PrestaShop Core.

Installation

This projet is downloadable via Composer, the PHP Package Manager. We recommend having it in the require-dev section of your dependancies as it is not needed on production environments.

composer require --dev prestashop/header-stamp

Usage

If installed via Composer, the application is available in its binaries folder

php vendor/bin/header-stamp

The default behavior is to apply the OSL license in every compatible file found in the current folder.

⚠️ Header Stamp will scan and process all your compatible files, including node_modules or vendor if you do not specify the target. Use --exclude to avoid modifying dependency files.

php vendor/bin/header-stamp --exclude=vendor,node_modules

Available options:

--license=LICENSE        License file to apply [default: "assets/osl3.txt"]
--exclude=EXCLUDE        Comma-separated list of folders and files to exclude from the update [default: ""]
--extensions=EXTENSIONS  Comma-separated list of file extensions to update [default: "php,js,ts,css,scss,tpl,html.twig,json,vue"]
--target=PATH            Folder to work in [default: Current directory]
--dry-run                Dry-run mode does not modify files
--display-report         Whether or not to display a report

Development

Install dependencies with composer. Two CI tools are configured for this project: php-cs-fixer and phpstan

composer install
php vendor/bin/php-cs-fixer fix --no-interaction --dry-run --diff
php vendor/bin/phpstan analyse --configuration=tests/phpstan/phpstan.neon

Before submitting changes to the projects, tests can be run with:

php tests/integration/runner/run.php

统计信息

  • 总下载量: 1.88M
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 1
  • 依赖项目数: 3
  • 推荐数: 2

GitHub 信息

  • Stars: 6
  • Watchers: 41
  • Forks: 10
  • 开发语言: PHP

其他信息

  • 授权协议: AFL-3.0
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固