PHPackages                             ananta/apcommon - 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. ananta/apcommon

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

ananta/apcommon
===============

A set of commonly used php functions.

v1.0.0(9y ago)024MITPHPPHP &gt;=5.0.0

Since Dec 20Pushed 9y ago1 watchersCompare

[ Source](https://github.com/Anan5a/apcommon)[ Packagist](https://packagist.org/packages/ananta/apcommon)[ RSS](/packages/ananta-apcommon/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

AP-Common
=========

[](#ap-common)

A class to make your custom PHP development faster.

Example
-------

[](#example)

```
require_once "path/to/APCommon.php";
$apcmn=new APCommon;
echo $apcmn->time_ago("2016-11-28T18:12:29+01:00");
```

See `howto.php` for more info and examples.
-------------------------------------------

[](#see-howtophp-for-more-info-and-examples)

### Note

[](#note)

The time\_ago() method is dependent on your server time. Use this format '2016-11-28T18:12:29+01:00' to get accurate output. '2016-11-28' may give 0 if the supplied date and today is similar.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

3479d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12180395?v=4)[Ananta Bastola](/maintainers/Ananta)[@ananta](https://github.com/ananta)

---

Top Contributors

[![Anan5a](https://avatars.githubusercontent.com/u/16373480?v=4)](https://github.com/Anan5a "Anan5a (2 commits)")

### Embed Badge

![Health badge](/badges/ananta-apcommon/health.svg)

```
[![Health](https://phpackages.com/badges/ananta-apcommon/health.svg)](https://phpackages.com/packages/ananta-apcommon)
```

###  Alternatives

[ianm/syndication

Brings RSS and Atom feeds to Flarum

1518.4k](/packages/ianm-syndication)

PHPackages © 2026

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