Created
October 1, 2013 13:57
-
-
Save igorw/6778832 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Composer\Package\Version\VersionParser; | |
require 'vendor/autoload.php'; | |
$parser = new VersionParser(); | |
$constraint = $parser->parseConstraints('2013.09.*'); | |
$single = $parser->parseConstraints('v2013.09.0'); | |
var_dump($constraint); | |
var_dump($single); | |
var_dump($constraint->matches($single)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment