Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [composer]

Composer is a tool to manage dependencies in PHP. It supports fetching dependencies from different sources like Git, SVN, PEAR, the local filesystem, etc. and also offers automated autoloading support.

1
vote
1answer
17 views

How to make my module available in github (via composer.json) in magento 2

I wish to make my module available in github repository and then i wish to install it to my local using composer.json. How is this possible? Please provide me a solution, to install my module using ...
2
votes
1answer
28 views

Error composer 1.8.4 on magento 2.3.0 CE

I got this warning : Warning: Unsupported declare 'strict_types' in /home/SITE_NAME/public_html/vendor/magento/inventory-composer-installer/src/Plugin.php on line 6 And this error : Parse error: ...
0
votes
1answer
15 views

Download failed, retrying… Downloading https://repo.magento.com/archives/magento/magento2-base/magento-magento2-base-2.3.0.0.zip

I need to say, its really hard and sadly magento typically that nothing works out of the box as it should if you follow offical step-by-step tutorials. Since a few hours or better days I try to ...
1
vote
0answers
16 views

Magento 2.3 Composer stuck while downloading https://repo.magento.com/packages.json

I have a problem since about 24 hours I guess. When I try to download Magento 2 with composer I stuck after logging with my user-credentials. The credentials are ok, it pass and go through the next ...
1
vote
0answers
28 views

Magento Server is at 100% CPU after installing Extension

I just installed a new Extension via Composer: $ composer require mageworx/module-advancedproductoptions This is the output: Using version ^2.16 for mageworx/module-advancedproductoptions ./...
0
votes
0answers
14 views

Difference between Magento Composer install and release install

What are the differences between the various Magento installs? I installed it using the released code from github(v2.3.0.zip) and I installed it using composer create-project --repository=https://...
1
vote
2answers
47 views

When would you place a module in the app/code folder versus another location?

When would you place a module in the app/code folder versus another location? If I add new module in app/code folder with composer.json and another module in vendor folder using composer What ...
0
votes
0answers
12 views

Convert from Cloud Enterprise to Enterprise issue

I passed my site from cloud to another server (with same files and some fixes on removing fastly) the site was up and no issues . It was magento/magento-cloud-metapackage v 2.2.6 . Now i want to ...
0
votes
2answers
28 views

M2 - Uninstall language pack

I installed a language pack using composer. $ composer require mageplaza/magento-2-german-language-pack:dev-master $ php bin/magento cache:flush Now when I try to uninstall again, using this command:...
0
votes
1answer
39 views

Magento 2.2.7: how to run composer update command under Ampps/Xampp php version instead to base php

