2017 © Pedro Peláez
 

library datetime

Enhancements to Date and Time Extension shipped with PHP

image

xpl/datetime

Enhancements to Date and Time Extension shipped with PHP

  • Sunday, January 11, 2015
  • by ocubom
  • Repository
  • 1 Watchers
  • 1 Stars
  • 140 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 3 Versions
  • 3 % Grown

The README.md

XPL DateTime

XPL DateTime component attempts to improve the Date and Time Extension shipped with PHP. It adds some enhancements while is almost fully compatible with the default extension. It is also more ISO 8601 compilant., (*1)

License Version Status SensioLabsInsight
[License]0 Latest Unstable Version Build Status Coverage Status SensioLabsInsight

Documentation

The component may be 100% compatible with standard Date and Time Extension classes but the names used are based on ISO 8601., (*2)

To replace the original PHP implementation with this component, include the following PHP snippet:, (*3)

use Xpl\DateTime\DateTime as DateTime;
use Xpl\DateTime\DateTimeImmutable as DateTimeImmutable;
use Xpl\DateTime\DateTimeInterface as DateTimeInterface;
use Xpl\DateTime\Duration as DateInterval;
use Xpl\DateTime\TimeZone as DateTimeZone;

Just use like the standard PHP extension classes., (*4)

Installation

Just use composer to add the dependency:, (*5)

composer require xpl/datetime:dev-master

Or add the dependecy manually:, (*6)

  1. Update composer.json file with the lines:, (*7)

    {
        "require": {
            "xpl/datetime": "dev-master"
        }
    }
    
  2. And update the dependencies:, (*8)

    composer update xpl/datetime
    

Authorship

Current maintainer:, (*9)

This component starts as an utility class used on an internal project. This is a fork of the idea rewrited from scratch., (*10)

XPL DateTime is licensed under the MIT License – see the [LICENSE]0 file for details., (*11)

If you did not receive a copy of the license, contact with the author., (*12)

The Versions

11/01 2015

dev-master

9999999-dev http://github.com/ocubom/xpl-datetime

Enhancements to Date and Time Extension shipped with PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.6

 

The Development Requires

calendar date time datetime clock

23/12 2013

dev-draft-interval

dev-draft-interval http://github.com/ocubom/xpl-datetime

Enhancements to Date and Time Extension shipped with PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.6

 

The Development Requires

  • php >=5.3.6

calendar date time datetime clock

23/12 2013

0.0

0.0.0.0 http://github.com/ocubom/xpl-datetime

Enhancements to Date and Time Extension shipped with PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

  • php >=5.3.3

calendar date time datetime clock