ngomafortuna/date-formatter 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ngomafortuna/date-formatter

最新稳定版本:v0.0.1

Composer 安装命令:

composer require ngomafortuna/date-formatter

包简介

Simple date formatter (Formatador simples de data)

README 文档

README

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

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

Install

composer require ngomafortuna/date-formatter

Syntax and mode of use

$dateFormatter = new DateFormatter;

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

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"

统计信息

  • 总下载量: 2
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2025-06-04