PHPackages                             ngomafortuna/date-formatter - 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. ngomafortuna/date-formatter

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

ngomafortuna/date-formatter
===========================

Simple date formatter (Formatador simples de data)

v0.0.1(11mo ago)02BSD-3-ClausePHPPHP &gt;=8.0

Since Jun 4Pushed 11mo agoCompare

[ Source](https://github.com/ngomaf/date-formatter)[ Packagist](https://packagist.org/packages/ngomafortuna/date-formatter)[ RSS](/packages/ngomafortuna-date-formatter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Date formatter
==============

[](#date-formatter)

Simple date formatter (Formatador simples de data)

This component have two features:

- date: to formatter date `2024-12-16` to `16 Janeiro 2024`. Return object with date, time, datetime and others
- dateShort: equal to `date`, bat in short format

Require
-------

[](#require)

Necessary PHP 8.0 or more (Necessário PHP 8.0 ou superior)

Install
-------

[](#install)

composer require ngomafortuna/date-formatter

Syntax and mode of use
----------------------

[](#syntax-and-mode-of-use)

```
$dateFormatter = new DateFormatter;

$dateFormatter->date($myDate)->datetime;
```

Example
-------

[](#example)

```
use Ngomafortuna\DateFormatter\DateFormatter;

$myDate = date('Y-m-d H:i:s');

$dateFormatter = new DateFormatter;

var_dump($dateFormatter->date($myDate)->datetime);
var_dump($dateFormatter->dateShort($myDate)->datetime);
```

Results

```
string(23) "04 Junho 2025, 19:27:56"
string(21) "04 Jun 2025, 19:27:56"
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance54

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 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

338d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bf130e70a6c13b7f54c1f1d9aa4231bc04f544afa931e9e602cdfac3a6891e7a?d=identicon)[ngomafortuna](/maintainers/ngomafortuna)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/ngomafortuna-date-formatter/health.svg)

```
[![Health](https://phpackages.com/badges/ngomafortuna-date-formatter/health.svg)](https://phpackages.com/packages/ngomafortuna-date-formatter)
```

###  Alternatives

[cjmellor/level-up

This package allows users to gain experience points (XP) and progress through levels by performing actions on your site. It can provide a simple way to track user progress and implement gamification elements into your application

66188.9k](/packages/cjmellor-level-up)[olvlvl/composer-attribute-collector

A convenient and near zero-cost way to retrieve targets of PHP 8 attributes

184108.8k8](/packages/olvlvl-composer-attribute-collector)[trafficcophp/bytebuffer

Node.js inspired byte stream buffer for PHP.

33437.2k17](/packages/trafficcophp-bytebuffer)

PHPackages © 2026

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