Is it possible to use gradle for a PHP project?

I’d like to use gradle for a PHP project. Knowing the flexibility gradle provides, I was wondering if someone has ever done something like that.


Really depends on what you want to do. I’ve used Gradle to manage semi dynamic sites before and many other non Java project types of things before.

It’s hard to answer definitively because I don’t know what you need to do, but I’ll go out on a limb and say “yes”.


Thanks for the response.

Just the basic stuff:

  • packaging the artifact into a zip file - running php unit - bundle + minify of css and js

I’ve done something like that with maven and it works, so I reckon it could work with Gradle too.

Yeah definitely.

Eric Wendelin has some plugins for dealing with JS and CSS.

Hi Luke,

My need is almost similar to @Jose Maria. As you mentions in your answer for @Eric Wendelin work for JS and Css.

But How can we

=> packaging the project dir into a zip file

=> or git repository Integration.

=> running php unit