deflou / compares
Compare interface and basic realization for DeFlou
Installs: 29
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=7.0.0
This package is not auto-updated.
Last update: 2025-03-30 08:45:20 UTC
README
Compares package for DeFlou
using
use deflou\components\compares\CompareDefault;
use deflou\components\compares\CompareVersion;
$compare = new CompareDefault(5, 6, CompareDefault::EQUAL);
echo $compare->compare(); // false
$compare = new CompareVersion('1.5', '1.6', CompareDefault::LOWER);
echo $compare->compare(); // true