Tarun Chari

Results 7 issues of Tarun Chari

I'm using `from` and `getDays` to get a handy date diff to determine the number of days between two dates. However, `getDays` rounds the result. Is there a way to...

When creating a new moment at hour when daylight savings changes, Moment returns an invalid date error. Moment.js, on the other hand, returns the changed hour. For example: `$date =...

Release 0.0.7 was over a year ago and uses now abandoned packages. (Package symfony/inflector is abandoned, you should avoid using it. Use EnglishInflector from the String component instead.)

I was wondering if this repo has been abandoned. I noticed that the latest version is 2.2.3 which is over a year old and excludes useful 8.1 updates. Will this...

When is a great rule for a binary case. Is there a rule or way to do conditional validation if the conditional key value can have more than two outcomes?...

When you validate the elements of an array (or iterable) using each, the messages get "overwritten" when you get the exception message. ``` try { Validator::notEmpty()->iterableType()->each( Validator::key('street', Validator::stringType()->notEmpty()) ->key('region', Validator::stringType()->notEmpty())...

Bug
Backward Compatibility Break
Next Release

In the case where we're missing one of the keys the KeyValue message is redundant. For example the following code... ``` try { $test = ['password' => '12345']; v::key('password', v::stringType()->notEmpty())...