DevOps

Phing – PHP build automation tool

Phing is a PHP build automation tool based on the concepts used by Apache Ant. It provides an XML-based system for defining development tasks and their dependencies. Each build file contains targets, which in turn contain operations such as copying files, running tests, processing templates and interacting with external programs. Targets can be executed individually or combined into larger workflows.

Phing includes tasks covering many common PHP development requirements. It can execute PHPUnit tests, produce test reports, perform file transformations and interact with version-control systems. Developers can configure properties to control build behaviour and define alternative targets for different environments. Its task library includes operations for working with SQL databases, generating documentation and carrying out deployment-related actions. Custom task classes allow projects to extend the system when built-in operations are insufficient. Phing can also support interactive input and conditional execution, making it suitable for development processes that involve both automated and user-directed steps.

This is free and open source software.

Key Features

  • XML build files – describes build operations in structured configuration files.
  • Targets – groups tasks into reusable operations.
  • Target dependencies – executes prerequisite targets in the required order.
  • Properties – stores configurable values for use throughout a build.
  • Property files – loads external settings into a project.
  • Conditional execution – controls whether supported targets and tasks run.
  • File operations – copies, moves, renames and deletes files and directories.
  • File sets – selects groups of files using include and exclude patterns.
  • Text transformations – performs token replacement and other substitutions.
  • XSLT processing – transforms XML documents.
  • Template processing – generates files from supported templates.
  • PHPUnit integration – executes PHP unit tests.
  • Test reporting – produces test results and coverage information.
  • Database operations – executes SQL statements against supported databases.
  • Version control – integrates Git, Mercurial and Subversion operations.
  • Documentation generation – supports phpDocumentor and other documentation tools.
  • External commands – runs system commands and scripts.
  • Interactive input – requests user input during supported build operations.
  • Logging – controls the verbosity and formatting of build output.
  • Custom tasks – extends the system using PHP task classes.
  • Task definitions – registers project-specific task implementations.
  • Build file imports – combines reusable definitions from other build files.
  • Error handling – controls responses to task failures.
  • Cross-platform support – runs on Linux, macOS, and Windows.

Website: github.com/phingofficial/phing
Support:
Developer: Michiel Rook, Ken Guest, Siad Ardroumli, Jawira Portugal, Thomas Müller and Blair Cooper
License: GNU Lesser General Public License v3.0


Related Software

Build Systems
CargoRust package manager
gulpToolkit to automate & enhance your workflow
BazelBuild and test your multi-language, multi-platform projects
Apache MavenBuild automation tool used primarily for Java projects
GradleBuild tool with a focus on build automation and support for multi-language
MesonNext-generation build system
sbtExtensible task and dependency tool for Scala projects
CMakeFamily of tools designed to build, test and package software
Buck2Encourages the creation of small, reusable modules
LeiningenAutomating Clojure projects
GruntJavaScript Task Runner
NinjaSmall build system with a focus on speed
MillFast, flexible task runner for JVM-based software projects
xmakeCross-platform build utility based on Lua
SConsSoftware construction tool
PantsScalable build system for monorepos
PHingBuild system based on Apache Ant
PleaseFast cross-language automation for large codebases
Rakemake-like build utility for Ruby
Apache AntTool for automating software build processes
Rebar3Feature-rich project and dependency tool for Erlang applications
CabalCommon Architecture for Building Applications and Libraries
FASTBuildHigh-performance tool with caching and distributed processing
DuneComposable project automation tailored to the OCaml ecosystem
build2Native cross-platform toolchain for C and C++ projects

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted