porta/datetime 问题修复 & 功能扩展

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

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

porta/datetime

最新稳定版本:0.1.0

Composer 安装命令:

composer require porta/datetime

包简介

PortaOne billing API datetime helper class

README 文档

README

Purpose

This package intended to simplify datetime and data fields management when work with Portabilling API.

PortaDateTime class exptends standatd DateTimeImmutable class to provide specific methods. All the datatime fields of API has MySQL format and always UTC timezone. This helper class allows easy manipulation between billing UTC datetime strings and desired-timezone DateTime-like objects, unlocking the full power of DateTie class in your biling-related application.

It also support PSR-4 autoload to root namespace () and PSR-11 DI containers for default timezone definition storage.

Usage

I suppose you should be familiar with PortaOne billing API. Start with example, browse PHPdoc. Use sources to understand how it works, it is very simple.

Installation

In the Composer storage. Just add proper require section:

"require": {
    "porta/datetime": "^0.1"
}

Please, review changelog before to change used version.

Dependencies

  • php: ^7.4|^8.0|^8.1|^8.2
  • psr/container: "*"

Testing

Tested with PHPUnit 9.6 on php 7.4 to 8.2, 100% coverage, which does not mean everything will work as intended. Current testing and compatibility status check on Github flows

To test, install in dev mode and use:

  • composer test command from library root for run all standard modular tests

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-06-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固