function satisfies($version, $range, $loose = false) { try { $range = new Range($range, $loose); } catch (\Exception $e) { return false; } return $range->test($version); }
/** * Get the whole or object as a string * @return string */ public function getString() { return (string) $this->range->toString(); }