Doctrine type mappings for brick/date-time

Overview

brick/date-time-doctrine

Doctrine type mappings for brick/date-time.

Build Status Coverage Status Latest Stable Version License

Introduction

This library provides type mappings to use brick/date-time objects such as LocalDate as Doctrine entity properties.

Installation

This library is installable via Composer:

composer require brick/date-time-doctrine

Requirements

This library requires PHP 7.1 or later.

Project status & release process

The current releases are numbered 0.x.y. When a non-breaking change is introduced (adding new methods, optimizing existing code, etc.), y is incremented.

When a breaking change is introduced, a new 0.x version cycle is always started.

It is therefore safe to lock your project to a given release cycle, such as 0.1.*.

If you need to upgrade to a newer release cycle, check the release history for a list of changes introduced by each further 0.x.0 version.

Package contents

You might also like...
CRON for PHP: Calculate the next or previous run date and determine if a CRON expression is due

PHP Cron Expression Parser NOTE This fork has been deprecated and development moved to https://github.com/dragonmantank/cron-expression. More informat

:date: The VObject library for PHP allows you to easily parse and manipulate iCalendar and vCard objects

sabre/vobject The VObject library allows you to easily parse and manipulate iCalendar and vCard objects using PHP. The goal of the VObject library is

:date: Easy!Appointments - Open Source Appointment Scheduler
:date: Easy!Appointments - Open Source Appointment Scheduler

Easy!Appointments A powerful Open Source Appointment Scheduler that can be installed on your server. About • Features • Setup • Installation • License

A Magento 1.9's module to export products informations, inside a chosen date range, to a .XLSX file.
A Magento 1.9's module to export products informations, inside a chosen date range, to a .XLSX file.

Magento 1.9 Export products module A magento 1.9 module to export products informations to a .XLSX file. Module informations Package/Namespace: "Mathe

Date Manager PHP Class

Date Manager PHP Class Date Manager Version 1.0.0 PHP class for date management, for example converting solar date to gregorian date and vice versa. C

CRON for PHP: Calculate the next or previous run date and determine if a CRON expression is due

The PHP cron expression parser can parse a CRON expression, determine if it is due to run, calculate the next run date of the expression, and calculate the previous run date of the expression. You can calculate dates far into the future or past by skipping n number of matching dates.

This is an experiment to export all RFCs from the PHP wiki into Git, including the change history for each RFC (along with the date and author of each change). This is not meant to replace the wiki.

PHP Requests for Comments (RFCs) About This repository is an experiment to export all RFCs from the PHP wiki into Git, including the change history fo

Composer package which adds support for HTML5 elements using Laravels Form interface (e.g. Form::date())

Laravel HTML 5 Inputs Composer package which adds support for HTML5 elements by extending Laravel's Form interface (e.g. Form::date()) Adds support fo

Add jalali(persian) date to akaunting software

Akaunting Jalali Date Akaunting Jalali Date is a free module developed for Akaunting. It automatically converts all dates to jalali date and change gr

Allows the date format for
Allows the date format for "created", "modified" and "published" columns to be set within a Lister.

Lister Native Date Format Allows the date format for "created", "modified" and "published" columns to be set within a Lister or Lister Pro instance. W

Sign URLs with expiration date to transfer data between projects.

SafeLink Framework-agnostic, lightweight URL signer. You can use SafeLink to transfer data between projects. Sign the url in project 1: use Alfatron\S

Keep your .env.example file up to date
Keep your .env.example file up to date

Envy Automate keeping your environment files in sync. How many times have you onboarded a new dev onto your team, only to have to spend ages debugging

A Laravel clone of the Javascript Flatpickr (Date picker) library
A Laravel clone of the Javascript Flatpickr (Date picker) library

A Laravel clone of the Javascript Flatpickr (Date picker) library Using this package you can add a beautiful date or datetime picker into your project

Easy to install email tracker with gui and telegram api bot with date device & ip tracking,

mail-php-tracking-with-gui 📧 Simple mail tracking program that uses php, html, telegram bot, and a gui The gui The gui lets you create specific links

Do you want CronJob to follow the solar date?You need this package to solve this problem.
Do you want CronJob to follow the solar date?You need this package to solve this problem.

Shamsic Maybe it happened to you that you wanted to use CronJob in your project and you realized that you cannot manage the exact dates that are in th

Keep your website up to date.
Keep your website up to date.

Deutsch English Svenska Update 0.8.88 Keep your website up to date. How to add extensions You can download extensions as ZIP files and copy them into

Option Type for PHP
Option Type for PHP

PHP Option Type This package implements the Option type for PHP! Motivation The Option type is intended for cases where you sometimes might return a v