I am using LAMP on which I have PHP 7.2 I install Ampps on which I have PHP 7.1 How I have to run composer update command? If I run it gave me PHP version error (definitely it will give 2.2.7 don't ...
1
vote
0answers
13 views

install magento on virtualbox from bitbucket

After I clone magento files from bitbucket, i try to run composer install but it gives me this error, "[RuntimeException] Failed to execute git clone --no-checkout "ssh://git@stash.studio.com:7 ...
3
votes
0answers
63 views

Module version in composer.json

I'm running the static tests on one of my modules and on magento version 2.3 it reports an inconsistency: Version must not be specified in the root and package composer JSON files in Git Failed ...
0
votes
1answer
34 views

including dependency in magento

I was trying to publish one extension to magento marketplace Things are a fork of tinypng and I can see the dependency of tinypng module is automatically pulled by composer, but where they are ...
1
vote
0answers
23 views

How to mention the magento version compatibility in composer.json

I am creating a module in Magento 2. Now I am writing composer.json. Here I write supporting PHP version "require": { "php": "~5.6.0|^7.0.0", }, How do I write my module will be supported by ...
1
vote
0answers
14 views

Validate composer requirements from modules in app/code

Is there a way to validate the version constraints from modules in app/code during updates?
1
vote
0answers
11 views

How can I add a 3rd party dependency in a custom module?

I'm building a module which requires a 3rd party library, how can I make the 3rd party library available to the module without without adding it to the composer.json magento root file? I added it ...
0
votes
0answers
9 views

WordPress with composer alongside M2

I would like to add a WordPress blog to our magento2 site. WordPress is not officially available as a composer package. I can create my own package - that's not an issue. How would I go about ...
0
votes
0answers
16 views

Wrong version in composer outdated

When I run composer outdated I receive the information below: Why does it not show that 2.3.x is available? Is it because I started the project with Magento 2.1.x? Even when I moved to 2.2.x, it was ...
1
vote
2answers
253 views

Magento 2.3 composer install issue

I am tring to install to get vendor files in magento 2.3 instance using composer.But i am getting following log: dealsouq@dcwsrv2401:~/public_html$ composer install Loading composer ...
0
votes
2answers
88 views

Magento Twitter Bootstrap 4 composer conflict

When I try and install Magento via composer I'm running into some kind of conflict with twitter bootstrap. If I remove the bootstrap dependency("twbs/bootstrap": "4.1.0") everything install correctly. ...
0
votes
0answers
22 views

How to load vendor files in custom extension

Im making a custom extension - how do I load custom vendor files ? Do I add them to my extension composer file or the global Magento one ? I asking because I cant load Yaml. In my extension ...
1
vote
0answers
35 views

Magento 2.1.9 to 2.2.0 composer update problem

Basically i want to update my store from 2.1.9 to 2.2.0. But when i run composer update i'm getting this error: - magento/product-community-edition 2.2.0 requires zendframework/zend-stdlib ^2.7.7 -&...
0
votes
0answers
52 views

Magento 2 - Install Mirasvit Profiler (Missing symfony/yaml)

I am running Magento 2.2.6 and it's a slow instance so I wanted to try out the Mirasvit profiler. However, when I try to enable it, I get an error about yaml not being installed. I dug through the ...
1
vote
1answer
248 views

Cron not working and Cron log showing Fatal error: Allowed memory size of 33554432 bytes exhausted

I have getting this error in magento 2. Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 28672 bytes) in /home/www/public_html/website.com/vendor/composer/composer/...
3
votes
1answer
113 views

composer connection refused

Context: magento 2.1.7 community-edition composer.phar 1.7.2 installed and setup on a development server then deployed on a production server (dictinct from the previous) All worked well, including ...
0
votes
1answer
36 views

Magento 2.2.4 Composer Patch Failed: “1 out of 1 hunk ignored”

Applying patch to v2.2.4 for Github issue 14968, but I keep getting hunk fails error. After looking Looking here: SUPEE-9767 - Hunk #1 FAILED at 225. 1 out of 1 hunk FAILED I believe the problem is ...
0
votes
1answer
77 views

