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

Presentation

Composer is an application-level package manager.

Yes, it deals with "packages" or libraries, but it manages them on a per-project basis, installing them inside your project's directory.

By default, it will never install anything globally.

Thus, it is considered a PHP-based project package manager.

Useful links

It aggregates all sorts of PHP packages that are installable with Composer.

Also, you can check your build log; it could be helpful for debugging.

  • Packanalyst: Packanalyst is a service that lets you browse packages from Packagist and shows who is using and implementing your interfaces / abstract classes/traits.
11065 questions
4
votes
3 answers

Redirect Output of Composer Install to Text File

I am using composer in part of a project setup workflow. Each part of the setup will log its results and any other relevant info to file. I am having trouble capturing the output of composer install. When I run composer install directly from the…
4
votes
0 answers

How to install tcpdf

I am trying to install TCPDF and I am lost on how to install it correctly. I've installed PHP libraries via composer before, but I'm not sure what the make commands are for, how to access examples, etc as described in the repo. As a stop-gap I'm…
Gurnzbot
  • 3,742
  • 7
  • 36
  • 55
4
votes
5 answers

Unable to download & install Laravel 5 with composer. Error: HTTP request failed

I'm not able to download lavarvel installer using composer 1.2.0 (latest version) The error received: Failed to open stream: HTTP request failed! I googled and could not find the answer to fix this to problem. If possible, someone please try to run…
Louis Tran
  • 1,154
  • 1
  • 26
  • 46
4
votes
4 answers

Installing Yii2 via composer failed

I want to install yii2 via composer and it's give me a error here is error: Your requirements could not be resolved to an installable set of packages. Problem 1 - yiisoft/yii2 2.0.9 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable |…
RezaGM
  • 66
  • 1
  • 5
4
votes
1 answer

Composer doesn't work

I have a problem after installing "Composer" for Windows. I have installed it with the installer for windows and added the path. But when I typ: composer in CMD nothing shows up, Just an empty rule. Does somebody know how to fix this problem?
Nieck
  • 1,626
  • 3
  • 21
  • 41
4
votes
2 answers

Replacing ::class in PHP 5.4

I'm using this Composer package for a development that requires the functionality this package provides. Looking for alternatives, I found out that this is my best bet, as the available alternatives are way too barebones to be implemented in the…
noquierouser
  • 963
  • 2
  • 11
  • 25
4
votes
5 answers

configuration does not allow connection to http://packagist.org/packages.json

I am trying to install laravel in my computer. I am refering to turorails point laravel installation tutorial. After installing composer trying to create new larael project but getting this error. This is the error which I am getting:
Jaimin
  • 171
  • 1
  • 1
  • 11
4
votes
2 answers

Running composer install in docker container

I have a docker-compose.yml script which looks like this: version: '2' services: php: build: ./docker/php volumes: - .:/var/www/website The DockerFile located in ./docker/php looks like this: FROM php:fpm RUN php -r…
SnIpY
  • 662
  • 2
  • 10
  • 27
4
votes
2 answers

Call to undefined method Michelf\Markdown::isDeferred() in Laravel 5.2

I am going to use michelf/php-markdown package in my Laravel 5.2 application. To install this package I added "michelf/php-markdown": "~1.6.0" to composer.json file and then I ran composer update command. After this, I changed app.php file and added…
4
votes
1 answer

Composer load class without Namespace

Amazon's MWS PHP client library is just a zip file without any namespace, Is there a way to use this library with Laravel application or with any application which uses composer for its dependency management.
Shreyansh Panchal
  • 827
  • 12
  • 22
4
votes
1 answer

composer update spend much time

I use Windows 7 operating system. I have a problem when I try to launch command like : php composer.phar update 15 minutes to launch update and I have a good internet connection (maybe more !). It happen when I use another internet…
Med
  • 183
  • 8
4
votes
1 answer

Why does a composer update need access to the database

I am working with Symfony 2.8 and running into some issues launching a simple composer update command. This error comes on my development environment. I am using a vagrant virtual machine. Here is the…
Hammerbot
  • 15,696
  • 9
  • 61
  • 103
4
votes
4 answers

FOSREST Bundle conflict with SensioFrameworkExtraBundle

Hi my application is running with Symfony2.7.15 which contains new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle() in AppKarnel.php as well. Now we need to make a Restful API to user webservices. I am trying to install FOSRESTBundle…
Sunil Rawat
  • 709
  • 10
  • 41
4
votes
1 answer

TCPDF integrated by Composer seems not to load

I'm stuck with an error that is apparently caused by TCPDF not being included by Composer mechanism. Here's the situation: Fatal error: Class 'FPDF' not found in /var/www/r0byn/web/vendor/setasign/fpdi/fpdi_bridge.php on line 24 Line 24: if…
R0byn
  • 363
  • 5
  • 15
4
votes
2 answers

Want to add a new plugin using composer instead of updating all plugins

I want to add a particular plugin in my laravel app using composer. I don't want to sync whole of the plugins with composer.json, I just want to add a new plugin. If I remove rest of the plugins and add a json value i.e. "mgallegos/laravel-jqgrid":…
Danyal Sandeelo
  • 12,196
  • 10
  • 47
  • 78