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
1 answer

Composer create-project from bitbucket

I have a project in my bitbucket repository and I'm a very newbie with composer In this project I have composer.json with all my require and settings. I'm trying to install my project directly from my bitbucket repo, what i want to do it's the same…
theex
  • 63
  • 1
  • 6
4
votes
2 answers

Laravel PHP Artisan not working after maintenance mode down enabled

When I wanted to deploy a couple of files to live server, I made php artisan down and uploaded the files to the live server. On console when I wanted to make the site alive made php artisan up but artisan is not responding. I tried other basic…
deepnote
  • 293
  • 1
  • 2
  • 8
4
votes
4 answers

Laravel composer update error - Failed to decode response: zlib_decode(): data error

I have a problem to update dependencies in my project. Issue: Failed to decode response: zlib_decode(): data error Retrying with degraded mode, check https://getcomposer.org/doc/articles/troubleshooting.md#degraded-mode for more info
reshma kr
  • 772
  • 1
  • 7
  • 14
4
votes
2 answers

using composer packages in a wordpress plugin

I'm developing a wordpress plugin, and the plugin makes use of a composer package. For reference the plugin I'm developing is here: https://github.com/tunapanda/wp-h5p-xapi I'm at the stage where it works locally, and I would like to publish it to…
Mikael Lindqvist
  • 775
  • 5
  • 21
4
votes
1 answer

Using a Composer with private GitHub repos over HTTPS

We have a number of private repositories which we would like to include in a PHP application using Composer. The composer.json file contains this entry which defines our first private repository: "repositories": [ { "type": "vcs", …
edcs
  • 3,847
  • 2
  • 33
  • 56
4
votes
3 answers

Composer dependency conflict

Running this composer require intervention/image throws this error: Using version ^2.3 for intervention/image ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Your…
rap-2-h
  • 30,204
  • 37
  • 167
  • 263
4
votes
2 answers

Laravel 5.X one instance multiple app

I am looking to set up one instance of laravel and run multiple apps. Each app would have it's own namespace with custom routes,config, assets, views and its owncomposer.json. All apps will share the same vendor file. This is what I have done so…
mdamia
  • 4,447
  • 1
  • 24
  • 23
4
votes
2 answers

composer.json file property name is required

I am using composer for the first time so if I shouldn't be posting here I am very sorry. I am following a youtube tutorial on the paypal api I have installed composer and created the json file the same as the example. composer.json is saved in the…
user1633322
  • 83
  • 1
  • 7
4
votes
1 answer

How to install gettext extension for php on Heroku?

I can't install gettext extension on Heroku plataform. On development enviroment gettext works, but not on Heroku. My struture: /app /web .user.ini gettext.php index.php composer.json composer.lock Procfile …
Jessé Pinheiro
  • 303
  • 1
  • 3
  • 10
4
votes
1 answer

Is there a tool that describes updated dependencies in Composer?

You do a composer update and get a list of a few updates: - Installing cakephp/cakephp (3.0.12) - Installing cakephp/debug_kit (3.1.10) - Installing cakephp/bake (1.0.13) - Installing aws/aws-sdk-php (3.3.1) - Updating admad/cakephp-jwt-auth…
Curtis Gibby
  • 884
  • 1
  • 12
  • 25
4
votes
1 answer

Composer autoloading vendor classes

I have 2 packages on Packagist. https://packagist.org/packages/erayalakese/envato-market-api (A) https://packagist.org/packages/erayalakese/envato-update-checker (B) B requires A. Now I'm using B package on my projects. But I'm getting Class…
Eray
  • 7,038
  • 16
  • 70
  • 120
4
votes
2 answers

How does Symfony manage Component sub-packages with Git and Composer?

I'm trying to figure out the workflow Symfony uses to create separate packages for each Symfony Component (and Bridge or Bundle) while still including them all in the main Symfony Framework. The framework as well as each component have their own…
Cy Rossignol
  • 16,216
  • 4
  • 57
  • 83
4
votes
1 answer

Failed to initialize central HHBC repository: Failed to initialize schema

The complete error is: Failed to initialize central HHBC repository: Failed to initialize schema in /home/shreeram/.hhvm.hhbc: I am trying to configure hhvm ana apache2. For that i am following this link …
shreeram banne
  • 526
  • 4
  • 12
4
votes
7 answers

Mediawiki Upgrade Trouble - PHP Fatal error: Class 'Liuggio\StatsdClient\Factory\StatsdDataFactory' not found

I have difficulty upgrading Mediawiki from 1.23 to 1.25 owing to StatsdDataFactory. I succeeded in "composer update" and "php update.php." But when I tried "php rebuildall.php", I got the following error: PHP Fatal error: Class …
4
votes
2 answers

Exception with composer install

I'm getting this error when trying to run composer install. I have run composer update, and i'm trying to install using this lastest lock file. Nothing is helping. Loading composer repositories with package information Installing dependencies from…
jeremib
  • 741
  • 2
  • 7
  • 17
1 2 3
99
100