Copy files from /vendor/* to another server? Mailchimp installation without composer

My shared hosting doesn't allow me to use composer install (php memory limit error). So I had to install to my clone magento2 on xampp server. http://wiki.ebizmarts.com/installation-guide-m4m2 below ...
0
votes
1answer
180 views

Unsupported declare 'strict_types' in Magento 2.3.0

Error : Unsupported declare strict_types in ../vendor/magento/inventory-composer-installer while install the extension using composer in Magento 2.3.0.
2
votes
3answers
480 views

Magento 2.3 installation PHP requirement

I'm trying to update Magento 2.2 to version 2.3 using this command: composer require magento/product-community-edition=2.3.0 When doing so, I receive the following error: Loading composer ...
1
vote
0answers
99 views

Composer Problem. Could not find a matching version of package <name>. Check the package spelling, your versi

I have big problem ;/ And dnt know how i make this... i write composer require searchanise/search-autocomplete and Could not find a matching version of package searchanise/search-autocomplete....
0
votes
2answers
163 views

magento 2 extension composer update error - Please update your modules: Run “composer install” from the Magento root directory

My Siteground shared hosting plan does not allow me to use composer (memory limit). How can I fix this issue? is there a way to manually update it without composer? or how can I disable this module? ...
0
votes
1answer
241 views

Upgrade Magento 2.2.6 to 2.3.0 Resolving dependencies through SAT

I am trying to update my Magento CE 2.2.6 to CE 2.3 with composer but am getting the following. Reading C:/Users/garry/AppData/Local/Composer/repo/https---repo.packagist.org/provider-php-cs-fixer$...
0
votes
1answer
59 views

Plugin class Magento\NewRelicReporting\Plugin\StatePlugin doesn't exist

I just update my Magento 2.2 core components using the command composer update -vvvv and then I got a lot of updates which caused this issue below when I tried to run php bin/magento setup:upgrade. ...
0
votes
1answer
29 views

How to enable my bugfix extension to run in a specific Magento 2 version?

I'm creating a module in order to fix a bug in Magento 2.3.0 that will be part of the next release. So, I would like to restrict via Composer the dependencies of that module. How can I restrict my ...
0
votes
0answers
45 views

How to fix error in Web Setup Wizard - Command “show” failed: [Composer\Downloader\TransportException]

This is the error when I click on Extension Manager: Command "show" failed: [Composer\Downloader\TransportException] The 'https://repo.wyomind.com/packages.json' URL required authentication. You must ...
2
votes
1answer
396 views

Issues while upgrade to Magento 2.3

I am upgrading to Magento 2.2.5 to Magento 2.3.0, Some of the third party module is giving error while composer update. my current php version is 7.2.12 Can you please help me out? Please refer below ...
0
votes
1answer
31 views

M2: Impossible install language pack

I'm trying install Czech language pack via composer from mageplaza: https://www.mageplaza.com/magento-2-czech-language-pack.html When I run then get issue: Problem 1 - Installation request for ...
0
votes
1answer
384 views

Migrate Magento 1.9.2.1 to Magento 2.3.0

I want to migrate Magento 1.9.2.1 to Magento 2.3 (Without Sample Data). But, when I execute composer update command. It's return some errors. The "magento/inventory-composer-installer" plugin was ...
2
votes
1answer
1k views

Upgrade Magento from 2.2.6 to 2.3

I am trying to update Magento from version 2.2.6 to 2.3, but i get this errors: sh-4.2# composer require magento/product-community-edition 2.3.0 --no-update ./composer.json has been updated sh-4.2# ...
2
votes
3answers
3k views

magento 2.2.6 to 2.3 upgrade fails with composer

I tried to upgrade my 2.2.6 Magento install with composer following the tutorial on Magento Website, but "composer update" fails with these errors : Your requirements could not be resolved to an ...
8
votes
4answers
1k views

Cannot upgrade from 2.2.6 to 2.3 via composer

I have a clean Magento 2.2.6 with sample data that I installed using composer. I am trying to update it to Magento 2.3 so following the steps outlined here by the Magento team. After running ...
1
vote
0answers
21 views

Source Key should be specified

We are in the process of moving our Magento site to a new hosting platform. After moving all of the files and making some changes to the template XML, the frontend of the site is now working as ...
1
vote
0answers
41 views

Source class for generation not found

I am using a composer library in my custom module. The link for the library is here. This library in turn uses https://github.com/tightenco/collect The {Vendor}/{Module}/composer.json is { "name":...
1
vote
3answers
82 views

n98-magerun.phar not working - PHP Fatal error: Class 'Phar' not found

I can't execute n98-magerun.phar, I get PHP Fatal error: Class 'Phar' not found. I am using PHP 5.5.14 (cli) Any hints how to solve this?
0
votes
1answer
34 views

Instructions to update extension in Magento 1.9

I'm relatively new to Magento and am currently using version 1.9.3.9. Out payment system providers (Adyen) have recently provided a new version of their extension with better security (on gitlab this ...
2
votes
1answer
65 views

Composer conflicts Magento 2

What is the best way on resolving git conflicts with composer.json and composer.lock . I have two extensions created from master installed through composer , one is approved to be merge , the other ...
0
votes
1answer
26 views

Magento 2 load component composer dependencies

I am trying to develop simple Magento 2 module. Accoding to Composer integration guide I had to put all my dependencies into composer.json file into my module root. According to Default File Structure ...
0
votes
1answer
27 views

unable to composer update while installing Magento

magento/product-community-edition 2.2.3 requires ext-dom * -> the requested PHP extension dom is missing from your system. - magento/product-community-edition 2.2.3 requires ext-dom * -> the ...
0
votes
1answer
30 views

Magento 2 install package with composer without SSL

I am trying to install a package composer config repositories.swissup composer http://swissup.github.io/packages/ Which result in this error Your configuration does not allow connections to http:...
0
votes
2answers
248 views

magento 2.2.6 install via composer

I can't Install Magento 2.2.6 via composer on macOS High Sierra + I'm use MAMP Pro and getting some problems : Your requirements could not be resolved to an installable set of packages. ...