承接 bonch.dev/laravel-timezone 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

bonch.dev/laravel-timezone

Composer 安装命令:

composer require bonch.dev/laravel-timezone

包简介

Small package that allow change default timezone in runtime. Timezone accepted in PHP DateTimeIdentifier (e.g `Europe/Moscow`) or hour offset, used in `DateTime::ATOM`.

README 文档

README

Small package that allow change default timezone in runtime. Timezone accepted in PHP DateTimeIdentifier (e.g Europe/Moscow) or hour offset, used in DateTime::ATOM.

Features

  • Timezone Class: Change timezone in app.timezone configuration and date_default_timezone_set() for Carbon. Can be accepted both +03:00 or Europe/Moscow formats.

  • TimezoneFacade Class: fast access to TimezoneClass that already configured.

  • TimezoneMiddleware Class: ready class for accept timezone from X-Timezone header from request.

Requirements

  • PHP 7.3 and above;
  • Laravel 7 and above;

Honestly, package doesn't tested on other versions, so good luck!

Installation

  1. Run composer require bonch.dev/laravel-timezone.

Using

  • Timezone Class directly where it needed.
  • Timezone Facade directly where it needed.
  • Timezone Middleware for all routes or needed only.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-07-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固