定制 rizky92/carbon-helper 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

rizky92/carbon-helper

最新稳定版本:0.0.4

Composer 安装命令:

composer require rizky92/carbon-helper

包简介

Helper for nesbot/carbon

README 文档

README

Latest Stable Version Total Downloads License

A simple global helper methods for nesbot/carbon

Installation

composer require rizky92/carbon-helper

Usage

You may call carbon or carbon_immutable anywhere in your code base like so:

$date = carbon('23-08-2023');

echo $date; // 2023-08-23 00:00:00.0 Asia/Makassar (+08:00)

carbon

Calling carbon method will create a Carbon instance, in which it will change the underlying date value if you chain call methods on it.

$christmas = carbon('December 25, 2022');
$christmas->addDays(6);

echo $christmas;  // 2022-12-31 00:00:00.0 Asia/Makassar (+08:00)

carbon_immutable

Calling carbon_immutable will create a CarbonImmutable instance that does not change the underlying date value, but will return a new instance with modified value everytime you chain call methods on it.

$christmas = carbon_immutable('December 25, 2022');
$christmas->addDays(6);

echo $christmas;  // 2022-12-25 00:00:00.0 Asia/Makassar (+08:00)

License

MIT

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-03-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固