Level 12
Why not try to update laravel/installer?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I'm trying to install the new security-checker to help keep my project up to date. When I run the command composer global require enlightn/security-checker I get this error:
Using version ^1.5 for enlightn/security-checker
./composer.json has been updated
Running composer update enlightn/security-checker
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/installer is locked to version v3.1.0 and an update of this package was not requested.
- laravel/installer v3.1.0 requires php ^7.2.9 -> your php version (8.0.2) does not satisfy that requirement.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
PHP version 8
php -v
PHP 8.0.2 (cli) (built: Feb 7 2021 12:22:16) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.2, Copyright (c) Zend Technologies
with Zend OPcache v8.0.2, Copyright (c), by Zend Technologies
composer version
composer --version
Composer version 2.0.8 2020-12-03 17:20:38
laravel version
laravel -v
Laravel Installer 3.1.0
my composer.json file has this in it
"require": {
"php": "^7.2.5 || ^8.0",
What should I do to fix this problem?
Why not try to update laravel/installer?
Please or to participate in this conversation.