Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what can Phing do that Ant can't?

Tags:

php

ant

phing

I'm doing PHP development and I'm thinking of using one of these. I have both PHP and Java installed on my machine. In theory I could use any of the two.

What are the compelling arguments to pick Phing over Ant?

like image 453
Michael Ekoka Avatar asked Mar 23 '10 19:03

Michael Ekoka


2 Answers

The greatest argument I have in favor of Phing is that it's fully developed in PHP ; which means, at least :

  • You can debug it / submit patches if you want
  • You can develop tasks in PHP
    • including tasks which are specific to your project
    • that can use stuff from your project (I've written a couple of tasks that use functions of Drupal, in a drupal-based project)
    • And, if you are working on a PHP project, your team probably knows PHP well -- while they might not know Java
  • No need to install Java on your servers
like image 170
Pascal MARTIN Avatar answered Nov 18 '22 15:11

Pascal MARTIN


The main argument (for me) for using Phing when doing PHP development is

  • staying inside the PHP Ecosystem.
  • When using Phing on shared hosts, you can be sure it works when PHP works.
  • And you can easily extend Phing with your own task in PHP.
  • And since it's a PHP tool you will sometimes find it in other applications as well.
like image 9
Gordon Avatar answered Nov 18 '22 15:11

Gordon