Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

arctushar's avatar

laravel 12.x installation problem for xampp

my xampp is 8.2.12. now in my windows 11, in cmd when write command "composer global require laravel/installer" it says below error

Changed current directory to C:/Users/Heera/AppData/Roaming/Composer

Installation failed, deleting ./composer.json.

In RequireCommand.php line 226:

No composer.json present in the current directory (./composer.json), this may be the cause of the following excepti on.

In CurlDownloader.php line 390:

curl error 60 while downloading https://repo.packagist.org/packages.json: SSL certificate problem: unable to get lo cal issuer certificate

require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-m|--minimal-changes] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [...]

how to solve

1 like
16 replies
NDruce's avatar

xampp is legacy and bad configured. The best solution for local web-servers is OpenServer (5 or 6 version, they're different a lot, but both <3). xampp is more promoted and famous, but it's like a broken crutch which is highly not recommended to use, while OpenServer is made proper, right and working without any problems

1 like
vincent15000's avatar

@Tray2 Oh I was sure that Herd was only for MacOS.

Is there any equivalent version for Ubuntu ?

1 like
arctushar's avatar

@Tray2 Creating a "laravel/laravel" project at "./my-project" The following exception indicates a possible issue with the Avast Firewall Check https://getcomposer.org/local-issuer for details

In CurlDownloader.php line 390:

curl error 60 while downloading https://repo.packagist.org/packages.json: SSL certificate problem: unable to get lo cal issuer certificate

create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--add-repository] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--ask] [--] [ [ []]]

Tray2's avatar

@arctushar when you use Herd, you don't need to install composer, it's bundled in the app.

Tray2's avatar

@arctushar It looks like your avast firewall is blocking you, either turn it of temporarily when you create a new project, or make sure it's allowed to access the internet.

jlrdw's avatar

When installing composer, tell composer where php is.

1 like

Please or to participate in this conversation.