Questions tagged [composer-php]

Composer is an application-level package manager for the PHP programming language. It provides a standard format for managing with ease PHP-based project dependencies (libraries) and was strongly inspired by Node.js's "npm" and Ruby's "bundler". Use with the [php] tag

Filter by
Sorted by
Tagged with
0 votes
0 answers
15 views

Class Trait does not comply with psr-4 autoloading standard. Skipping [duplicate]

I'm encountering an issue while deploying my PHP application. When I perform autoload using Composer, I receive the following error message: "does not comply with PSR-4 autoloading standard. ...
Evil King's user avatar
-1 votes
0 answers
10 views

composer update and php artisan not working

Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1 enter image description here showing this error when i use ------------- composer update ...
Karishma sharma's user avatar
-1 votes
0 answers
16 views

Using intervention with imagemagick godaddy php [closed]

Running php 7.4 on godaddy shared linux server, Couldn't get imagemagick working so installed intervention with composer, but I don't know how to use it to get my code working. Please help me out here....
techtheclone's user avatar
0 votes
1 answer
48 views

Why might Gitlab stop installing PHP dependencies in composer.json from recently created projects?

We have a box version of GitLab. There is a group in it called lab. In this group there are many long-established projects (PHP libraries). There are also several new projects created in this group. ...
Stanislav Belichenko's user avatar
-3 votes
0 answers
27 views

How to fix Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 255 [closed]

