Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bramus/php-datetime
Extensions to PHP's built-in `DateTime` and `DateTimeZone` classes
https://github.com/bramus/php-datetime
Last synced: 3 days ago
JSON representation
Extensions to PHP's built-in `DateTime` and `DateTimeZone` classes
- Host: GitHub
- URL: https://github.com/bramus/php-datetime
- Owner: bramus
- License: mit
- Created: 2022-03-04T15:18:35.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-04T15:23:12.000Z (almost 3 years ago)
- Last Synced: 2024-12-10T02:39:26.210Z (24 days ago)
- Language: PHP
- Size: 14.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `bramus/datetime`
[![Build Status](https://github.com/bramus/php-datetime/workflows/CI/badge.svg)](https://github.com/bramus/php-datetime/actions) [![Source](http://img.shields.io/badge/source-bramus/datetime-blue.svg?style=flat-square)](https://github.com/bramus/php-datetime) [![Version](https://img.shields.io/packagist/v/bramus/datetime.svg?style=flat-square)](https://packagist.org/packages/bramus/datetime) [![Downloads](https://img.shields.io/packagist/dt/bramus/datetime.svg?style=flat-square)](https://packagist.org/packages/bramus/datetime/stats) [![License](https://img.shields.io/packagist/l/bramus/datetime.svg?style=flat-square)](https://github.com/bramus/php-datetime/blob/master/LICENSE)
`bramus/datetime` provides a few extensions to PHP's built-in `DateTime` and `DateTimeZone` classes.
Built by Bram(us) Van Damme _([https://www.bram.us](https://www.bram.us))_ and [Contributors](https://github.com/bramus/php-datetime/graphs/contributors)
## Prerequisites/Requirements
- PHP 7.2 or greater
## Installation
Installation is possible using Composer
```
$ composer require bramus/datetime ~1.0
```## Usage
@TODO
## Testing
`bramus/datetime` ships with unit tests using [PHPUnit](https://github.com/sebastianbergmann/phpunit/) `~8.0`.
- If PHPUnit is installed globally run `phpunit` to run the tests.
- If PHPUnit is not installed globally, install it locally throuh composer by running `composer install --dev`. Run the tests themselves by calling `./vendor/bin/phpunit` or using the composer script `composer test````
$ composer test
```## License
`bramus/datetime` is released under the MIT public license. See the enclosed `LICENSE` for details.