I'm facing a problem with my online environment, on my localhost using Laragon, everything worked without any problems.
My online environment
-- My composer version 1.8.5
-- My laravel version 5.8
-- My PHP version 7.3.0
-- Fileinfo support enable
-- GD Support enabled / Version bundled (2.1.0 compatible)
-- No Imagick PHP extension installed
I followed exactly the installation instructions on the official website.
php composer.phar require intervention/image
Add config/app.php $providers: Intervention\Image\ImageServiceProvider::class
Add config/app.php $alias: 'Image' => Intervention\Image\Facades\Image::class
The problem starts now. When I try to run the statement:
$ php artisan vendor:publish --provider="Intervention\Image\ImageServiceProviderLaravel5"
I get the following message
[waservice#web7081 portal]$ php artisan vendor:publish --provider="Intervention\Image\ImageServiceProviderLaravel5"
In ProviderRepository.php line 208:
Class 'Intervention\Image\ImageServiceProvider' not found
Dump-autoload command, I get the following return:
[waservice#web7081 ~]$ php composer.phar dump-autoload
Generated autoload files containing 0 classes
Optimized dump-autoload command, I get the following return:
[waservice#web7081 ~]$ php composer.phar dump-autoload -o
Generated optimized autoload files containing 156 classes
Here is part of my composer.json code
"require": {
"php": "^7.1.3",
"fideloper/proxy": "^4.0",
"laravel/framework": "5.8.*",
"laravel/tinker": "^1.0",
"intervention/image": "dev-master"
},
Return of my composer update:
[waservice#web7081 ~]$ php composer.phar update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
Return of my composer install
[waservice#web7081 ~]$ php composer.phar install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Generating autoload files
Return of the intervention image installation command
[waservice#web7081 ~]$ php composer.phar require intervention/image
Using version ^2.4 for intervention/image
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
The intervention folder is present in the project vendor folder
I have no idea what may be happening, in Internet search I also find no solution, always the same instructions that are the ones on the developer's own site.
check if when installing intervention/image you were in the correct route of the project.
Related
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
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.
Recently i installed composer and Ratchet. Everything worked fine but now i need to install FFMPEG through Github. Json and Lock files were already been created and i just upgraded it. I have FFMPEG in .lock file and in JSON file (as it was told). So now, when i'm running
./composer.phar install
it is not installing and telling me
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Generating autoload files
What is wrong with this installer?
I can't get composer to work. It also fails when I try to deploy to Heroku.
$ composer update
[ReflectionException]
Class Fxp\Composer\AssetPlugin\Repository\NpmRepository does not exist
$ rm -r ~/.composer
$ composer global require fxp/composer-asset-plugin --no-plugins
Changed current directory to /home/Chloe/.composer
Using version ^1.1 for fxp/composer-asset-plugin
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing fxp/composer-asset-plugin (v1.1.4)
Downloading: 100%
Writing lock file
Generating autoload files
$ composer update
[ReflectionException]
Class Fxp\Composer\AssetPlugin\Repository\NpmRepository does not exist
I tried the steps in Composer throws [ReflectionException] Class Fxp\Composer\AssetPlugin\Repository\NpmRepository does not exist and Updating composer throws exception Class Fxp\Composer\AssetPlugin\Repository\NpmRepository does not exist, but it still fails.
I also ran composer self-update and it still doesn't work.
PHP 5.6.19, Composer version 1.1-dev, Composer version 1.0.2 2016-04-21 12:30:18
The problem is that you require a version of fxp/composer-asset-plugin that's now broken with composer >= 1.0.
"fxp/composer-asset-plugin": "^1.0",
Since you've installed it globally, you can remove it from your composer.json.
I had a similar error. Try
composer global require fxp/composer-asset-plugin --no-plugins
this worked for me
I'm creating a project that is going to be around for a long time, so I like the look of Symfony 2.3 LTS.
I did this in Composer, but it installed 2.4.2 instead:
php composer.phar create-project symfony/framework-standard-edition 2.3.12
I then checked the composer.json and saw:
"symfony/symfony": "~2.4",
I changed that to 2.3 and ran an update but all sorts of errors prevented me.
How do I install 2.3 LTS?
A simple mistake: you're adding 2.3.12 as the path to create the project in, not the version constraint. Try this command:
composer create-project symfony/framework-standard-edition /path/to/project 2.3.*