ananta/apcommon

A set of commonly used php functions.

Installs: 24

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/ananta/apcommon

v1.0.0 2016-12-20 15:53 UTC

This package is not auto-updated.

Last update: 2025-12-21 02:50:34 UTC


README

A class to make your custom PHP development faster.

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.

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.