PHPackages                             datxsoft/utilities - 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. datxsoft/utilities

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

datxsoft/utilities
==================

A classic collection of php utilities.

055PHP

Since Jan 3Pushed 10y ago1 watchersCompare

[ Source](https://github.com/datxsoft/utilities)[ Packagist](https://packagist.org/packages/datxsoft/utilities)[ RSS](/packages/datxsoft-utilities/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

utilities
=========

[](#utilities)

A classic collection of php utilities

### default timestamp is now

[](#default-timestamp-is-now)

```
$date = jDate::forge();
```

### pass timestamps

[](#pass-timestamps)

```
$date = jDate::forge(1333857600);
```

### pass strings to make timestamps

[](#pass-strings-to-make-timestamps)

```
$date = jDate::forge('last sunday');
```

### get the timestamp

[](#get-the-timestamp)

```
$date = jDate::forge('last sunday')->time(); // 1333857600
```

### format the timestamp

[](#format-the-timestamp)

```
$date = jDate::forge('last sunday')->format('%B %d، %Y'); // دی 02، 1391
```

### get a predefined format

[](#get-a-predefined-format)

```
$date = jDate::forge('last sunday')->format('datetime'); // 1391-10-02 00:00:00
$date = jDate::forge('last sunday')->format('date'); // 1391-10-02
$date = jDate::forge('last sunday')->format('time'); // 00:00:00
```

### amend the timestamp value, relative to existing value

[](#amend-the-timestamp-value-relative-to-existing-value)

```
$date = jDate::forge('2012-10-12')->reforge('+ 3 days')->format('date'); // 1391-07-24
```

### get relative 'ago' format

[](#get-relative-ago-format)

```
$date = jDate::forge('now - 10 minutes')->ago() // ۱۰ دقیقه پیش
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/600564?v=4)[Aria](/maintainers/ariaa)[@ariaa](https://github.com/ariaa)

---

Top Contributors

[![ariaa](https://avatars.githubusercontent.com/u/600564?v=4)](https://github.com/ariaa "ariaa (5 commits)")

### Embed Badge

![Health badge](/badges/datxsoft-utilities/health.svg)

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

###  Alternatives

[moderntribe/tribe-libs

A library for use on Modern Tribe service projects.

1349.4k2](/packages/moderntribe-tribe-libs)

PHPackages © 2026

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