2017 © Pedro Peláez
 

library date-bundle

Util for DateTime

image

gpslab/date-bundle

Util for DateTime

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 3 Open issues
  • 4 Versions
  • 49 % Grown

The README.md

Latest Stable Version Total Downloads Build Status Coverage Status Scrutinizer Code Quality SensioLabs Insight StyleCI License, (*1)

Util for DateTime and DateTimeZone

Installation

Pretty simple with Composer, run:, (*2)

composer require gpslab/date-bundle

Add GpsLabDateBundle to your application kernel, (*3)

// app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new GpsLab\Bundle\DateBundle\GpsLabDateBundle(),
        // ...
    );
}

Configuration

gpslab_date:
    # Is not required
    # As a default used timezone from date_default_timezone_get()
    time_zone: 'Europe/Moscow'

    # HTTP Cookie parameters for store user timezone
    cookie:

        # You can disable use cookie for store user timezone
        used: true

        # HTTP Cookie variable names
        # It's a default values
        name: '_time_zone_name'
        offset: '_time_zone_offset'

Documentation

License

This bundle is under the MIT license. See the complete license in the file: LICENSE, (*4)

The Versions