composer-php

Composer Require 'package' throws OpenSSL error

拥有回忆 提交于 2021-02-18 12:48:45
问题 This problem seems to be common, and i've been through a lot of SO posts related to it and nothing works, and i'm going crazy. Whats weird is that it was working perfectly few weeks ago, and i didnt install anything new since months... Setup : PHP 7.1.9 WAMPSERVER 3.1.0 APACHE 2.4.27 Composer 1.6.5 (latest) I'm not behind a proxy & no firewall Windows 10 What Works : composer self-update What does not work : Installing a package I cannot reach https://packagist.org/ with firefox 61.0.1

Composer package conflict in git repository; how to untrack files but avoid deletion of files when pushing to remote

≡放荡痞女 提交于 2021-02-17 06:22:09
问题 I installed a package on my web application via composer. And added the package folder to .gitignore, whilst committing composer.json and composer.lock To deploy to our server, we Push to a bare Git remote on the server which in turn pushes the modified files to the relevant location on the server. This workflow was all working fine. At a later date, someone else working on the repository added the package files to the repository and removed the package from gitignore. We want the package

Composer install Error in argument 1, char 2: option not found r

戏子无情 提交于 2021-02-16 16:20:10
问题 I'm trying to install composer on my Website. The Composer documentations suggests running this command: php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"` but when I do, I get an error: Error in argument 1, char 2: option not found r I use PHP Version 7.0 What's going on here? 回答1: I suspect php in your case is referring to PHP's CGI-SAPI binary instead of the CLI that it should be. As documented in the PHP manual, the CGI-SAPI does not include the -r option: Note: -r

composer install : Your requirements could not be resolved to an installable set of packages

别来无恙 提交于 2021-02-16 14:31:06
问题 might be repeated question. Tried the old one. I'm getting the error composer install : Your requirements could not be resolved to an installable set of packages my composer.json is "require": { "laravel/framework": "4.2.*", "laravelbook/ardent": "dev-master", "ollieread/multiauth": "dev-master", "intervention/image": "2.*", "yajra/laravel-datatables-oracle": "~3.0", "barryvdh/laravel-dompdf": "0.4.*", "mnshankar/CSV": "1.8" }, the error i'm getting, Problem 1 - Conclusion: don't install

How to force dev-dependencies from a dependency to also install with composer?

耗尽温柔 提交于 2021-02-16 08:59:52
问题 I'm currently working on a package (cms), which has a dev-dependency to a certain package (code-generator) to create code. This package is not needed in production. However, when creating a website that uses the cms package, dev-dependencies (including the code-generator) are not installed (which is correct composer behavior btw). But while developing the website, the code-generator is required. Is there any way to force a certain dev-dependency to also install when the package is installed?

How to force dev-dependencies from a dependency to also install with composer?

心不动则不痛 提交于 2021-02-16 08:58:07
问题 I'm currently working on a package (cms), which has a dev-dependency to a certain package (code-generator) to create code. This package is not needed in production. However, when creating a website that uses the cms package, dev-dependencies (including the code-generator) are not installed (which is correct composer behavior btw). But while developing the website, the code-generator is required. Is there any way to force a certain dev-dependency to also install when the package is installed?

Clone git repository via composer

梦想的初衷 提交于 2021-02-11 18:16:08
问题 guys! I simply want to clone repository via composer. But unfortunately - i can't. My composer.json looks like: { "repositories": [ { "type": "vcs", "url": "https://bitbucket.org/yuriikrevnyi/bitrix-teil-framework" } ], "require": { "mockery/mockery": "dev-master@dev", "phpunit/phpunit": "3.7.*" } } But its not going to work. So, couldnt you help me a little bit? And there is one more question. How to 'clone' private repo with composer? Lets say, we have same repo - https://bitbucket.org

Reverse engineering a composer.json file based on existing project library?

烂漫一生 提交于 2021-02-11 16:41:29
问题 This is probably a pointless question but figured theres no harm in asking. I have inherited a website which from what I can gather is using some Zend libraries and Doctrine... I think, excuse my ignorance as I'm not very clued up on the Zend framework. In anycase I have been asked to update the numerous instances of depreacated code in among it. Which I thought would just have been within the application code so I could just update functions here and there etc etc. It turns out most of the

Reverse engineering a composer.json file based on existing project library?

好久不见. 提交于 2021-02-11 16:41:25
问题 This is probably a pointless question but figured theres no harm in asking. I have inherited a website which from what I can gather is using some Zend libraries and Doctrine... I think, excuse my ignorance as I'm not very clued up on the Zend framework. In anycase I have been asked to update the numerous instances of depreacated code in among it. Which I thought would just have been within the application code so I could just update functions here and there etc etc. It turns out most of the

How to install Laravel on AWS free tier? [duplicate]

假装没事ソ 提交于 2021-02-11 15:18:10
问题 This question already has an answer here : Server composer install --no-dev killed (1 answer) Closed 9 months ago . I am struggling to install Laravel on the AWS free tier Ubuntu instance. It gets stucks on the Composer installation due to a memory limit. I initially ran the following commands: sudo apt update && sudo apt upgrade sudo apt install php7.2-common php7.2-cli php7.2-gd php7.2-mysql php7.2-curl php7.2-intl php7.2-mbstring php7.2-bcmath php7.2-imap php7.2-xml php7.2-zip curl -sS