PHPackages                             setbased/phing-extensions - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. setbased/phing-extensions

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

setbased/phing-extensions
=========================

A collection of Phing extensions

3.3.0(11mo ago)49.7k1[1 PRs](https://github.com/SetBased/phing-extensions/pulls)4MITPHPPHP &gt;=8.3

Since Jan 15Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/SetBased/phing-extensions)[ Packagist](https://packagist.org/packages/setbased/phing-extensions)[ RSS](/packages/setbased-phing-extensions/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (2)Versions (13)Used By (4)

Phing Extensions
================

[](#phing-extensions)

A set of Phing extensions.

[![Gitter](https://camo.githubusercontent.com/6131713e539951eb33f7854e49c1548cc2db1ec2e3f5f9fe5a4deeecac16ebbf/68747470733a2f2f6261646765732e6769747465722e696d2f53657442617365642f7068696e672d657874656e73696f6e732e737667)](https://gitter.im/SetBased/phing-extensions?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)[![License](https://camo.githubusercontent.com/b3b97b204a0915d9adb5a487762eb1597c391b782ad0bba70b90efd13fd8fae0/68747470733a2f2f706f7365722e707567782e6f72672f73657462617365642f7068696e672d657874656e73696f6e732f6c6963656e7365)](https://packagist.org/packages/setbased/phing-extensions)[![Latest Stable Version](https://camo.githubusercontent.com/fe7a8045af7a8f716755ac9cdca7c6a9d1be30bc7ac7384af9be96c5076d6a3e/68747470733a2f2f706f7365722e707567782e6f72672f73657462617365642f7068696e672d657874656e73696f6e732f762f737461626c65)](https://packagist.org/packages/setbased/phing-extensions)

Overview
========

[](#overview)

This collection of Phing extensions provides:

- BumpBuildNumberTask
- LastCommitTimeTask
- ReadSemanticVersionTask
- RemoveEmptyDirectoriesTask
- SetDirectoryMTimeTask

BumpBuildNumberTask
-------------------

[](#bumpbuildnumbertask)

BumpBuildNumberTask bumps a build number to the next build number. The build number is published under supplied property for further usage in the Phing build script.

#### Parameters

[](#parameters)

NameTypeDescriptionDefaultRequiredFilestringFilename for storing the build number.NoHaltOnErrorboolIf true the build fails on errors, otherwise this task generates error events.TrueNoBuildNumberPropertystringThe name of the property for publishing the build number.No#### Example

[](#example)

```

```

LastCommitTimeTask
------------------

[](#lastcommittimetask)

LastCommitTimeTask sets the modification time of files to the last commit time in Git.

#### Parameters

[](#parameters-1)

NameTypeDescriptionDefaultRequiredDirstringThe directory were under which the sources are located. Typically the build directory.YesHaltOnErrorboolIf true the build fails on errors, otherwise this task generates error events.TrueNo#### Example

[](#example-1)

```

```

ReadSemanticVersionTask
-----------------------

[](#readsemanticversiontask)

ReadSemanticVersionTask asks the user for [Semantic version](http://semver.org/) and validates the given input is a valid [Semantic version](http://semver.org/). The version and its parts are published under supplied properties for further usage in the Phing build script.

#### Parameters

[](#parameters-2)

NameTypeDescriptionDefaultRequiredFilestringFilename for storing the entered SemanticVersion.NoHaltOnErrorboolIf true the build fails on errors, otherwise this task generates error events.TrueNoVersionPropertystringThe name of the property for publishing the version (e.g. 1.2.3-alpha.1).NoReleasePropertystringThe name of the property for publishing the major, minor, and patch version (e.g. 1.2.3).NoMajorPropertystringThe name of the property for publishing the major version (e.g. 1).NoMinorPropertystringThe name of the property for publishing the minor version (e.g. 2).NoPatchPropertystringThe name of the property for publishing the patch version (e.g. 3).NoPreReleasePropertystringThe name of the property for publishing the pre-release version (e.g. alpha.1).No#### Example

[](#example-2)

```

```

RemoveEmptyDirectoriesTask
--------------------------

[](#removeemptydirectoriestask)

RemoveEmptyDirectoriesTask removes recursively empty directories under a parent directory.

#### Parameters

[](#parameters-3)

NameTypeDescriptionDefaultRequiredDirstringThe parent directory under which empty directories must be removed.TrueRemoveParentboolIf true the parent directory is removed as well if it is empty.FalseNoHaltOnErrorboolIf true the build fails on errors, otherwise this task generates error events.TrueNo#### Example

[](#example-3)

```

```

SetDirectoryMTimeTask
---------------------

[](#setdirectorymtimetask)

SetDirectoryMTimeTask sets recursively the modification time of directories to the maximum modification time of its entries.

#### Parameters

[](#parameters-4)

NameTypeDescriptionDefaultRequiredDirstringThe parent directory.TrueHaltOnErrorboolIf true the build fails on errors, otherwise this task generates error events.TrueNo#### Example

[](#example-4)

```

```

Installation
============

[](#installation)

We recommend to install setbased/phing via [Composer](https://getcomposer.org/):

```
{
  "require-dev": {
    "setbased/phing-extensions": "2.*"
  }
}
```

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance51

Moderate activity, may be stable

Popularity27

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity85

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 79.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~345 days

Recently: every ~388 days

Total

12

Last Release

344d ago

Major Versions

1.1.3 → 2.0.02016-02-02

2.1.0 → 3.0.02021-03-07

PHP version history (6 changes)1.0.0PHP &gt;=5.3.0

2.0.1PHP &gt;=5.4.0

2.1.0PHP &gt;=7.0.0

3.0.0PHP &gt;=7.4

3.1.0PHP &gt;=8.1

3.3.0PHP &gt;=8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/67edc824131704a5270570c8bba7fc52986f3e70a0389aca6b13ea87ca4d9710?d=identicon)[Paul Water](/maintainers/Paul%20Water)

---

Top Contributors

[![prwater](https://avatars.githubusercontent.com/u/17372665?v=4)](https://github.com/prwater "prwater (91 commits)")[![DmitriyNagorniy](https://avatars.githubusercontent.com/u/49651476?v=4)](https://github.com/DmitriyNagorniy "DmitriyNagorniy (12 commits)")[![zuban-vo](https://avatars.githubusercontent.com/u/10350442?v=4)](https://github.com/zuban-vo "zuban-vo (11 commits)")

---

Tags

extensionsphing

### Embed Badge

![Health badge](/badges/setbased-phing-extensions/health.svg)

```
[![Health](https://phpackages.com/badges/setbased-phing-extensions/health.svg)](https://phpackages.com/packages/setbased-phing-extensions)
```

###  Alternatives

[phing/phing

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

1.2k21.7M876](/packages/phing-phing)[reactivex/rxphp

Reactive extensions for php.

1.7k3.2M49](/packages/reactivex-rxphp)[flarum/extension-manager

An extension manager to install, update and remove extension packages from the interface (Wrapper around composer).

12211.5k](/packages/flarum-extension-manager)[abm/sassphp

PHP bindings to libsass - fast, native Sass parsing in PHP!

559.2k](/packages/abm-sassphp)[bnomei/autoloader-for-kirby

Helper to automatically load various Kirby extensions in a plugin

185.7k2](/packages/bnomei-autoloader-for-kirby)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
