Estou seguindo um tutorial da internet para instalar o laravel com XAMPP, e composer. Ate a parte do composer tudo deu certo, mas quando dei o comando para criar a aplicação, deu erro e nao estou conseguindo achar a solucao.
Em outro topico aqui, respondido anos atras, havia uma solucao que nao se aplicou a mim.
A copia do prompt é esta:
composer create-project laravel/laravel app-name6
PHP Warning: PHP Startup: ldap: Unable to initialize module
Module compiled with module API=20230831
PHP compiled with module API=20220829
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: fileinfo: Unable to initialize module
Module compiled with module API=20230831
PHP compiled with module API=20220829
These options need to match
in Unknown on line 0
You are running Composer with SSL/TLS protection disabled.
Creating a "laravel/laravel" project at "./app-name6"
https://repo.packagist.org could not be fully loaded (curl error 60 while downloading https://repo.packagist.org/packages.json: SSL certificate problem: unable to get local issuer certificate), package information was loaded from the local cache and may be out of date
Installing laravel/laravel (v11.0.7)
- Installing laravel/laravel (v11.0.7): Extracting archive
Created project in C:\Users\Carlos\app-name6
> @php -r "file_exists('.env') || copy('.env.example', '.env');"
PHP Warning: PHP Startup: ldap: Unable to initialize module
Module compiled with module API=20230831
PHP compiled with module API=20220829
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: fileinfo: Unable to initialize module
Module compiled with module API=20230831
PHP compiled with module API=20220829
These options need to match
in Unknown on line 0
Loading composer repositories with package information
https://repo.packagist.org could not be fully loaded (curl error 60 while downloading https://repo.packagist.org/packages.json: SSL certificate problem: unable to get local issuer certificate), package information was loaded from the local cache and may be out of date
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/framework[v11.0.0, ..., v11.7.0] require league/flysystem ^3.8.0 -> satisfiable by league/flysystem[3.8.0, ..., 3.27.0].
- league/flysystem[3.3.0, ..., 3.14.0] require league/mime-type-detection ^1.0.0 -> satisfiable by league/mime-type-detection[1.0.0, ..., 1.15.0].
- league/flysystem[3.15.0, ..., 3.27.0] require league/flysystem-local ^3.0.0 -> satisfiable by league/flysystem-local[3.15.0, ..., 3.25.1].
- league/mime-type-detection[1.0.0, ..., 1.3.0] require php ^7.2 -> your php version (8.2.10) does not satisfy that requirement.
- league/mime-type-detection[1.4.0, ..., 1.15.0] require ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
- league/flysystem-local[3.15.0, ..., 3.25.1] require ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
- Root composer.json requires laravel/framework ^11.0 -> satisfiable by laravel/framework[v11.0.0, ..., v11.7.0].
To enable extensions, verify that they are enabled in your .ini files:
- C:\php\php.ini
You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with `--ignore-platform-req=ext-fileinfo` to temporarily ignore these required extensions.
NO PHP.INI o ext-fileinfo esta habilitado. Ele diz precisar da versão ^7.2 e eu estou usando a 8.2.10 (como ele mesmo diz no erro). Esse league/flysystem esta instalado tbem (fiz o composer require league/flysystem) O openSSL esta ok (conforme outro post aqui da comunidade)
Sera que vou ter que rodar ele com o --ignore descrito a cima?