• Stars
    star
    1,153
  • Rank 38,901 (Top 0.8 %)
  • Language
    PHP
  • License
    GNU Lesser Genera...
  • Created over 12 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

PHing Is Not GNU make; it's a PHP project build system or build tool based on Apache Ant.

Phing

Phing CI Scrutinizer Code Quality codecov

Thank you for using PHING!

PHing Is Not GNU make; it's a PHP project build system or build tool based on Apache Ant. You can do anything with it that you could do with a traditional build system like GNU make, and its use of simple XML build files and extensible PHP "task" classes make it an easy-to-use and highly flexible build framework.

Features include running PHPUnit unit tests (including test result and coverage reports), file transformations (e.g. token replacement, XSLT transformation, template transformations), file system operations, interactive build support, SQL execution, SCM operations (Git, Subversion and Mercurial), documentation generation (PhpDocumentor, ApiGen) and much, much more.

If you find yourself writing custom scripts to handle the packaging, deploying, or testing of your applications, then we suggest looking at Phing. Pre-packaged with numerous out-of-the-box operation modules (tasks), and an easy-to-use OO model to extend or add your own custom tasks.

For more information and documentation, you can visit our official website at https://www.phing.info/.

Phing 3

Phing 3 is a significant update with some breaking changes compared to Phing 2. For details, please refer to the UPGRADING.md file.

Supported PHP versions

Phing 3.x is compatible with PHP 7.4 and higher.

Installation

  1. Composer

The preferred method to install Phing is through Composer. Add phing/phing to the require-dev or require section of your project's composer.json configuration file, and run 'composer install':

     {
         "require-dev": {
             "phing/phing": "3.0.x-dev"
         }
     }
  1. Phar

Download the Phar archive. The archive can then be executed by running:

     $ php phing-latest.phar
  1. Docker (experimental)

The official Phing Docker image can be found on Docker Hub.

To execute Phing inside a container and execute build.xml located in /home/user, run the following:

     $ docker run --rm -v /home/user:/opt phing/phing:3.0 -f /opt/build.xml
  1. Phing GitHub Action

The official GitHub action phingofficial/phing-github-action is available on GitHub Marketplace.

To Run a Phing Build as an action, you need to setup a .github/workflow/phing.yml workflow file and paste the following snipped:

 name: CI
 on: [ push ]
 jobs:
   build-test:
     runs-on: ubuntu-latest

     steps:
       - uses: actions/checkout@v2
       - name: Phing Build
         uses: phingofficial/[email protected]
         with:
           version: 3.0.0-alpha4
           user-properties: prop=FooBar
           targets: foo
           verbose: true

README for more info and documentation.

Documentation

Phing's documentation can be found at https://www.phing.info/#docs.

For the source of the documentation, go to https://github.com/phingofficial/guide.

Contact

Donations

Developing and maintaining Phing has cost many hours over the years. If you want to show your appreciation, you can use one of the following methods to donate something to the project maintainer, Michiel Rook:

Thank you!

Help us spot & fix bugs

We greatly appreciate it when users report issues or come up with feature requests. However, there are a few guidelines you should observe before submitting a new issue:

  • Make sure the issue has not already been submitted, by searching through the list of (closed) issues.
  • Support and installation questions should be asked on Twitter, Slack or IRC, not filed as issues.
  • Give a good description of the problem, this also includes the necessary steps to reproduce the problem!
  • If you have a solution - please tell us! This doesn't have to be code. We appreciate any snippets, thoughts, ideas, etc that can help us resolve the issue.

Issues can be reported on GitHub.

Pull requests

The best way to submit code to Phing is to make a Pull Request on GitHub. Please help us merge your contribution quickly and keep your pull requests clean and concise: squash commits and don't introduce unnecessary (whitespace) changes.

Phing's source code is formatted according to the PSR-2 standard.

Running the (unit) tests

If you'd like to contribute code to Phing, please make sure you run the tests before submitting your pull request. To successfully run all Phing tests, the following conditions have to be met:

  • PEAR installed, channel "pear.phing.info" discovered
  • Packages "python-docutils" and "subversion" installed
  • php.ini setting "phar.readonly" set to "Off"

Then, perform the following steps (on a clone/fork of Phing):

     $ composer install
     $ cd tests
     $ ../bin/phing

Licensing

This software is licensed under the terms you may find in the file named "LICENSE" in this directory.

Proud to use:

PhpStorm Logo

Contributing

We love contributions!

Thanks to all the people who already contributed!

More Repositories

1

phing-composer-configurator

Composer plugin installer for Phing
PHP
5
star
2

phing-github-action

Run your Phing Build in your Github Actions.
Shell
4
star
3

guide

The Phing user guide
XSLT
3
star
4

task-visualizer

[READ-ONLY] Creates diagrams using build files
PHP
3
star
5

task-jshint

[READ-ONLY] Checks the JavaScript code using JSHint
PHP
1
star
6

task-http

[READ-ONLY] Http tasks
PHP
1
star
7

task-dbdeploy

[READ-ONLY] DbDeploy task
PHP
1
star
8

task-sass

[READ-ONLY] Sass tasks
PHP
1
star
9

task-ssh

[READ-ONLY] Execute commands on a remote host using ssh.
PHP
1
star
10

task-coverage

[READ-ONLY] coverage database tasks which can be used to gather code coverage information for unit tests
PHP
1
star
11

task-archives

[READ-ONLY] Archive related tasks
PHP
1
star
12

task-git

[READ-ONLY] Git related tasks
PHP
1
star
13

task-inifile

[READ-ONLY] Operations on .ini files
PHP
1
star
14

task-aws

[READ-ONLY] Amazon Web Services related tasks
PHP
1
star
15

task-phkpackage

[READ-ONLY] This task runs PHK_Creator.phk to build PHK-package
PHP
1
star
16

task-smarty

[READ-ONLY] A task for generating output by using Smarty.
PHP
1
star
17

task-hg

[READ-ONLY] Mercurial related tasks
PHP
1
star
18

task-ioncube

[READ-ONLY] The Ioncube tasks executes ionCube commands.
PHP
1
star
19

task-zendserverdeploymenttool

[READ-ONLY] Zend Server deployment tasks
PHP
1
star
20

task-phpdoc

[READ-ONLY] This task runs phpDocumentor, a API documentation tool. This project is the result of the merge of the phpDocumentor and DocBlox projects.
PHP
1
star
21

task-analyzers

[READ-ONLY] Static analysis related tasks
PHP
1
star
22

task-jsmin

[READ-ONLY] Task to minify javascript files
PHP
1
star
23

task-svn

[READ-ONLY] Subversion related tasks
PHP
1
star
24

task-ftpdeploy

[READ-ONLY] FtpDeploy task
PHP
1
star
25

task-phpunit

[READ-ONLY] PHPUnit task
PHP
1
star
26

task-apigen

[READ-ONLY] Task for ApiGen, a tool for creating professional API documentation from PHP source code
PHP
1
star
27

task-liquibase

[READ-ONLY] The LiquibaseTask is a generic task for liquibase commands that don't require extra command parameters. You can run commands like updateSQL, validate or updateTestingRollback with this task but not rollbackToDateSQL since it requires a date parameter after the command.
PHP
1
star
28

task-zendcodeanalyser

[READ-ONLY] The ZendCodeAnalyzerTask analyze PHP source files using the Zend Code Analyzer tool that ships with all versions of Zend Studio.
PHP
1
star