pronamic/wp-file-header
Composer 安装命令:
composer require pronamic/wp-file-header
包简介
A library that makes the management of WordPress file headers easier.
README 文档
README
Many WordPress plugins contain bash scripts with sed and awk commands to update WordPress file headers. Because sed and awk commands are difficult to read and can be error prone we have developed this library. This library makes it easy to read and/or edit WordPress file headers in for example plugin.php, style.css or readme.txt.
Table of contents
Getting Started
Installation
To start documenting your WordPress filters and actions, require Pronamic WordPress Documentor in Composer:
composer require pronamic/wp-file-header --dev
Command Line Usage
Examples
vendor/bin/pronamic-wp-file-header get Version plugin.php
vendor/bin/pronamic-wp-file-header get 'Stable tag' readme.txt
vendor/bin/pronamic-wp-file-header get Version style.css
vendor/bin/pronamic-wp-file-header set Version 1.0.0 plugin.php
vendor/bin/pronamic-wp-file-header set 'Stable tag' 4.3 readme.txt
vendor/bin/pronamic-wp-file-header set Version 1.3 style.css
Alternatives
Here is a list of alternatives that we found. However, none of these satisfied our requirements.
If you know other similar projects, feel free to edit this section!
Links
- https://codex.wordpress.org/File_Header
- https://codex.wordpress.org/File_Header_API
- https://developer.wordpress.org/plugins/plugin-basics/header-requirements/#header-fields
- https://developer.wordpress.org/plugins/wordpress-org/how-your-readme-txt-works/
- https://developer.wordpress.org/themes/basics/main-stylesheet-style-css/
- https://docs.npmjs.com/cli/v7/commands/npm-pkg
- https://developer.wordpress.org/reference/functions/get_plugin_data/
- https://developer.wordpress.org/reference/functions/get_file_data/
- https://github.com/wp-cli/i18n-command/blob/v2.4.0/src/FileDataExtractor.php
统计信息
- 总下载量: 39
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2022-09-28