<commit_before># About

This library can be very helpful to standardize date-time formats in your project & get done easy with different clients timezones. 

# Features

For all features using examples see [/example/index.php](https://github.com/barbushin/dater/blob/master/example/index.php). PHP > 5.3 required

### Timestamp/datetime input formats support

	$dater = new Dater(Dater_Locale_English());
	echo $dater->datetime();
	echo $dater->datetime(time());
	echo $dater->datetime(date('Y-m-d H:i:s'));
	
### Formats binding

	$dater->format(time(), 'd/m/Y'); // 2013/03/14
	$dater->addFormat('slashed_date', 'd/m/Y');
	$dater->format(time(), 'slashed_date'); // 2013/03/14

### Format options

All [date()](http://php.net/date) format options available and can be overrided or extended:
<commit_msg>added Composer install instructions<commit_after># About

This library can be very helpful to standardize date-time formats in your project & get done easy with different clients timezones. 

# Install

The recommended way to install Dater is [through composer](http://getcomposer.org).
You can see [package information on Packagist.](https://packagist.org/packages/dater/dater)

```JSON
{
	"require": {
		"dater/dater": "dev-master"
	}
}
```

# Features

For all features using examples see [/example/index.php](https://github.com/barbushin/dater/blob/master/example/index.php). PHP > 5.3 required

### Timestamp/datetime input formats support

	$dater = new Dater(Dater_Locale_English());
	echo $dater->datetime();
	echo $dater->datetime(time());
	echo $dater->datetime(date('Y-m-d H:i:s'));
	
### Formats binding

	$dater->format(time(), 'd/m/Y'); // 2013/03/14
	$dater->addFormat('slashed_date', 'd/m/Y');
	$dater->format(time(), 'slashed_date'); // 2013/03/14

### Format options

All [date()](http://php.net/date) format options available and can be overrided or extended:

{'fraction_non_alphanumeric': 0.1613588110403397, 'fraction_numerical': 0.01910828025477707, 'mean_word_length': 4.729483282674772, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 17, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5159157', 'n_tokens_mistral': 636, 'n_tokens_neox': 615, 'n_words': 164}