Illuminate\Foundation\ComposerScripts::postAutoloadDump Deprecation Notice: Return type of Illuminate\Container\Container::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(...
Shalom Putri's user avatar
-1 votes
1 answer
28 views

How to Set Up Composer.json file to work with Magento 2.4.6 p3

We just got a fresh new Magento 2.4.6 p3 CE version installed. So we do want to install some extensions starting with these module: composer require mageplaza/module-core `In JsonFile.php line 347: &...
Ginoi Marketpace's user avatar
-2 votes
1 answer
78 views

Installing Laravel using Composer won't work [closed]

C:\xampp\htdocs>composer create-project laravel/laravel try11 Creating a "laravel/laravel" project at "./try11" Installing laravel/laravel (v10.2.9) Installing laravel/laravel (...
Keyla's user avatar
  • 1
-1 votes
0 answers
19 views

Anything I install with composer fails to install

I recently bought a new Mac. I installed Homebrew, installed PHP and Composer with Homebrew. Made sure my PATH for composer is set. Trying to run composer global require "squizlabs/...
Jonathan's user avatar
-2 votes
0 answers
41 views

Composer and npm not working in PhpStorm terminal?

I hope you can be of help to me. Whenever I want to use composer or npm in the terminal of PhpStorm (for example to composer create a project or to npm initialize a project), nothing happens. And I ...
wolfie's user avatar
  • 1
-2 votes
0 answers
34 views

I can't call my model in my controller, it's a php project with composer only [closed]

I've already configured composer.json, put the name space in controllers and models, but I keep getting the error: Error Object ( [message:protected] => Class 'Classes\Model\User' not found [string:...
Deborah Dalonso's user avatar
-1 votes
0 answers
66 views

vendor autoload null/empty in my class file [duplicate]

I am trying to use a composer package on a php project for the first time but clearly do not know what I am doing and was hoping for some guidance. I autoload in my configuration file which is ...
php-b-grader's user avatar
  • 3,207
-1 votes
0 answers
22 views

How to update PHP on Lando/Composer from 8.1.18 to 8.1.25?

Apologies if this is missing some information but I'll try and explain what we've got. We've got a drupal9 recipe that has been installed via composer/lando/drush. On the host if do php -v I get PHP 8....
Burgered's user avatar
-1 votes
0 answers
22 views

proxy and php problem installing composer [closed]

I tried installing composer but I keep getting this error. to note I am using a company laptop, so it has its own proxy which I added to the environment variables. The Composer installer script was ...
Shahin's user avatar
  • 23
0 votes
0 answers
8 views

Connect Azure Actefacto and Laravel Compose

I'm new to this. I don't know if it's possible or is there a way to connect a Laravel Compose and an Azure Actifact to get the in my laravel applicationI've done some testing but I don't see a way to ...
Ramon Moraga's user avatar
-1 votes
0 answers
85 views

I get Permission denied when starting composer from Docker, how do I fix it?

There is Ubuntu Desktop 20.04 - a fresh installation, Docker Desktop has been installed for the convenience of container management. I have created 3 containers: Nginx PHP-FMP PHP-CLI In the ...
Kirill's user avatar
  • 11
-2 votes
1 answer
43 views

Composer Install Fails [closed]

I'm facing an issue while attempting to run composer install for a GitHub project. Here's a summary of the steps I've taken: Downloaded the project as a ZIP file. Extracted and compressed the files. ...
XM01 - stands with Palestine's user avatar
-1 votes
1 answer
110 views

Error: "Composer cannot be run safely on non-cli sapis with register_argc_argv=On"

I tried to install a laravel project on my hosting and I need to install composer. If I write php composer.phar I get the message: Composer cannot be run safely on non-cli sapis with ...
aksed's user avatar
  • 1
0 votes
0 answers
27 views

Composer outdated command export to a file such as excel or csv?

I'm running composer outdated and I have a toooon of outdated packages, over 300, and I'd like to export this to an excel sheet or something like that. Does anyone have any idea how I could do this? I ...
James Anderson's user avatar
-1 votes
2 answers
84 views

Symfony install not working in docker container

I ran into some issue with symfony install within docker. I would like to create a docker image, that automaticly install symfony and runs it. I'm using docker-compose. Here is my docker-compose.yml ...
Csaba Vörös's user avatar
-1 votes
0 answers
31 views

Is it really possible to use gitlab source for my dependencies which are currently using repman?

In my project composer json i have the following repos: "repositories": [ { "type": "composer", "url": "https://repo-repman.something.su" }, { "...
farmaper1561's user avatar
-1 votes
0 answers
46 views

Laravel Sail Windows 10 unable to install dependencies

I'm trying to set up a laravel application on windows. I've got WSL, I cloned my repo and ran the command provided in the Laravel documentation to install the dependencies so that I can run sail up: ...
Ben Pople's user avatar
0 votes
3 answers
82 views

Store data in database after run composer install command in Laravel?

I'm working on Laravel 10 project and I want to add some data to database when I run the composer install <package_name>. To do that, I have created a custom PHP file and call that ...
Viraj Madhushan's user avatar
-1 votes
3 answers
72 views

Installing vendor library using composer [closed]

I'm trying to use the https://github.com/webonyx/graphql-php/ library to make graphql requests. But for some reason it doesn't work, and I can't figure out why. I'm using this command to install: ...
Finduilas's user avatar
  • 730
0 votes
0 answers
63 views

Class "Intervention\Image\ImageServiceProvider" not found

when I try to upload an image from my CMS, I get this error: Class "Intervention\Image\ImageServiceProvider" not found I found out that I am missing intervention folder in vendor. So, I ...
Kristiyan Marinov's user avatar
-1 votes
1 answer
58 views

How can I resolve conflicts with packages while updating livewire version from 2.0 to 3.0?

I have a laravel 8.75 project. It uses livewire 2.12 and some others packages including rappasoft/laravel-livewire-tables 2.15 and wire-elements/modal 1.0. I want to add this package to my project : ...
Petitemo's user avatar
  • 129
0 votes
1 answer
75 views

Composer install in a dockerfile not in entrypoint

For context, I'm trying to build an image of a symfony application with php (fpm), nginx and mysql. I'm having some trouble trying to run composer install inside a dockerfile and not in an entrypoint. ...
Julien Gidel's user avatar
0 votes
1 answer
17 views

Why can't my Drupal PHPUnit test seem to autoload a shared test fixture/utility class?

In my Drupal 10.x project, I have a test that is attempting to mock a class that I created to be used by multiple tests (call it Drupal\Tests\my_module\MyTestObject). The code looks something like ...
GuyPaddock's user avatar
  • 2,390
0 votes
0 answers
31 views

Composer - Substantial drift from celery problem

I'm getting Substantial drift from celery@ may mean clocks are out of sync. Current drift is 17 seconds. I've read that this issue can be related to NTP clock synchronization, but I'm uncertain about ...
curious's user avatar
  • 11
-1 votes
0 answers
26 views

composer.bat is not working in the google-api-client file

I have a custom plugin that requires google api how but each time I run the commands it shows me this error: C:\xampp\htdocs\youtube\wp-content\plugins\yt_m\google-api-client> composer require ...
Zai Elamri Soulayma's user avatar
1 vote
0 answers
39 views

How to configure Renovate to use composer plugins

I'm trying to configure Renovate on a Symfony project that uses Flex to check conflicting versions. In my repo Renovate should do an update for symfony/monolog-bundle 3.8.0 -> 3.10.0 but it also ...
C. Schmidt's user avatar
-1 votes
1 answer
77 views

Composer 2.2 gives error on using PHP below 7.3 when it is using 7.3 but shouldnt need it anyway

On CentOS 7 (company boxes so cannot change). Laravel builds stopped working last week with Composer 1. Upgraded to Composer 2.3 and upgraded to PHP 7.3. Began getting the following: 'Connecting to a ...
Loom's user avatar
  • 81
-1 votes
0 answers
39 views

can't upgrade laravel 5.1.46 to 5.8

this is my composer.json and i want to update some fonctionnalities in thiss platform but the problem is i couldn't install laravel 5.8 because of some packages and i can t upgrade them!!! if anyone ...
AZY's user avatar
  • 1
0 votes
0 answers
77 views

Can not PUT, POST, DELETE http method in PHP rest api

my api follow source path Src/Api/Notes/index.php: <?php if ($_SERVER['REQUEST_METHOD'] === 'GET') { // TODO } elseif ($_SERVER['REQUEST_METHOD'] === 'POST') { // TODO } ...
Đức Hà Việt's user avatar
-1 votes
0 answers
69 views

PHP Warning: require_once(../vendor/autoload.php): Failed to open stream: No such file or directory

When I debug index.php, I get this error: PHP Warning: require_once(../vendor/autoload.php): Failed to open stream: No such file or directory in D:\ScoutingWebsite1\loginPage\config.php on line 2 PHP ...
A persons's user avatar
-1 votes
0 answers
10 views

How to get the most recent tags for a mirrored repo to pick up

I have a mirrored repo that is not able to pick up a tag in gitlab that I add through the gui. It picks up previous tags up, but stops picking them up when I add new ones. I have tried creating a new ...
Tommy888's user avatar
-1 votes
0 answers
48 views

Class "Facade\Ignition\IgnitionServiceProvider" not found, updating Laravel 8.0 to 9.0

Right now, I'm upgrading a large system on Laravel Nova, following instructions from: https://laravel.com/docs/9.x/upgrade most relevantly: https://laravel.com/docs/9.x/upgrade#updating-dependencies ...
Code Casanova's user avatar
-1 votes
0 answers
40 views

Composer installed/working but no composer.phar file

I have Composer installed/working on my local machine which is running Linux Mint. I’m new to Composer. I attempted to issue a command using composer.phar and it failed. I searched my entire file ...
robinsf21's user avatar
-1 votes
0 answers
10 views

Could not update packages in composer - laravel application hosted on plesk [duplicate]

This error is throwing while update the packages in composer, Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set ...
Shanthakumar Lakshan's user avatar
1 vote
1 answer
57 views

"php artisan serve" returns "Operation not permitted"

I am currently trying to host a Laravel project (which works perfectly fine running locally) on a linux server (via ssh) in the cloud. I have uploaded all the project files and thought I could run php ...
Felix's user avatar
  • 23
-1 votes
0 answers
15 views

How to manage composer versions between dev and production

Here's my idea workflow - is there any way to do this? I have a base laravel app "base" I have multiple packages that add functionality to base: settings, users, helpdesk I also have ...
Blakey UK's user avatar
-2 votes
0 answers
25 views

Sulu Community Bundle install fails [duplicate]

i wanted to create a sulu login page for the website. I looked at some options and the Sulu Community Bundle looked like the perfect solution. But when i try to install it on a new unedited Sulu ...
Waldo's user avatar
  • 45
-1 votes
0 answers
102 views

dyld[5360]: Library not loaded (specifically libtiff.5.dylib) on Mac

I got this error whenever I try using composer/runing any php command on the terminal: dyld[5087]: Library not loaded: /usr/local/opt/libtiff/lib/libtiff.5.dylib Referenced from: <C7791893-B666-...
Hadizat Abdulhakieem's user avatar
0 votes
1 answer
47 views

Laravel update to version 9 but get problem with composer require ext-ioncube-loader

I have a requirement in composer.json: "ext-ioncube-loader": "*" but when I update the others package, it alert me with error: Problem 1 - Root composer.json requires PHP extension ...
DogCom0228's user avatar
0 votes
0 answers
16 views

I can't install mobgodb versions newer than 3.0.1 on yii2 [duplicate]

For some reason composer can't install mongodb versions newer than 3.0.1 Gives an error: Your requirements could not be resolved to an installable set of packages. Problem 1 Root composer.json ...
Илья Половников's user avatar
-1 votes
3 answers
165 views

TYPO3-Problem with major-upgrade via composer

I'm making my first steps with the composer and have tried to make an Upgrade from Vs. 10.x auf 11.x Sadly this error is produced and I dont know how to fix it: Problem 1 - Root composer.json ...
Ralho's user avatar
  • 9
1 vote
2 answers
158 views

Composer different PHP versions and common PSR

There are tons of answers on different PHP versions and Composer. But none seems to address my issue. I have to switch back from PHP 8 to PHP 7 on my Ubuntu for a certain project. No problem so far - ...
ESP32's user avatar
  • 8,234
-1 votes
1 answer
62 views

How merge package composer.json file?

I create my own package located in the root folder named /ECommerce. This directory contains composer.json and my package code. When I want to add a new package to ECommerce/composer.json, which is ...
Ivan's user avatar
  • 5,141
0 votes
0 answers
39 views

Symfony 6 bunde uninstall twig error "The "xxx" directory does not exist (xxx)"

I am trying to install/uninstall package using Symfony Process and composer $commands = []; if ('1' == $installed) { $commands[] = ['php', '/usr/local/bin/composer', 'remove', $extensionName]; } ...
Talha Amir's user avatar
20 votes
3 answers
6k views

dyld[45923]: Library not loaded: /usr/local/opt/libavif/lib/libavif.15.dylib

dyld[45923]: Library not loaded: /usr/local/opt/libavif/lib/libavif.15.dylib Referenced from: <735019D8-AF6E-3CD1-9AD4-3BE47CB22D4F> /usr/local/Cellar/gd/2.3.3_5/lib/libgd.3.dylib Reason: ...
Shafiur Rahman Sifat's user avatar
-1 votes
1 answer
61 views

I notice that i have got error when will i run bin/cake servrer on my linux terminal I already install latest version of composer and php in my system

i have php latest version 8.2.10 composer version 2.6.3 when i want to launch my cake php to type this command bin/cake server i got this error please give the solution PHP Warning: require(/opt/...
vivek's user avatar
  • 1

1
2 3 4 5
223