Questions tagged [composer]

Composer is a dependency manager for PHP.

Composer is a PHP dependency manager which is similar in concept to bundler or cpan. It can be used to install PHP packages and their dependencies on an as-needed basis.

32 questions
6
votes
1 answer

docker-compose exec composer as user

I have a docker-compose setup working perfect on my local machine for my symfony projects with nginx, php7-fpm and mysql. I often need to install new packages via composer, so I just deliver the command to my php-fpm container like…
sh4
  • 241
  • 1
  • 3
  • 7
5
votes
1 answer

gitlab SSL configuration / certificate verification failed

I have my own gitlab server, now secured with an letsencrypt SSL certificate. Now, I want to publish some packages via packagist. But when I enter the git repository url in packagist, I got the following error message (urls changed): Uncaught…
user351324
2
votes
1 answer

OPcache cache same file for different users only once

Is there some way to make OPcache use a hash or target a specific directory on each domain to disable use_pwd so it won't cache the same packages over and over? By default OPcache appends the working directory to the script key to prevent…
2
votes
1 answer

Uncaught Error: Class 'Monolog\Logger' not found

I use PHP 7.0 on Apache 2.4.20 and Ubuntu 16.04 LTS. I have followed this guide to have upload functionality and would like to know what I can do to fix the following error that I receive: PHP Fatal error: Uncaught Error: Class 'Monolog\Logger' not…
user243975
1
vote
1 answer

Composer crashes

When I run composer update I get this error: PHP Fatal error: Uncaught TypeError: Argument 1 passed to Symfony\Component\Console\Question\Question::__construct() must be of the type string, array given, called in…
Boba Fit
  • 121
  • 6
1
vote
1 answer

Why is my Docker Symfony project with Composer consuming so much memory?

Description I'm deploying my symfony project in prod. It works fine when I simply run docker-compose up. However I'm getting an issue with my deploy script and try accessing the web page in my navigator. Fatal error: Allowed memory size of…
1
vote
1 answer

Semantic MediaWiki require onoi/callback-container, but it can't be installed

I try to install the latest release of SemanticMediaWiki. When I run composer update, it returns the following: > ComposerHookHandler::onPreUpdate Loading composer repositories with package information Updating dependencies (including…
1
vote
1 answer

AWS CodePipeline output file empty

To deploy my Laravel framework to Docker containers on AWS, I created a CodePipeline in AWS with three basic steps: 1) Get source from Github (Output artifact = MyApp) 2) Use AWS CodeBuild (configuration below) 3) Use AWS CodeDeploy to deploy my…
Patrick
  • 71
  • 8
1
vote
1 answer

Does the composer software have a command like python -m compileall ./

I want to use composer for a mediawiki root folder with multiple directories that need composer to install their dependencies with a command like composer -m installall ./ For example , if the root folder was all written in python i could use the…
jehovahsays
  • 165
  • 6
1
vote
1 answer

Why does PHP Composer have CA certs in its installer file?

The developers of Composer have a script you can execute to install Composer on your system. It contains a slew of CA certs in the file. I am new to certificate security and am wondering what this file is doing with them. Here is the script in…
1
vote
1 answer

php wont run on command line

When trying to run the composer install script in the php official docker container (php:5.6-apache) the command line seems to just hang waiting for input the command I am trying to run is the following curl -sS https://getcomposer.org/installer |…
user1901469
  • 111
  • 1
1
vote
0 answers

running composer from upstart

I am running Ubuntu 14.04. I am trying to make a service capable of deploying an application. The process is very simple: I have a node script listening on port 2133 for a POST request When this script gets a request, it triggers a bash script that…
Hammerbot
  • 175
  • 2
  • 8
1
vote
1 answer

Centos 6 - Allow sudo composer self-update for user without password

I'm trying to allow my wheel group user to run sudo composer self-update without a prompt for a password for my deploy script. I have added the bottom line below to my /etc/sudoers file: ## Allows people in group wheel to run all commands %wheel …
Arth
  • 353
  • 5
  • 14
1
vote
0 answers

Reducing inodes usage on vServer

On my Linux vServer the inodes are limited (maximum is 250k). I found that an Yii2 (PHP, MySQL, composer) installation requires quite a lot of inodes. The number of inodes is roughly the number of files and directories. The number of inodes used in…
WeSee
  • 476
  • 1
  • 4
  • 10
1
vote
0 answers

Composer telling me " PHP extension ext-gmp * but it is missing" when it shouldn't be

I'm new to Composer, so be gentle! I'm trying to install a script that uses Composer, but I get: Problem 1 - Root composer.json requires PHP extension ext-gmp * but it is missing from your system. Install or enable PHP's gmp extension. After…
Andrew Newby
  • 1,041
  • 1
  • 22
  • 48
1
2 3