This question already has answers here:
How to enable zip.dll in xampp
(2 answers)
PHP error: "The zip extension and unzip command are both missing, skipping."
(21 answers)
Closed last month.
So, I am on Windows 10 and I installed the latest version of Xampp.
Then installed Composer.
Then I opened up command prompt in htdocs folder of my xampp and ran the following command:
composer create-project laravel/laravel myfirstapp
And I get the following error:
Creating a "laravel/laravel" project at "./myfirstapp2"
Info from https://repo.packagist.org: #StandWithUkraine
Installing laravel/laravel (v9.5.0)
Failed to download laravel/laravel from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
- Syncing laravel/laravel (v9.5.0) into cache
- Installing laravel/laravel (v9.5.0): Cloning 091aa7d882 from cache
Created project in C:\xampp\htdocs\myfirstapp2
> #php -r "file_exists('.env') || copy('.env.example', '.env');"
Loading composer repositories with package information
Updating dependencies
Lock file operations: 107 installs, 0 updates, 0 removals
- Locking brick/math (0.10.2)
- Locking dflydev/dot-access-data (v3.0.2)
- Locking doctrine/deprecations (v1.0.0)
- Locking doctrine/inflector (2.0.6)
- Locking doctrine/instantiator (2.0.0)
- Locking doctrine/lexer (2.1.0)
- Locking dragonmantank/cron-expression (v3.3.2)
- Locking egulias/email-validator (3.2.5)
- Locking fakerphp/faker (v1.21.0)
- Locking filp/whoops (2.14.6)
- Locking fruitcake/php-cors (v1.2.0)
- Locking graham-campbell/result-type (v1.1.0)
- Locking guzzlehttp/guzzle (7.5.0)
- Locking guzzlehttp/promises (1.5.2)
- Locking guzzlehttp/psr7 (2.4.3)
- Locking hamcrest/hamcrest-php (v2.0.1)
- Locking laravel/framework (v9.47.0)
- Locking laravel/pint (v1.4.0)
- Locking laravel/sail (v1.18.0)
- Locking laravel/sanctum (v3.2.0)
- Locking laravel/serializable-closure (v1.2.2)
- Locking laravel/tinker (v2.8.0)
- Locking league/commonmark (2.3.8)
- Locking league/config (v1.2.0)
- Locking league/flysystem (3.12.1)
- Locking league/mime-type-detection (1.11.0)
- Locking mockery/mockery (1.5.1)
- Locking monolog/monolog (2.8.0)
- Locking myclabs/deep-copy (1.11.0)
- Locking nesbot/carbon (2.65.0)
- Locking nette/schema (v1.2.3)
- Locking nette/utils (v3.2.8)
- Locking nikic/php-parser (v4.15.2)
- Locking nunomaduro/collision (v6.4.0)
- Locking nunomaduro/termwind (v1.15.0)
- Locking phar-io/manifest (2.0.3)
- Locking phar-io/version (3.2.1)
- Locking phpoption/phpoption (1.9.0)
- Locking phpunit/php-code-coverage (9.2.23)
- Locking phpunit/php-file-iterator (3.0.6)
- Locking phpunit/php-invoker (3.1.1)
- Locking phpunit/php-text-template (2.0.4)
- Locking phpunit/php-timer (5.0.3)
- Locking phpunit/phpunit (9.5.28)
- Locking psr/container (2.0.2)
- Locking psr/event-dispatcher (1.0.0)
- Locking psr/http-client (1.0.1)
- Locking psr/http-factory (1.0.1)
- Locking psr/http-message (1.0.1)
- Locking psr/log (3.0.0)
- Locking psr/simple-cache (3.0.0)
- Locking psy/psysh (v0.11.10)
- Locking ralouphie/getallheaders (3.0.3)
- Locking ramsey/collection (2.0.0)
- Locking ramsey/uuid (4.7.3)
- Locking sebastian/cli-parser (1.0.1)
- Locking sebastian/code-unit (1.0.8)
- Locking sebastian/code-unit-reverse-lookup (2.0.3)
- Locking sebastian/comparator (4.0.8)
- Locking sebastian/complexity (2.0.2)
- Locking sebastian/diff (4.0.4)
- Locking sebastian/environment (5.1.4)
- Locking sebastian/exporter (4.0.5)
- Locking sebastian/global-state (5.0.5)
- Locking sebastian/lines-of-code (1.0.3)
- Locking sebastian/object-enumerator (4.0.4)
- Locking sebastian/object-reflector (2.0.4)
- Locking sebastian/recursion-context (4.0.4)
- Locking sebastian/resource-operations (3.0.3)
- Locking sebastian/type (3.2.0)
- Locking sebastian/version (3.0.2)
- Locking spatie/backtrace (1.2.1)
- Locking spatie/flare-client-php (1.3.2)
- Locking spatie/ignition (1.4.1)
- Locking spatie/laravel-ignition (1.6.4)
- Locking symfony/console (v6.2.3)
- Locking symfony/css-selector (v6.2.3)
- Locking symfony/deprecation-contracts (v3.2.0)
- Locking symfony/error-handler (v6.2.3)
- Locking symfony/event-dispatcher (v6.2.2)
- Locking symfony/event-dispatcher-contracts (v3.2.0)
- Locking symfony/finder (v6.2.3)
- Locking symfony/http-foundation (v6.2.2)
- Locking symfony/http-kernel (v6.2.4)
- Locking symfony/mailer (v6.2.2)
- Locking symfony/mime (v6.2.2)
- Locking symfony/polyfill-ctype (v1.27.0)
- Locking symfony/polyfill-intl-grapheme (v1.27.0)
- Locking symfony/polyfill-intl-idn (v1.27.0)
- Locking symfony/polyfill-intl-normalizer (v1.27.0)
- Locking symfony/polyfill-mbstring (v1.27.0)
- Locking symfony/polyfill-php72 (v1.27.0)
- Locking symfony/polyfill-php80 (v1.27.0)
- Locking symfony/polyfill-uuid (v1.27.0)
- Locking symfony/process (v6.2.0)
- Locking symfony/routing (v6.2.3)
- Locking symfony/service-contracts (v3.2.0)
- Locking symfony/string (v6.2.2)
- Locking symfony/translation (v6.2.3)
- Locking symfony/translation-contracts (v3.2.0)
- Locking symfony/uid (v6.2.0)
- Locking symfony/var-dumper (v6.2.3)
- Locking theseer/tokenizer (1.2.1)
- Locking tijsverkoyen/css-to-inline-styles (2.2.6)
- Locking vlucas/phpdotenv (v5.5.0)
- Locking voku/portable-ascii (2.0.1)
- Locking webmozart/assert (1.11.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 107 installs, 0 updates, 0 removals
Failed to download doctrine/inflector from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
- Syncing doctrine/inflector (2.0.6) into cache
Failed to download doctrine/deprecations from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
- Syncing doctrine/deprecations (v1.0.0) into cache
Failed to download doctrine/lexer from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
- Syncing doctrine/lexer (2.1.0) into cache
Failed to download symfony/polyfill-ctype from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
- Syncing symfony/polyfill-ctype (v1.27.0) into cache
Failed to download webmozart/assert from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
- Syncing webmozart/assert (1.11.0) into cache
Failed to download dragonmantank/cron-expression from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
- Syncing dragonmantank/cron-expression (v3.3.2) into cache
Failed to download symfony/deprecation-contracts from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
- Syncing symfony/deprecation-contracts (v3.2.0) into cache
Failed to download psr/container from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
- Syncing psr/container (2.0.2) into cache
Failed to download fakerphp/faker from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
- Syncing fakerphp/faker (v1.21.0) into cache
Failed to download symfony/polyfill-mbstring from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
- Syncing symfony/polyfill-mbstring (v1.27.0) into cache
Failed to download symfony/http-foundation from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
- Syncing symfony/http-foundation (v6.2.2) into cache
Failed to download fruitcake/php-cors from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
- Syncing fruitcake/php-cors (v1.2.0) into cache
Failed to download psr/http-message from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
- Syncing psr/http-message (1.0.1) into cache
Failed to download psr/http-client from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
- Syncing psr/http-client (1.0.1) into cache
Failed to download ralouphie/getallheaders from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
- Syncing ralouphie/getallheaders (3.0.3) into cache
Failed to download psr/http-factory from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
- Syncing psr/http-factory (1.0.1) into cache
Failed to download guzzlehttp/psr7 from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
- Syncing guzzlehttp/psr7 (2.4.3) into cache
Failed to download guzzlehttp/promises from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
- Syncing guzzlehttp/promises (1.5.2) into cache
Failed to download guzzlehttp/guzzle from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
- Syncing guzzlehttp/guzzle (7.5.0) into cache
Failed to download laravel/pint from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
- Syncing laravel/pint (v1.4.0) into cache
Failed to download voku/portable-ascii from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
....
And it keeps trying to sync everything that has failed to download in a never ending cycle.
What I understand is extensions are missing from php.ini? I can find only the sqlite extension in my php.ini file.
How can I resolve this? Should I edit my php.ini file and add extensions? Which extensions to add for laravel 9 and php 8.2?
As stated here: https://www.php.net/manual/en/zip.installation.php#zip.installation.new.windows
As of PHP 8.2.0, php_zip.dll DLL must be enabled in php.ini. Previously, this extension was built-in.
You will need to manually enable this extension within your php.ini.
Related
create-project laravel/laravel EduOnline
Creating a "laravel/laravel" project at "./EduOnline"
Info from https://repo.packagist.org: #StandWithUkraine
Installing laravel/laravel (v9.5.2)
Installing laravel/laravel (v9.5.2): Extracting archive
Created project in C:\xampp\htdocs\EduOnline
#php -r "file_exists('.env') || copy('.env.example', '.env');"
Loading composer repositories with package information
Updating dependencies
Lock file operations: 108 installs, 0 updates, 0 removals
Locking brick/math (0.10.2)
Locking dflydev/dot-access-data (v3.0.2)
Locking doctrine/inflector (2.0.6)
Locking doctrine/instantiator (2.0.0)
Locking doctrine/lexer (3.0.0)
Locking dragonmantank/cron-expression (v3.3.2)
Locking egulias/email-validator (4.0.1)
Locking fakerphp/faker (v1.21.0)
Locking filp/whoops (2.14.6)
Locking fruitcake/php-cors (v1.2.0)
Locking graham-campbell/result-type (v1.1.0)
Locking guzzlehttp/guzzle (7.5.0)
Locking guzzlehttp/promises (1.5.2)
Locking guzzlehttp/psr7 (2.4.3)
Locking guzzlehttp/uri-template (v1.0.1)
Locking hamcrest/hamcrest-php (v2.0.1)
Locking laravel/framework (v9.51.0)
Locking laravel/pint (v1.4.1)
Locking laravel/sail (v1.20.0)
Locking laravel/sanctum (v3.2.1)
Locking laravel/serializable-closure (v1.3.0)
Locking laravel/tinker (v2.8.0)
Locking league/commonmark (2.3.8)
Locking league/config (v1.2.0)
Locking league/flysystem (3.12.2)
Locking league/mime-type-detection (1.11.0)
Locking mockery/mockery (1.5.1)
Locking monolog/monolog (2.9.1)
Locking myclabs/deep-copy (1.11.0)
Locking nesbot/carbon (2.66.0)
Locking nette/schema (v1.2.3)
Locking nette/utils (v4.0.0)
Locking nikic/php-parser (v4.15.3)
Locking nunomaduro/collision (v6.4.0)
Locking nunomaduro/termwind (v1.15.0)
Locking phar-io/manifest (2.0.3)
Locking phar-io/version (3.2.1)
Locking phpoption/phpoption (1.9.0)
Locking phpunit/php-code-coverage (9.2.24)
Locking phpunit/php-file-iterator (3.0.6)
Locking phpunit/php-invoker (3.1.1)
Locking phpunit/php-text-template (2.0.4)
Locking phpunit/php-timer (5.0.3)
Locking phpunit/phpunit (9.6.3)
Locking psr/container (2.0.2)
Locking psr/event-dispatcher (1.0.0)
Locking psr/http-client (1.0.1)
Locking psr/http-factory (1.0.1)
Locking psr/http-message (1.0.1)
Locking psr/log (3.0.0)
Locking psr/simple-cache (3.0.0)
Locking psy/psysh (v0.11.12)
Locking ralouphie/getallheaders (3.0.3)
Locking ramsey/collection (2.0.0)
Locking ramsey/uuid (4.7.3)
Locking sebastian/cli-parser (1.0.1)
Locking sebastian/code-unit (1.0.8)
Locking sebastian/code-unit-reverse-lookup (2.0.3)
Locking sebastian/comparator (4.0.8)
Locking sebastian/complexity (2.0.2)
Locking sebastian/diff (4.0.4)
Locking sebastian/environment (5.1.5)
Locking sebastian/exporter (4.0.5)
Locking sebastian/global-state (5.0.5)
Locking sebastian/lines-of-code (1.0.3)
Locking sebastian/object-enumerator (4.0.4)
Locking sebastian/object-reflector (2.0.4)
Locking sebastian/recursion-context (4.0.5)
Locking sebastian/resource-operations (3.0.3)
Locking sebastian/type (3.2.1)
Locking sebastian/version (3.0.2)
Locking spatie/backtrace (1.2.1)
Locking spatie/flare-client-php (1.3.5)
Locking spatie/ignition (1.4.3)
Locking spatie/laravel-ignition (1.6.4)
Locking symfony/console (v6.2.5)
Locking symfony/css-selector (v6.2.5)
Locking symfony/deprecation-contracts (v3.2.0)
Locking symfony/error-handler (v6.2.5)
Locking symfony/event-dispatcher (v6.2.5)
Locking symfony/event-dispatcher-contracts (v3.2.0)
Locking symfony/finder (v6.2.5)
Locking symfony/http-foundation (v6.2.6)
Locking symfony/http-kernel (v6.2.6)
Locking symfony/mailer (v6.2.5)
Locking symfony/mime (v6.2.5)
Locking symfony/polyfill-ctype (v1.27.0)
Locking symfony/polyfill-intl-grapheme (v1.27.0)
Locking symfony/polyfill-intl-idn (v1.27.0)
Locking symfony/polyfill-intl-normalizer (v1.27.0)
Locking symfony/polyfill-mbstring (v1.27.0)
Locking symfony/polyfill-php72 (v1.27.0)
Locking symfony/polyfill-php80 (v1.27.0)
Locking symfony/polyfill-uuid (v1.27.0)
Locking symfony/process (v6.2.5)
Locking symfony/routing (v6.2.5)
Locking symfony/service-contracts (v3.2.0)
Locking symfony/string (v6.2.5)
Locking symfony/translation (v6.2.5)
Locking symfony/translation-contracts (v3.2.0)
Locking symfony/uid (v6.2.5)
Locking symfony/var-dumper (v6.2.5)
Locking symfony/yaml (v6.2.5)
Locking theseer/tokenizer (1.2.1)
Locking tijsverkoyen/css-to-inline-styles (2.2.6)
Locking vlucas/phpdotenv (v5.5.0)
Locking voku/portable-ascii (2.0.1)
Locking webmozart/assert (1.11.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 108 installs, 0 updates, 0 removals
Installing doctrine/inflector (2.0.6): Extracting archive
Installing doctrine/lexer (3.0.0): Extracting archive
Installing symfony/polyfill-ctype (v1.27.0): Extracting archive
Installing webmozart/assert (1.11.0): Extracting archive
Installing dragonmantank/cron-expression (v3.3.2): Extracting archive
Installing symfony/deprecation-contracts (v3.2.0): Extracting archive
Installing psr/container (2.0.2): Extracting archive
Installing fakerphp/faker (v1.21.0): Extracting archive
Installing symfony/polyfill-mbstring (v1.27.0): Extracting archive
Installing symfony/http-foundation (v6.2.6): Extracting archive
Installing fruitcake/php-cors (v1.2.0): Extracting archive
Installing psr/http-message (1.0.1): Extracting archive
Installing psr/http-client (1.0.1): Extracting archive
Installing ralouphie/getallheaders (3.0.3): Extracting archive
Installing psr/http-factory (1.0.1): Extracting archive
Installing guzzlehttp/psr7 (2.4.3): Extracting archive
Installing guzzlehttp/promises (1.5.2): Extracting archive
Installing guzzlehttp/guzzle (7.5.0): Extracting archive
Installing symfony/polyfill-php80 (v1.27.0): Extracting archive
Installing guzzlehttp/uri-template (v1.0.1): Extracting archive
Installing laravel/pint (v1.4.1): Extracting archive
Installing symfony/yaml (v6.2.5): Extracting archive
Installing voku/portable-ascii (2.0.1): Extracting archive
Installing phpoption/phpoption (1.9.0): Extracting archive
Installing graham-campbell/result-type (v1.1.0): Extracting archive
Installing vlucas/phpdotenv (v5.5.0): Extracting archive
Installing symfony/css-selector (v6.2.5): Extracting archive
Installing tijsverkoyen/css-to-inline-styles (2.2.6): Extracting archive
Installing symfony/var-dumper (v6.2.5): Extracting archive
Installing symfony/polyfill-uuid (v1.27.0): Extracting archive
Installing symfony/uid (v6.2.5): Extracting archive
Installing symfony/routing (v6.2.5): Extracting archive
Installing symfony/process (v6.2.5): Extracting archive
Installing symfony/polyfill-php72 (v1.27.0): Extracting archive
Installing symfony/polyfill-intl-normalizer (v1.27.0): Extracting archive
Installing symfony/polyfill-intl-idn (v1.27.0): Extracting archive
Installing symfony/mime (v6.2.5): Extracting archive
Installing symfony/service-contracts (v3.2.0): Extracting archive
Installing psr/event-dispatcher (1.0.0): Extracting archive
Installing symfony/event-dispatcher-contracts (v3.2.0): Extracting archive
Installing symfony/event-dispatcher (v6.2.5): Extracting archive
Installing psr/log (3.0.0): Extracting archive
Installing egulias/email-validator (4.0.1): Extracting archive
Installing symfony/mailer (v6.2.5): Extracting archive
Installing symfony/error-handler (v6.2.5): Extracting archive
Installing symfony/http-kernel (v6.2.6): Extracting archive
Installing symfony/finder (v6.2.5): Extracting archive
Installing symfony/polyfill-intl-grapheme (v1.27.0): Extracting archive
Installing symfony/string (v6.2.5): Extracting archive
Installing symfony/console (v6.2.5): Extracting archive
Installing ramsey/collection (2.0.0): Extracting archive
Installing brick/math (0.10.2): Extracting archive
Installing ramsey/uuid (4.7.3): Extracting archive
Installing psr/simple-cache (3.0.0): Extracting archive
Installing nunomaduro/termwind (v1.15.0): Extracting archive
Installing symfony/translation-contracts (v3.2.0): Extracting archive
Installing symfony/translation (v6.2.5): Extracting archive
Installing nesbot/carbon (2.66.0): Extracting archive
Installing monolog/monolog (2.9.1): Extracting archive
Installing league/mime-type-detection (1.11.0): Extracting archive
Installing league/flysystem (3.12.2): Extracting archive
Installing nette/utils (v4.0.0): Extracting archive
Installing nette/schema (v1.2.3): Extracting archive
Installing dflydev/dot-access-data (v3.0.2): Extracting archive
Installing league/config (v1.2.0): Extracting archive
Installing league/commonmark (2.3.8): Extracting archive
Installing laravel/serializable-closure (v1.3.0): Extracting archive
Installing laravel/framework (v9.51.0): Extracting archive
Installing laravel/sail (v1.20.0): Extracting archive
Installing laravel/sanctum (v3.2.1): Extracting archive
Installing nikic/php-parser (v4.15.3): Extracting archive
Installing psy/psysh (v0.11.12): Extracting archive
Installing laravel/tinker (v2.8.0): Extracting archive
Installing hamcrest/hamcrest-php (v2.0.1): Extracting archive
Installing mockery/mockery (1.5.1): Extracting archive
Installing filp/whoops (2.14.6): Extracting archive
Installing nunomaduro/collision (v6.4.0): Extracting archive
Installing sebastian/version (3.0.2): Extracting archive
Installing sebastian/type (3.2.1): Extracting archive
Installing sebastian/resource-operations (3.0.3): Extracting archive
Installing sebastian/recursion-context (4.0.5): Extracting archive
Installing sebastian/object-reflector (2.0.4): Extracting archive
Installing sebastian/object-enumerator (4.0.4): Extracting archive
Installing sebastian/global-state (5.0.5): Extracting archive
Installing sebastian/exporter (4.0.5): Extracting archive
Installing sebastian/environment (5.1.5): Extracting archive
Installing sebastian/diff (4.0.4): Extracting archive
Installing sebastian/comparator (4.0.8): Extracting archive
Installing sebastian/code-unit (1.0.8): Extracting archive
Installing sebastian/cli-parser (1.0.1): Extracting archive
Installing phpunit/php-timer (5.0.3): Extracting archive
Installing phpunit/php-text-template (2.0.4): Extracting archive
Installing phpunit/php-invoker (3.1.1): Extracting archive
Installing phpunit/php-file-iterator (3.0.6): Extracting archive
Installing theseer/tokenizer (1.2.1): Extracting archive
Installing sebastian/lines-of-code (1.0.3): Extracting archive
Installing sebastian/complexity (2.0.2): Extracting archive
Installing sebastian/code-unit-reverse-lookup (2.0.3): Extracting archive
Installing phpunit/php-code-coverage (9.2.24): Extracting archive
Installing phar-io/version (3.2.1): Extracting archive
Installing phar-io/manifest (2.0.3): Extracting archive
Installing myclabs/deep-copy (1.11.0): Extracting archive
Installing doctrine/instantiator (2.0.0): Extracting archive
Installing phpunit/phpunit (9.6.3): Extracting archive
Installing spatie/backtrace (1.2.1): Extracting archive
Installing spatie/flare-client-php (1.3.5): Extracting archive
Installing spatie/ignition (1.4.3): Extracting archive
Installing spatie/laravel-ignition (1.6.4): Extracting archive
17/108 [====>-----------------------] 15% Failed to extract laravel/pint: (9) C:\oraclexe\app\oracle\product\11.2.0\server\bin\unzip.EXE -qq C:\xampp\htdocs\EduOnline\vendor\composer\tmp-a6b6108ab5145ca169d3ac067b3695b6 -d C:\xampp\htdocs\EduOnline\vendor\composer\16d12e78
[C:/xampp/htdocs/EduOnline/vendor/composer/tmp-a6b6108ab5145ca169d3ac067b3695b6]
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in C:/xampp/htdocs/EduOnline/vendor/composer/tmp-a6b6108ab5145ca169d3ac067b3695b6,
and cannot find C:/xampp/htdocs/EduOnline/vendor/composer/tmp-a6b6108ab5145ca169d3ac067b3695b6.zip, period.
The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
Unzip with unzip command failed, falling back to ZipArchive class
Deprecation Notice: ZipArchive::open(): Using empty file as ZipArchive is deprecated in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Downloader/ZipDownloader.php:187
Install of laravel/pint failed
108/108 [============================] 100%
[RuntimeException]
Could not delete C:\xampp\htdocs\EduOnline/vendor/composer/tmp-a6b6108ab5145ca169d3ac067b3695b6:
This can be due to an antivirus or the Windows Search Indexer locking the file while they are analyzed
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] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--ask] [--] [] [] []
how to solution this problem
Remove "laravel/pint": "^1.0", from composer.json
Delete composer.lock
Run composer install
"fakerphp/faker": "^1.9.1",
"laravel/sail": "^1.0.1",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^6.1",
"phpunit/phpunit": "^9.5.10",
"spatie/laravel-ignition": "^1.0"
},
This Should resolve the problem.
C:\xampp\htdocs>composer create-project laravel/laravel chirper
Creating a "laravel/laravel" project at "./chirper"
Info from https://repo.packagist.org: #StandWithUkraine
Installing laravel/laravel (v9.5.1)
Failed to download laravel/laravel from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
Syncing laravel/laravel (v9.5.1) into cache
Installing laravel/laravel (v9.5.1): Cloning 5c7cc8eee4 from cache
Created project in C:\xampp\htdocs\chirper
#php -r "file_exists('.env') || copy('.env.example', '.env');"
Loading composer repositories with package information
Updating dependencies
Lock file operations: 106 installs, 0 updates, 0 removals
Locking brick/math (0.10.2)
Locking dflydev/dot-access-data (v3.0.2)
Locking doctrine/inflector (2.0.6)
Locking doctrine/instantiator (2.0.0)
Locking doctrine/lexer (3.0.0)
Locking dragonmantank/cron-expression (v3.3.2)
Locking egulias/email-validator (4.0.1)
Locking fakerphp/faker (v1.21.0)
Syncing laravel/sail (v1.18.1) into cache
Failed to download laravel/sanctum from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
Syncing laravel/sanctum (v3.2.1) into cache
Failed to download nikic/php-parser from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
Syncing nikic/php-parser (v4.15.3) into cache
Failed to download psy/psysh from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
Syncing psy/psysh (v0.11.11) into cache
Failed to download laravel/tinker from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
Syncing laravel/tinker (v2.8.0) into cache
Failed to download hamcrest/hamcrest-php from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
Syncing hamcrest/hamcrest-php (v2.0.1) into cache
Failed to download mockery/mockery from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
Syncing mockery/mockery (1.5.1) into cache
Failed to download filp/whoops from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
Syncing filp/whoops (2.14.6) into cache
Failed to download nunomaduro/collision from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
Syncing nunomaduro/collision (v6.4.0) into cache
Failed to download sebastian/version from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
Syncing sebastian/version (3.0.2) into cache
Failed to download sebastian/type from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
Syncing sebastian/type (3.2.0) into cache
Failed to download sebastian/resource-operations from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
Syncing sebastian/resource-operations (3.0.3) into cache
Failed to download sebastian/recursion-context from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
Syncing sebastian/recursion-context (4.0.4) into cache
Failed to download sebastian/object-reflector from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
Syncing sebastian/object-reflector (2.0.4) into cache
Failed to download sebastian/object-enumerator from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
Syncing sebastian/object-enumerator (4.0.4) into cache
Failed to download sebastian/global-state from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
Syncing sebastian/global-state (5.0.5) into cache
Failed to download sebastian/exporter from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
Syncing sebastian/exporter (4.0.5) into cache
Failed to download sebastian/environment from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
Syncing sebastian/environment (5.1.4) into cache
Failed to download sebastian/diff from dist: The zip extension and unzip/7z commands are both text-template (2.0.4): Cloning 5da5f67fc9 from cache
Installing phpunit/php-invoker (3.1.1): Cloning 5a10147d0a from cache
Installing phpunit/php-file-iterator (3.0.6): Cloning cf1c2e7c20 from cache
Installing theseer/tokenizer (1.2.1): Cloning 34a41e998c from cache
Installing sebastian/lines-of-code (1.0.3): Cloning c1c2e997aa from cache
Installing sebastian/complexity (2.0.2): Cloning 739b35e533 from cache
Installing sebastian/code-unit-reverse-lookup (2.0.3): Cloning ac91f01cce from cache
Installing phpunit/php-code-coverage (9.2.23): Cloning 9f1f0f9a2f from cache
Installing phar-io/version (3.2.1): Cloning 4f7fd7836c from cache
Installing phar-io/manifest (2.0.3): Cloning 97803eca37 from cache
Installing myclabs/deep-copy (1.11.0): Cloning 14daed4296 from cache
Installing doctrine/instantiator (2.0.0): Cloning c6222283fa from cache
Installing phpunit/phpunit (9.5.28): Cloning 954ca3113a from cache
Installing spatie/backtrace (1.2.1): Cloning 4ee7d41aa5 from cache
Installing spatie/flare-client-php (1.3.5): Cloning 3e5dd5ac49 from cache
Installing spatie/ignition (1.4.3): Cloning 2cf3833220 from cache
Installing spatie/laravel-ignition (1.6.4): Cloning 1a2b4bd3d4 from cache
72 package suggestions were added by new dependencies, use composer suggest to see details.
Generating optimized autoload files
Warning: Ambiguous class resolution, "App\Providers\AppServiceProvider" was found in both "C:/xampp/htdocs/chirper/app\Providers\AppServiceProvider.php" and "C:/xampp/htdocs/chirper/vendor/laravel/pint/app\Providers\AppServiceProvider.php", the first will be used.
Illuminate\Foundation\ComposerScripts::postAutoloadDump
#php artisan package:discover --ansi
INFO Discovering packages.
laravel/sail ................................................................................................................................ DONE
laravel/sanctum ............................................................................................................................. DONE
laravel/tinker .............................................................................................................................. DONE
nesbot/carbon ............................................................................................................................... DONE
nunomaduro/collision ........................................................................................................................ DONE
nunomaduro/termwind ......................................................................................................................... DONE
spatie/laravel-ignition ..................................................................................................................... DONE
80 packages you are using are looking for funding.
Use the composer fund command to find out more!
#php artisan vendor:publish --tag=laravel-assets --ansi --force
INFO No publishable resources for tag [laravel-assets].
No security vulnerability advisories found
Do you want to remove the existing VCS (.git, .svn..) history? [Y,n]?
i am getting the following issue once i run the command , however the project is creating but i want to know why the problem occurs .
I think the zip extension is not installed in your system.
You can use the following command in Ubuntu to check the necessary extensions.
Installation specific to a particular version of PHP (such as PHP 8.2)
sudo apt install php8.2-zip
You can check the post : Install PHP extensions for laravel
I recently installed laravel-8 and trying to install Laravel Jetstream for authentication following their official documentation. It's returning the below error.
$ composer require laravel/jetstream
Using version ^1.6 for laravel/jetstream
./composer.json has been updated
Running composer update laravel/jetstream
Loading composer repositories with package information
Updating dependencies
Lock file operations: 9 installs, 0 updates, 0 removals
- Locking bacon/bacon-qr-code (2.0.3)
- Locking dasprid/enum (1.0.3)
- Locking jaybizzle/crawler-detect (v1.2.103)
- Locking jenssegers/agent (v2.6.4)
- Locking laravel/fortify (v1.7.2)
- Locking laravel/jetstream (v1.6.3)
- Locking mobiledetect/mobiledetectlib (2.8.34)
- Locking paragonie/constant_time_encoding (v2.4.0)
- Locking pragmarx/google2fa (8.0.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 9 installs, 0 updates, 0 removals
- Downloading paragonie/constant_time_encoding (v2.4.0)
0/1 [>---------------------------] 0%
1/1 [============================] 100% - Installing dasprid/enum (1.0.3): Extracting archive
- Installing bacon/bacon-qr-code (2.0.3): Extracting archive
- Installing jaybizzle/crawler-detect (v1.2.103): Extracting archive
Install of jaybizzle/crawler-detect failed
- Installing paragonie/constant_time_encoding (v2.4.0): Extracting archive
- Installing pragmarx/google2fa (8.0.0): Extracting archive
- Installing laravel/fortify (v1.7.2): Extracting archive
- Installing mobiledetect/mobiledetectlib (2.8.34): Extracting archive
- Installing jenssegers/agent (v2.6.4): Extracting archive
- Installing laravel/jetstream (v1.6.3): Extracting archive
0 [>---------------------------] 0 [>---------------------------]
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
[RuntimeException]
Could not delete C:\wamp\www\earnday/vendor/composer/18d01bbf\JayBizzle-Crawler-Detect-3efa286\src\Fixtures\Crawlers.php:
This can be due to an antivirus or the Windows Search Indexer locking the file while they are analyzed
What's the possible fix?
I'm installing a fresh Laravel 5.7 with this command:
composer global require laravel/installer
~/.composer/vendor/bin/laravel new plugin-test3
here is the full log:
Crafting application...
You should verify that the "storage" and "bootstrap/cache" directories are writable.
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 86 installs, 0 updates, 0 removals
- Installing vlucas/phpdotenv (v2.5.1): Loading from cache
- Installing symfony/css-selector (v4.2.1): Loading from cache
- Installing tijsverkoyen/css-to-inline-styles (2.2.1): Loading from cache
- Installing symfony/polyfill-php72 (v1.10.0): Loading from cache
- Installing symfony/polyfill-mbstring (v1.10.0): Loading from cache
- Installing symfony/var-dumper (v4.2.1): Loading from cache
- Installing symfony/routing (v4.2.1): Loading from cache
- Installing symfony/process (v4.2.1): Loading from cache
- Installing symfony/polyfill-ctype (v1.10.0): Loading from cache
- Installing symfony/http-foundation (v4.2.1): Loading from cache
- Installing symfony/contracts (v1.0.2): Loading from cache
- Installing symfony/event-dispatcher (v4.2.1): Loading from cache
- Installing psr/log (1.1.0): Loading from cache
- Installing symfony/debug (v4.2.1): Loading from cache
- Installing symfony/http-kernel (v4.2.1): Loading from cache
- Installing symfony/finder (v4.2.1): Loading from cache
- Installing symfony/console (v4.2.1): Loading from cache
- Installing doctrine/lexer (v1.0.1): Loading from cache
- Installing egulias/email-validator (2.1.7): Loading from cache
- Installing swiftmailer/swiftmailer (v6.1.3): Loading from cache
- Installing paragonie/random_compat (v9.99.99): Loading from cache
- Installing ramsey/uuid (3.8.0): Loading from cache
- Installing psr/simple-cache (1.0.1): Loading from cache
- Installing psr/container (1.0.0): Loading from cache
- Installing opis/closure (3.1.2): Loading from cache
- Installing symfony/translation (v4.2.1): Loading from cache
- Installing nesbot/carbon (1.36.1): Loading from cache
- Installing monolog/monolog (1.24.0): Loading from cache
- Installing league/flysystem (1.0.49): Loading from cache
- Installing erusev/parsedown (1.7.1): Loading from cache
- Installing dragonmantank/cron-expression (v2.2.0): Loading from cache
- Installing doctrine/inflector (v1.3.0): Loading from cache
- Installing ralouphie/getallheaders (2.0.5): Loading from cache
- Installing psr/http-message (1.0.1): Loading from cache
- Installing guzzlehttp/psr7 (1.5.2): Loading from cache
- Installing guzzlehttp/promises (v1.3.1): Loading from cache
- Installing guzzlehttp/guzzle (6.3.3): Loading from cache
- Installing laravel/slack-notification-channel (v1.0.3): Loading from cache
- Installing laravel/framework (v5.7.19): Loading from cache
- Installing lcobucci/jwt (3.2.5): Loading from cache
- Installing php-http/promise (v1.0.0): Loading from cache
- Installing php-http/httplug (v1.1.0): Loading from cache
- Installing php-http/guzzle6-adapter (v1.1.1): Loading from cache
- Installing zendframework/zend-diactoros (1.8.6): Loading from cache
- Installing nexmo/client (1.6.0): Loading from cache
- Installing laravel/nexmo-notification-channel (v1.0.1): Loading from cache
- Installing fideloper/proxy (4.0.0): Loading from cache
- Installing nikic/php-parser (v4.1.0): Loading from cache
- Installing jakub-onderka/php-console-color (v0.2): Loading from cache
- Installing jakub-onderka/php-console-highlighter (v0.4): Loading from cache
- Installing dnoegel/php-xdg-base-dir (0.1): Loading from cache
- Installing psy/psysh (v0.9.9): Loading from cache
- Installing laravel/tinker (v1.0.8): Loading from cache
- Installing beyondcode/laravel-dump-server (1.2.2): Loading from cache
- Installing fzaninotto/faker (v1.8.0): Loading from cache
- Installing hamcrest/hamcrest-php (v2.0.0): Loading from cache
- Installing mockery/mockery (1.2.0): Loading from cache
- Installing filp/whoops (2.3.1): Loading from cache
- Installing nunomaduro/collision (v2.1.1): Loading from cache
- Installing sebastian/version (2.0.1): Loading from cache
- Installing sebastian/resource-operations (2.0.1): Loading from cache
- Installing sebastian/object-reflector (1.1.1): Loading from cache
- Installing sebastian/recursion-context (3.0.0): Loading from cache
- Installing sebastian/object-enumerator (3.0.3): Loading from cache
- Installing sebastian/global-state (2.0.0): Loading from cache
- Installing sebastian/exporter (3.1.0): Loading from cache
- Installing sebastian/environment (4.0.1): Loading from cache
- Installing sebastian/diff (3.0.1): Loading from cache
- Installing sebastian/comparator (3.0.2): Loading from cache
- Installing phpunit/php-timer (2.0.0): Loading from cache
- Installing phpunit/php-text-template (1.2.1): Loading from cache
- Installing phpunit/php-file-iterator (2.0.2): Loading from cache
- Installing theseer/tokenizer (1.1.0): Loading from cache
- Installing sebastian/code-unit-reverse-lookup (1.0.1): Loading from cache
- Installing phpunit/php-token-stream (3.0.1): Loading from cache
- Installing phpunit/php-code-coverage (6.1.4): Loading from cache
- Installing doctrine/instantiator (1.1.0): Loading from cache
- Installing webmozart/assert (1.3.0): Loading from cache
- Installing phpdocumentor/reflection-common (1.0.1): Loading from cache
- Installing phpdocumentor/type-resolver (0.4.0): Loading from cache
- Installing phpdocumentor/reflection-docblock (4.3.0): Loading from cache
- Installing phpspec/prophecy (1.8.0): Loading from cache
- Installing phar-io/version (2.0.1): Loading from cache
- Installing phar-io/manifest (1.0.3): Loading from cache
- Installing myclabs/deep-copy (1.8.1): Loading from cache
- Installing phpunit/phpunit (7.5.1): Loading from cache
symfony/routing suggests installing doctrine/annotations (For using the annotation loader)
symfony/routing suggests installing symfony/config (For using the all-in-one router or any loader)
symfony/routing suggests installing symfony/dependency-injection (For loading routes from a service)
symfony/routing suggests installing symfony/expression-language (For using expression matching)
symfony/routing suggests installing symfony/yaml (For using the YAML loader)
symfony/contracts suggests installing psr/cache (When using the Cache contracts)
symfony/contracts suggests installing symfony/cache-contracts-implementation
symfony/contracts suggests installing symfony/service-contracts-implementation
symfony/event-dispatcher suggests installing symfony/dependency-injection
symfony/http-kernel suggests installing symfony/browser-kit
symfony/http-kernel suggests installing symfony/config
symfony/http-kernel suggests installing symfony/dependency-injection
symfony/console suggests installing symfony/lock
swiftmailer/swiftmailer suggests installing true/punycode (Needed to support internationalized email addresses, if ext-intl is not installed)
paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)
ramsey/uuid suggests installing ircmaxell/random-lib (Provides RandomLib for use with the RandomLibAdapter)
ramsey/uuid suggests installing ext-libsodium (Provides the PECL libsodium extension for use with the SodiumRandomGenerator)
ramsey/uuid suggests installing ext-uuid (Provides the PECL UUID extension for use with the PeclUuidTimeGenerator and PeclUuidRandomGenerator)
ramsey/uuid suggests installing moontoast/math (Provides support for converting UUID to 128-bit integer (in string form).)
ramsey/uuid suggests installing ramsey/uuid-doctrine (Allows the use of Ramsey\Uuid\Uuid as Doctrine field type.)
ramsey/uuid suggests installing ramsey/uuid-console (A console application for generating UUIDs with ramsey/uuid)
symfony/translation suggests installing symfony/config
symfony/translation suggests installing symfony/yaml
nesbot/carbon suggests installing friendsofphp/php-cs-fixer (Needed for the `composer phpcs` command. Allow to automatically fix code style.)
nesbot/carbon suggests installing phpstan/phpstan (Needed for the `composer phpstan` command. Allow to detect potential errors.)
monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB)
monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)
monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)
monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)
monolog/monolog suggests installing mongodb/mongodb (Allow sending log messages to a MongoDB server via PHP Driver)
monolog/monolog suggests installing php-amqplib/php-amqplib (Allow sending log messages to an AMQP server using php-amqplib)
monolog/monolog suggests installing php-console/php-console (Allow sending log messages to Google Chrome)
monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)
monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server)
monolog/monolog suggests installing sentry/sentry (Allow sending log messages to a Sentry server)
league/flysystem suggests installing league/flysystem-aws-s3-v2 (Allows you to use S3 storage with AWS SDK v2)
league/flysystem suggests installing league/flysystem-aws-s3-v3 (Allows you to use S3 storage with AWS SDK v3)
league/flysystem suggests installing league/flysystem-azure (Allows you to use Windows Azure Blob storage)
league/flysystem suggests installing league/flysystem-cached-adapter (Flysystem adapter decorator for metadata caching)
league/flysystem suggests installing league/flysystem-eventable-filesystem (Allows you to use EventableFilesystem)
league/flysystem suggests installing league/flysystem-rackspace (Allows you to use Rackspace Cloud Files)
league/flysystem suggests installing league/flysystem-sftp (Allows you to use SFTP server storage via phpseclib)
league/flysystem suggests installing league/flysystem-webdav (Allows you to use WebDAV storage)
league/flysystem suggests installing league/flysystem-ziparchive (Allows you to use ZipArchive adapter)
league/flysystem suggests installing spatie/flysystem-dropbox (Allows you to use Dropbox storage)
league/flysystem suggests installing srmklive/flysystem-dropbox-v2 (Allows you to use Dropbox storage for PHP 5 applications)
laravel/framework suggests installing aws/aws-sdk-php (Required to use the SQS queue driver and SES mail driver (^3.0).)
laravel/framework suggests installing doctrine/dbal (Required to rename columns and drop SQLite columns (^2.6).)
laravel/framework suggests installing league/flysystem-aws-s3-v3 (Required to use the Flysystem S3 driver (^1.0).)
laravel/framework suggests installing league/flysystem-cached-adapter (Required to use the Flysystem cache (^1.0).)
laravel/framework suggests installing league/flysystem-rackspace (Required to use the Flysystem Rackspace driver (^1.0).)
laravel/framework suggests installing league/flysystem-sftp (Required to use the Flysystem SFTP driver (^1.0).)
laravel/framework suggests installing moontoast/math (Required to use ordered UUIDs (^1.1).)
laravel/framework suggests installing pda/pheanstalk (Required to use the beanstalk queue driver (^3.0).)
laravel/framework suggests installing predis/predis (Required to use the redis cache and queue drivers (^1.0).)
laravel/framework suggests installing pusher/pusher-php-server (Required to use the Pusher broadcast driver (^3.0).)
laravel/framework suggests installing symfony/dom-crawler (Required to use most of the crawler integration testing tools (^4.1).)
laravel/framework suggests installing symfony/psr-http-message-bridge (Required to psr7 bridging features (^1.0).)
lcobucci/jwt suggests installing mdanter/ecc (Required to use Elliptic Curves based algorithms.)
psy/psysh suggests installing ext-pdo-sqlite (The doc command requires SQLite to work.)
psy/psysh suggests installing hoa/console (A pure PHP readline implementation. You'll want this if your PHP install doesn't already support readline or libedit.)
filp/whoops suggests installing whoops/soap (Formats errors as SOAP responses)
sebastian/global-state suggests installing ext-uopz (*)
phpunit/php-code-coverage suggests installing ext-xdebug (^2.6.0)
phpunit/phpunit suggests installing phpunit/php-invoker (^2.0)
phpunit/phpunit suggests installing ext-xdebug (*)
Writing lock file
Generating optimized autoload files
> #php -r "file_exists('.env') || copy('.env.example', '.env');"
> #php artisan key:generate --ansi
PHP Warning: Uncaught ErrorException: require(/Users/julien/Documents/Projets/plugin-test3/routes/api.php): failed to open stream: No such file or directory in /Users/julien/Documents/Projets/plugin-test3/vendor/laravel/framework/src/Illuminate/Routing/Router.php:417
Stack trace:
#0 /Users/julien/Documents/Projets/plugin-test3/vendor/laravel/framework/src/Illuminate/Routing/Router.php(417): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'require(/Users/...', '/Users/julien/D...', 417, Array)
#1 /Users/julien/Documents/Projets/plugin-test3/vendor/laravel/framework/src/Illuminate/Routing/Router.php(417): require()
#2 /Users/julien/Documents/Projets/plugin-test3/vendor/laravel/framework/src/Illuminate/Routing/Router.php(373): Illuminate\Routing\Router->loadRoutes('/Users/julien/D...')
#3 /Users/julien/Documents/Projets/plugin-test3/vendor/laravel/framework/src/Illuminate/Routing/RouteRegistrar.php(121): Illuminate\Routing\Router->group(Array, '/Users/julien/D...')
#4 /Users/julien/Documents/Projets/plugin-t in /Users/julien/Documents/Projets/plugin-test3/vendor/laravel/framework/src/Illuminate/Routing/Router.php on line 417
PHP Fatal error: Illuminate\Routing\Router::loadRoutes(): Failed opening required '/Users/julien/Documents/Projets/plugin-test3/routes/api.php' (include_path='.:/usr/local/Cellar/php/7.2.8/share/php/pear') in /Users/julien/Documents/Projets/plugin-test3/vendor/laravel/framework/src/Illuminate/Routing/Router.php on line 417
In Router.php line 417:
Illuminate\Routing\Router::loadRoutes(): Failed opening required '/Users/ju
lien/Documents/Projets/plugin-test3/routes/api.php' (include_path='.:/usr/l
ocal/Cellar/php/7.2.8/share/php/pear')
Script #php artisan key:generate --ansi handling the post-create-project-cmd event returned with error code 255
Application ready! Build something amazing.
I have the latest version of laravel installer:
~/.composer/vendor/bin/laravel --version
--> Laravel Installer 2.0.1
I also have php7.2
$ php --version
PHP 7.2.8 (cli) (built: Jul 19 2018 12:15:24) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.8, Copyright (c) 1999-2018, by Zend Technologies
What can I do about that?
I try to install symfony via composer on Windows 7 with command
$ composer create-project symfony/framework-standard-edition www1
And I get the error
[ErrorException]
Use of undefined constant STDIN - assumed 'STDIN'
What do I need to do to solve this issue?
PS This is full log:
C:\WebServers\home\asd>composer create-project symfony/framework-standard-edition www1
Warning: Composer should be invoked via the CLI version of PHP, not the cgi-fcgi SAPI
Installing symfony/framework-standard-edition (v2.6.4)
- Installing symfony/framework-standard-edition (v2.6.4)
Loading from cache
Created project in www1
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
- Installing doctrine/lexer (v1.0.1)
Loading from cache
- Installing doctrine/annotations (v1.2.3)
Loading from cache
- Installing twig/twig (v1.18.0)
Loading from cache
- Installing psr/log (1.0.0)
Loading from cache
- Installing doctrine/inflector (v1.0.1)
Loading from cache
- Installing doctrine/collections (v1.2)
Loading from cache
- Installing doctrine/cache (v1.4.0)
Loading from cache
- Installing doctrine/common (v2.4.2)
Loading from cache
- Installing symfony/symfony (v2.6.4)
Loading from cache
- Installing jdorn/sql-formatter (v1.2.17)
Loading from cache
- Installing doctrine/doctrine-cache-bundle (v1.0.1)
Loading from cache
- Installing doctrine/dbal (v2.4.4)
Loading from cache
- Installing doctrine/doctrine-bundle (v1.3.0)
Loading from cache
- Installing doctrine/orm (v2.4.7)
Loading from cache
- Installing incenteev/composer-parameter-handler (v2.1.0)
Loading from cache
- Installing sensiolabs/security-checker (v2.0.1)
Loading from cache
- Installing sensio/distribution-bundle (v3.0.16)
Loading from cache
- Installing sensio/framework-extra-bundle (v3.0.4)
Loading from cache
- Installing kriswallsmith/assetic (v1.2.1)
Loading from cache
- Installing symfony/assetic-bundle (v2.6.1)
Loading from cache
- Installing monolog/monolog (1.12.0)
Loading from cache
- Installing symfony/monolog-bundle (v2.7.1)
Loading from cache
- Installing swiftmailer/swiftmailer (v5.3.1)
Loading from cache
- Installing symfony/swiftmailer-bundle (v2.3.8)
Loading from cache
- Installing twig/extensions (v1.2.0)
Loading from cache
- Installing sensio/generator-bundle (v2.5.1)
Loading from cache
kriswallsmith/assetic suggests installing leafo/lessphp (Assetic provides the integration with the lessphp LESS compiler)
kriswallsmith/assetic suggests installing leafo/scssphp (Assetic provides the integration with the scssphp SCSS compiler)
kriswallsmith/assetic suggests installing leafo/scssphp-compass (Assetic provides the integration with the SCSS compass plugin)
kriswallsmith/assetic suggests installing patchwork/jsqueeze (Assetic provides the integration with the JSqueeze JavaScript compressor)
kriswallsmith/assetic suggests installing ptachoire/cssembed (Assetic provides the integration with phpcssembed to embed data uris)
symfony/assetic-bundle suggests installing kriswallsmith/spork (to be able to dump assets in parallel)
monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB)
monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)
monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)
monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)
monolog/monolog suggests installing raven/raven (Allow sending log messages to a Sentry server)
monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)
monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server)
monolog/monolog suggests installing videlalvaro/php-amqplib (Allow sending log messages to an AMQP server using php-amqplib)
Generating autoload files
Would you like to install Acme demo bundle? [y/N]
[ErrorException]
Use of undefined constant STDIN - assumed 'STDIN'
create-project [-s|--stability="..."] [--prefer-source] [--prefer-dist] [--repository-url="..."] [--dev] [--no-dev] [--no-plugins] [--no-cus
tom-installers] [--no-scripts] [--no-progress] [--keep-vcs] [--no-install] [--ignore-platform-reqs] [package] [directory] [version]
Also in got application were 3 empty files in folder "web/bundles" where must be folders of bundles with css files and images. Because of this there were no images on page "web/app_dev.php" in browser. Then I executed the command
php app/console assets:install web
and in "web/bundles" appeared images and css files and then images appeared on page "web/app_dev.php" so it displays correctly.
This error might appear because your php is installed CGI binary mode, not CLI. A workaround for this might be putting at the top of your AppKernel.php file following line:
define('STDIN',fopen("php://stdin","r"));
I found that launching composer in non-interactive mode (composer -n update) can help if the manual STDIN declaration solution is not practical to implement.
You might need to delete the vendor folders that are generating the prompts, or to use --prefer-source for example, but that's another story.