An object-oriented option parser library for PHP, which supports type constraints, flag, multiple flag, multiple values, required value checking

GetOptionKit Code Quality Versions & Stats A powerful option parser toolkit for PHP, supporting type constraints, flag, multiple flag, multiple values

Analyze content to determine the appropriate Internet media type

Canal Content analysis for the purpose of determining Internet media types. Requirements PHP 5.3+ Installation Through Composer as dflydev/canal. Usag

Comments
  • Different Doctrine types name format

    Different Doctrine types name format

    Hi @BenMorel, thanks a lot for your work and this library.

    During my last development I noticed that the names you used for Doctrine types is different from the Doctrine DBAL standard naming. In the Doctrine official library the types are named this way:

    [...]
        public const DATE_IMMUTABLE       = 'date_immutable';
        public const DATEINTERVAL         = 'dateinterval';
        public const DATETIME_MUTABLE     = 'datetime';
        public const DATETIME_IMMUTABLE   = 'datetime_immutable';
        public const DATETIMETZ_MUTABLE   = 'datetimetz';
        public const DATETIMETZ_IMMUTABLE = 'datetimetz_immutable';
    [...]
    

    while in your library you use the camelCase notation:

    [...]
    final class LocalDateTimeType extends Type
    {
        public function getName(): string
        {
            return 'LocalDateTime';
        }
    [...]
    

    Can I ask you why? Would you consider to change this if I open a pull request for this change?

    Hope to hear from you soon

    opened by paoloconi96 2
  • No ZonedDateTimeType

    No ZonedDateTimeType

    Hey @BenMorel thank you for this package. I always use this library for my entities, and I always made the types myself. I'm going to switch to this one, so thank you a lot for making it available.

    I just have one question. Why not a ZonedDateTimeType? I understand this could be due to some databases not supporting timezones in their datetime types, but we could always convert it to utc prior to storage, right?

    Please correct me if I'm wrong.

    opened by mnavarrocarter 10
Releases(0.2.2)
Owner
Brick
Building blocks for professional PHP applications
Brick
CRON for PHP: Calculate the next or previous run date and determine if a CRON expression is due

The PHP cron expression parser can parse a CRON expression, determine if it is due to run, calculate the next run date of the expression, and calculate the previous run date of the expression. You can calculate dates far into the future or past by skipping n number of matching dates.

Chris Tankersley 4.3k Jan 9, 2023
Add jalali(persian) date to akaunting software

Akaunting Jalali Date Akaunting Jalali Date is a free module developed for Akaunting. It automatically converts all dates to jalali date and change gr

Ali Hashemi 4 Dec 29, 2022
Kimai v2 is a web-based multiuser time-tracking application.

Kimai is a free, open source and online time-tracking software designed for small businesses and freelancers. It is built with modern technologies such as Symfony, Bootstrap, RESTful API, Doctrine, AdminLTE, Webpack, ES6 etc.

Kevin Papst 2k Jan 6, 2023
A One-Time Secret integration with GLPI

One-Time Secret A GLPI One-Time Secret integration The problem How are you sending your passwords or secrets? Currently, there's no easy and secure wa

TICgal 3 Jun 12, 2022
Date/Time Picker widget for Yii2 framework Based on Eonasdan's Bootstrap 3 Date/Time Picker

Yii2 Date/Time Picker Widget Date/Time Picker widget for Yii2 framework Based on Eonasdan's Bootstrap 3 Date/Time Picker Demo Since this is a part of

Yevhen Terentiev 8 Mar 14, 2022
A PHP library for mocking date and time in tests

ClockMock Slope s.r.l. ClockMock provides a way for mocking the current timestamp used by PHP for \DateTime(Immutable) objects and date/time related f

Slope 44 Dec 7, 2022
Laravel Seeable - Keep track of the date and time a user was last seen.

Laravel Seeable This package makes it easy to keep track of the date and time a user was last seen. Installation Install this package. composer requir

Zep Fietje 29 Dec 26, 2022
Laravel Angular Time Tracker is a simple time tracking application built on Laravel 5.2, Angular 2, and Bootstrap 3.

Laravel 5.2, Angular 2, and Bootstrap 3.3.* Time Tracker Laravel Angular Time Tracker is a simple time tracking application built on Laravel 5.2, Angu

Jeremy Kenedy 25 Oct 11, 2022
Quickly and easily preview and test your Magento 2 order confirmation page, without hacks or spending time placing new order each time

Preview Order Confirmation Page for Magento 2 For Magento 2.0.x, 2.1.x, 2.2.x and 2.3.x Styling and testing Magento's order confirmation page can be a

MagePal :: Magento Extensions 71 Aug 12, 2022