2017 © Pedro Peláez
 

library doctrine-utc-date-time

Provides Doctrine DBAL date and time types for storing in UTC format into database

image

adrenalinkin/doctrine-utc-date-time

Provides Doctrine DBAL date and time types for storing in UTC format into database

  • Tuesday, April 10, 2018
  • by adrenalinkin
  • Repository
  • 1 Watchers
  • 1 Stars
  • 95 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 157 % Grown

The README.md

Doctrine UTC Date Time На Русском

PHPUnit Coverage Status Latest Stable Version Total Downloads, (*1)

Introduction

Component contains DBAL types for date and time and can be registered as Doctrine types. DBAL types provides functionality for storing date and time into database in the UTC. List of the available types:, (*2)

Installation

Open a command console, enter your project directory and execute the following command to download the latest stable version of this component:, (*3)

    composer require adrenalinkin/doctrine-utc-date-time

This command requires you to have Composer install globally., (*4)

Usage

For registration new Doctrine type use official instruction How to Use Doctrine DBAL., (*5)

For registration new separate UTC types:, (*6)

# app/config/config.yml
doctrine:
    dbal:
        types:
            utc_date:     Linkin\Component\DoctrineUTCDateTime\DBAL\Types\UtcDateType
            utc_datetime: Linkin\Component\DoctrineUTCDateTime\DBAL\Types\UtcDateTimeType
            utc_time:     Linkin\Component\DoctrineUTCDateTime\DBAL\Types\UtcTimeType

Also, you can overwrite standard types:, (*7)

# app/config/config.yml
doctrine:
    dbal:
        types:
            date:     Linkin\Component\DoctrineUTCDateTime\DBAL\Types\UtcDateType
            datetime: Linkin\Component\DoctrineUTCDateTime\DBAL\Types\UtcDateTimeType
            time:     Linkin\Component\DoctrineUTCDateTime\DBAL\Types\UtcTimeType

License

license, (*8)

The Versions

10/04 2018

dev-master

9999999-dev

Provides Doctrine DBAL date and time types for storing in UTC format into database

  Sources   Download

MIT

The Requires

 

by Viktor Linkin

component doctrine symfony date dbal time datetime utc doctrine-dbal symfony-component doctrine-utc utc-datetime

14/02 2018

v1.0.2

1.0.2.0

Provides Doctrine DBAL date and time types for storing in UTC format into database

  Sources   Download

MIT

The Requires

 

by Viktor Linkin

component doctrine symfony date dbal time datetime utc symfony-component

21/11 2017

v1.0.1

1.0.1.0

This component provides UTC date and time types for the Doctrine

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Viktor Linkin

component symfony2 doctrine date dbal time datetime utc

24/07 2017

v1.0.0

1.0.0.0

This component provides UTC date and time types for the Doctrine

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Viktor Linkin

component symfony2 doctrine date dbal time datetime utc