Did you read on down the other way to install
Via Composer Create-Project
Alternatively, you may also install Laravel by issuing the Composer create-project command in your terminal:
composer create-project --prefer-dist laravel/laravel blog
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello,
I'm new to both composer and laravel and I'm running into a problem with the very first step to getting started. I downloaded composer with:
curl -sS https://getcomposer.org/installer | php
then I tried to install laravel with the command
/usr/bin/composer.phar global require "laravel/composer"
But as I was getting this error:
Could not find package laravel/composer at any version for your minimum-stability (stable). Check the package spelling or your minimum-stability
I googled around a little bit and ended up running /usr/bin/composer.phar diag which mentioned composer.json FAIL and Checking pubkeys: FAIL along with a You are not running the latest stable version run composer-self-update to update etc etc.
So as asked to do I ran /usr/bin/composer.phar self-update which ran fine.
I ran the diag again and only got a fail on Checking composer.json everything else checked out fine this time. Then I ran /usr/bin/composer.phar global require "laravel/composer" once more but got the same stability error as I got previously. Can I fix this with a command or do I need to create a JSON file in the home .composer/ directory and what should be in there?
PS: I have no desire to run the virtual machine even though it would be a lot more starter friendly, my server machine is short on resources
Did you read on down the other way to install
Via Composer Create-Project
Alternatively, you may also install Laravel by issuing the Composer create-project command in your terminal:
composer create-project --prefer-dist laravel/laravel blog
Please or to participate in this conversation.