Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

381
Views
Your Composer dependencies require a PHP version ">= 8.0.0". You are running 7.4.11

I would like to use Php 8.0 in my homestead but i run into this error when i open the site "Your Composer dependencies require a PHP version ">= 8.0.0". You are running 7.4.11"

In my composer.json :

"require": {
        "php": "^8.0" 

Running php --version in homestead machine (Ubuntu 20.04.1 LTS) gives this :

PHP 8.0.0rc1 (cli) (built: Oct 10 2020 14:16:46) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.0-dev, Copyright (c) Zend Technologies
    with Zend OPcache v8.0.0rc1, Copyright (c), by Zend Technologies 

I've seen somewhere that there's a difference between web php version and CLI version, but i'm not sure if that's related.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Make sure your CLI and web version of PHP is same or not ??.

check your web version by phpinfo();, either both are same or not!!!

if not then in your Homestead.yaml, you can specify a PHP version of your site.

sites:
-
    map: mywebsite.test
    to: /home/vagrant/code/public
    php: "8.0"
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!