composer-php

Composer/Laravel install package from existing files when external repository no longer exists

点点圈 提交于 2020-03-22 06:28:32
问题 I have the following problem: I have an old project which uses Laravel 4.2, PHP 5.5.9 and Composer. I'm trying to set it up on a different computer (With Laravel 4.2.2 and PHP 5.6) but one of the required packages has a dependency which is missing because whoever was managing that GitHub account decided to remove it. Thus, the required package can't be installed via Composer. Now, the old project has these packages downloaded and I can copy both of them manually. What I don't know, is how to

Laravel, composer install, don't install laravel/framework

橙三吉。 提交于 2020-03-18 09:13:18
问题 Need Laravel expert to help me figure out what is wrong with my composer.json configuration. I googled for answers and follow along and aldo I check every possible line, I still can get this to work. I got these files from git repo and it works in the office, but when I tried to do the same thing at home, this happend. The error I am getting is: Problem 1 - Conclusion: don't install laravel/framework v5.1.45 - Conclusion: don't install laravel/framework v5.1.44 - Conclusion: don't install

Composer update not working since installing SSL certificate

青春壹個敷衍的年華 提交于 2020-03-06 04:43:08
问题 I installed an SSL certificate on my Ubuntu 16.04 server and since then composer has stopped working correctly. The certificate works correctly when accessing the website through a browser. However, when running sudo composer update , I get the following warning: The "https://packagist.org/packages.json" file could not be downloaded: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution failed to open stream: php_network_getaddresses : getaddrinfo failed:

Yii2 Invalid Configuration, cookieValidationKey must be configured with a secret key error when accessing the API

穿精又带淫゛_ 提交于 2020-03-05 00:21:13
问题 I am encountering an error whenever I am trying to access my self written API. { "name": "Invalid Configuration", "message": "yii\web\Request::cookieValidationKey must be configured with a secret key.", "code": 0, "type": "yii\base\InvalidConfigException", "file": "F:\xampp\htdocs\inventory-web\vendor\yiisoft\yii2\web\Request.php", "line": 1669, "stack-trace": [ "#0 F:\xampp\htdocs\inventory-web\vendor\yiisoft\yii2\web\Request.php(1651): yii\web\Request->loadCookies()", "#1 F:\xampp\htdocs

Laravel 6 can not found vendor class from the fast-tuned package that was released for the Laravel 5

拈花ヽ惹草 提交于 2020-03-04 18:37:30
问题 I am trying to use Firebird 3.0 from Laravel 6.0 and I am following https://firebirdsql.org/file/documentation/reference_manuals/fbdevgd-en/html/fbdevgd30-php-Laravel-crt-project.html where the package https://github.com/sim1984/laravel-firebird is suggested. Unfortunately, this package is intended for Laravel 5.7 (or maybe it has not been published in composer repositories) that is why I received the following message while I was trying to install this package: [InvalidArgumentException]

Laravel 6 can not found vendor class from the fast-tuned package that was released for the Laravel 5

徘徊边缘 提交于 2020-03-04 18:36:10
问题 I am trying to use Firebird 3.0 from Laravel 6.0 and I am following https://firebirdsql.org/file/documentation/reference_manuals/fbdevgd-en/html/fbdevgd30-php-Laravel-crt-project.html where the package https://github.com/sim1984/laravel-firebird is suggested. Unfortunately, this package is intended for Laravel 5.7 (or maybe it has not been published in composer repositories) that is why I received the following message while I was trying to install this package: [InvalidArgumentException]

Why is PHP Composer so slow?

元气小坏坏 提交于 2020-02-26 04:26:26
问题 Why is PHP Composer so slow when all I do is init a project with zero dependencies? Here are the commands I run: composer init <step through composer.json creation, define 0 zero dependencies> composer install Wait 3 minutes (not an exaggeration). All composer has to do is pull in an autoloader and create /vendor , so why does it take so long? For that matter, why doesn't that step happen on composer init ? Is there a configuration option I can use to pull in a cached autloader and vendor

Is it possible to validate vendor folder integrity in composer?

我只是一个虾纸丫 提交于 2020-02-25 07:19:51
问题 I just inherited a composer project in a very bad shape. They sent me a zip file with the vendor directory in it and I suspect that the previous developer has edited files directly inside vendor. Is there a way to "validate" the vendor folder to ensure that the files inside are unmodified? 回答1: Change the name of the old vendor to something else. Execute composer install again. Run diff to compare both directories. E.g. for a sample project where I intentionally modified a single file inside

Composer - Private package not getting into autoloader

二次信任 提交于 2020-02-25 01:35:50
问题 I've created a custom package and it's sitting on our GitLab repository, here's the composer.json for it: { "name": "TeamScanblox/InternalAPI_Ref", "description": "", "keywords": [ "swagger", "php", "sdk", "api" ], "homepage": "http://swagger.io", "license": "proprietary", "authors": [ { "name": "Swagger and contributors", "homepage": "https://github.com/swagger-api/swagger-codegen" } ], "require": { "php": ">=5.5", "ext-curl": "*", "ext-json": "*", "ext-mbstring": "*", "guzzlehttp/guzzle": "

composer : is there a way to specify a preference order for package repositories?

旧城冷巷雨未停 提交于 2020-02-23 12:53:49
问题 I am working with a package vendorName/moduleName (a Magento extension) that is present on packagist and on firegento. On my composer.json file, I have : "require": { ...................., ..................., "vendorName/moduleName":"*" }, "repositories": [ ......................, ...................., { "type": "composer", "url": "https://packages.firegento.com" } ], As Composer is downloaded pre-configured to use packagist.org , the vendorName/moduleName is loaded from packagist . I would