composer-php

Laravel 5.1 Php artisan commands not working after composer update

白昼怎懂夜的黑 提交于 2020-12-13 18:44:11
问题 here is my composer.json require snippet. "require": { "php": ">=5.5.9", "laravel/framework": "5.1.35", "aws/aws-sdk-php-laravel": "~3.0", "lucadegasperi/oauth2-server-laravel": "5.1.*", "bosnadev/repositories": " 0.*", "laravelcollective/html": "5.1.*", "cartalyst/stripe-laravel": "3.0.*" }, I ran composer update in order to add new AWS services. but then I noted that all the vendor files are updated because of composer update command. now I'm getting error when I ran php artisan commands.

DNS resolver issue Composer 2

我是研究僧i 提交于 2020-11-29 09:58:46
问题 Composer version: 2.0.4 OS: macOS 10.15.7 When I run composer diagnose I get DNS resolver issue as seen in the attached image I am able to ping getcomposer.org, packagist.org, github.com - all sites from the terminal. curl -i packagist.org -L also works as expected without any error Yet with composer diagnose I am getting DNS resolver issue This started happening after I upgraded PHP from 7.4.1 to 7.4.12 and updating to composer 2 What could be the issue and how can I fix it As searchable

PHP extension unavailable to composer container in docker-compose

怎甘沉沦 提交于 2020-11-27 01:32:19
问题 I use docker-compose and have a number of containers in one project: Nginx, PHP, Composer and nginx. All works well except for one thing: composer does not work. I am trying to install a composer project that uses the GD extension, which is installed in PHP (confirmed using php -m inside the PHP container). However, the composer container does not "see" this extension and complaints it does not exist. How can I link those two? docker-compose.yml: version: '2' services: web: image: nginx:1.15

composer: How to find the exact version of a package?

孤街醉人 提交于 2020-11-25 05:59:25
问题 Suppose I'm writing a library A, that depends on another library, monolog for instance. I want to install the latest version of monolog, so I just put this inside composer.json: { "require": { "monolog/monolog": "*.*.*" } } Then I run $ php composer.phar install . I was expecting to find the version installed, inside composer.lock, but it's not there: { "hash": "d7bcc4fe544b4ef7561918a8fc6ce009", "packages": [ { "package": "monolog/monolog", "version": "dev-master", "source-reference":