Linux command
phing 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Run default target
phing
Run specific target
phing [target]
Use custom build file
phing -f [build.xml] [target]
List available targets
phing -l
Set a property value
phing -D[name]=[value] [target]
Run with verbose output
phing -verbose [target]
Run in debug mode
phing -debug [target]
Specify a logger
phing -logger phing.listener.DefaultLogger [target]
说明
phing (PHing Is Not GNU make) is a PHP project build tool based on Apache Ant. It uses XML build files to define targets and tasks for automating PHP project workflows such as compilation, testing, packaging, and deployment. Phing provides a rich set of built-in tasks for file operations, PHP-specific tasks (PHPUnit, PHP_CodeSniffer, phpDocumentor), version control integration, and archive creation. Custom tasks can be written in PHP.
参数
- -f _FILE_
- Use the specified build file instead of the default build.xml.
- -l
- List available targets in the build file.
- -D_PROP_=_VALUE_
- Set a build property to a given value, overriding the build file.
- -verbose
- Produce verbose output for debugging.
- -debug
- Produce debug-level output.
- -q, -quiet
- Suppress most output, only show errors.
- -logger _CLASS_
- Specify a custom logger class.
- -logfile _FILE_
- Write output to a log file.
- -find _FILE_
- Search parent directories for the build file.
FAQ
What is the phing command used for?
phing (PHing Is Not GNU make) is a PHP project build tool based on Apache Ant. It uses XML build files to define targets and tasks for automating PHP project workflows such as compilation, testing, packaging, and deployment. Phing provides a rich set of built-in tasks for file operations, PHP-specific tasks (PHPUnit, PHP_CodeSniffer, phpDocumentor), version control integration, and archive creation. Custom tasks can be written in PHP.
How do I run a basic phing example?
Run `phing` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -f _FILE_ do in phing?
Use the specified build file instead of the default build.xml.