diff --git a/laravel/helpers.php b/laravel/helpers.php index 0700e550..028d8a82 100644 --- a/laravel/helpers.php +++ b/laravel/helpers.php @@ -373,4 +373,15 @@ function value($value) function with($object) { return $object; +} + +/** + * Determine if the current version of PHP is at least the supplied version. + * + * @param string $version + * @return bool + */ +function has_php($version) +{ + return version_compare(PHP_VERSION, $version) >= 0; } \ No newline at end of file