laravel installing with composer in xampp in window 7 - php

composer is installed successfully. but when I try to install laravel it shows this
Failed to decode response: zlib_decode(): data error
Retrying with degraded mode

composer config --global repo.packagist composer https://packagist.org
then try again

Related

failed to install laravel via composer, failed to install symfony

i just installed laravel for the first time and got this error, i have reinstalled Composer many times but it doesn't work, maybe you guys can help me out
PHP version 8.2
i installed laravel global installer, but it shows symfony things error, i have reinstalled composer but it doesn't work
please see this url ( installation laravel)
first: install composer on OS (Linux , Windows or MAC)
If you have already installed Composer, you must be clear chache in composer:
php composer.phar clear-cache
or this command:
composer clear-cache
then Using installation via composer:
composer create-project laravel/laravel example-app

My laravel installer just hang when i try to install laravel through composer

My laravel installer just hang when i try to install laravel through composer.
I have installed the composer.Then i went to the command prompt and type the command
"composer create-project --prefer-dist laravel/laravel blog"
But it appeared and not doing anything further
Try clearing composer cache
composer clearcache
If still doesn't work
Try using laravel installer for it
https://laravel.com/docs/7.x/installation#installing-laravel

Why composer package not install

I tried install package watson/rememberable on localhost and it's installed successfully but when tried install it on shared hosting package killed and added package name to composer.json file, but not installed source code to vendor folder. I tried install package by clearing composer & Laravel caches but package not installed. How I can install it correctly?
To install the most recent version, run the following command:
composer require watson/rememberable
OR
Add to composer.json file:
"require": {
"watson/rememberable": "^3.1",
},
After, Run this command in the command prompt: composer update
Maybe you are in production mode. In the .env file change:
APP_ENV=local
Then try installing again.

composer laravel install: "http://packagist.org" file could not be downloaded

I want to install laravel 2.2 through composer with
$ composer create-project --prefer-dist laravel/laravel sampleBackend 5.2
but every time i do that composer shows a message:
The
"http://packagist.org/p/provider-2014%2490c266c2df21924a932e564b7f39bf03d55b933fbe43744a6056eab59b7b4cf9.json"
file could not be downloaded: failed to open stream: HTTP request
failed! http://packagist.org could not be fully loaded, package
information was loaded from the local cache and may be out of date
Clear composer cache first by running
composer clear-cache
Then run this command
composer -vvv
This solution worked for me when I was trying to install laravel.

Installing Symfony2 with composer failed on mac os

Trying to install Symfony2 via composer failer.
It'seems to be a access right issue :
cmd :
composer create-project symfony/framework-standard-edition /Users/anthonydiniro/WWW/win4u2.com
result:
Installing symfony/framework-standard-edition (v2.5.0)
- Installing symfony/framework-standard-edition (v2.5.0)
Downloading: 100%
[ErrorException]
copy(/Users/anthonydiniro/.composer/cache/files/symfony/framework-standard-edition/96cf36b581c9cd4827fe8c973080a6db085a49b6.zip): failed to open stream: P
ermission denied
Thanks for help
As always, the first good thing to try if you have encountered an error is to run
php composer.phar self-update
That will ensure the latest composer binaries. Then, run your installation again ;)
Try what jperovic said first!
otherwise try sudo composer create-project symfony/framework-standard-edition /Users/anthonydiniro/WWW/win4u2.com
If that doesn't work try sudo chmod 777 -R /Users/anthonydiniro/.composer/cache/

Categories