https://github.com/gpslab/date-bundle
Util for DateTime
https://github.com/gpslab/date-bundle
datetime php symfony-bundle
Last synced: 3 months ago
JSON representation
Util for DateTime
- Host: GitHub
- URL: https://github.com/gpslab/date-bundle
- Owner: gpslab
- License: mit
- Created: 2016-12-06T15:10:19.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-07T14:33:05.000Z (over 7 years ago)
- Last Synced: 2025-02-08T20:47:36.934Z (5 months ago)
- Topics: datetime, php, symfony-bundle
- Language: PHP
- Size: 69.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://packagist.org/packages/gpslab/date-bundle)
[](https://packagist.org/packages/gpslab/date-bundle)
[](https://travis-ci.org/gpslab/date-bundle)
[](https://coveralls.io/github/gpslab/date-bundle?branch=master)
[](https://scrutinizer-ci.com/g/gpslab/date-bundle/?branch=master)
[](https://insight.sensiolabs.com/projects/e02ff7b3-f7f5-493e-8afc-03317ab7fe8e)
[](https://styleci.io/repos/75742790)
[](https://github.com/gpslab/date-bundle)Util for DateTime and DateTimeZone
==================================## Installation
Pretty simple with [Composer](http://packagist.org), run:
```sh
composer require gpslab/date-bundle
```Add GpsLabDateBundle to your application kernel
```php
// app/AppKernel.php
public function registerBundles()
{
return array(
// ...
new GpsLab\Bundle\DateBundle\GpsLabDateBundle(),
// ...
);
}
```## Configuration
```yml
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
* [Installation](docs/installation.md)
* [Configuration](docs/configuration.md)
* Usage
* [Converter](docs/usage/converter.md)
* [Comparator](docs/usage/comparator.md)
* [Formatter](docs/usage/formatter.md)
* Timezone
* [Converter](docs/usage/tz/converter.md)
* [Comparator](docs/usage/tz/comparator.md)
* [Keeper](docs/usage/tz/keeper.md)
* [Custom timezone resolver](docs/usage/tz/resolver.md)
* [RoundDate](docs/usage/round_date.md)
* [Twig extension](docs/usage/twig.md)
* [Util](docs/usage/util.md)## License
This bundle is under the [MIT license](http://opensource.org/licenses/MIT). See the complete license in the file: LICENSE