Laravel version update

Laravel version update
This commit is contained in:
Manish Verma
2018-08-06 18:48:58 +05:30
parent d143048413
commit 126fbb0255
13678 changed files with 1031482 additions and 778530 deletions

View File

@@ -6,15 +6,13 @@ This component provides the functionality to compare PHP values for equality.
## Installation
To add Comparator as a local, per-project dependency to your project, simply add a dependency on `sebastian/comparator` to your project's `composer.json` file. Here is a minimal example of a `composer.json` file that just defines a dependency on Comparator 1.2:
You can add this library as a local, per-project dependency to your project using [Composer](https://getcomposer.org/):
```JSON
{
"require": {
"sebastian/comparator": "~1.2"
}
}
```
composer require sebastian/comparator
If you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency:
composer require --dev sebastian/comparator
## Usage
@@ -32,9 +30,7 @@ $comparator = $factory->getComparatorFor($date1, $date2);
try {
$comparator->assertEquals($date1, $date2);
print "Dates match";
}
catch (ComparisonFailure $failure) {
} catch (ComparisonFailure $failure) {
print "Dates don't match";
}
```