Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

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.

Filter by
Sorted by
Tagged with
1
vote
2answers
1k views

Magento 2: How To Include 3rd Party Library in Custom Module

As an example, I'm looking to use Zendesk's API to create tickets and other things within my custom modules. They have a Packagist that can be installed via composer: composer require zendesk/...
0
votes
1answer
73 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 ...
1
vote
2answers
160 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
52 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 ...
38
votes
7answers
58k views

How to update Magento2 using composer

I can't seem to be able to update my magento2 ce using composer. I doesn't find any updates, the only one it found was 'fabpot'. I thought this was the whole point of a composer setup, so why would I ...
1
vote
0answers
48 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
169 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 ...
3
votes
1answer
601 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 ...
1
vote
1answer
473 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/...
0
votes
1answer
682 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 ...
1
vote
1answer
655 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$...
1
vote
1answer
138 views

How to add js libraries to Magento 2 extension via composer?

I'm wondering is there a way to add third-party js libraries to Magento 2 via Composer? The main idea of this is to separate our modules from those dependencies and to have them required via Composer ...
1
vote
1answer
214 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 ...
1
vote
2answers
2k views

Magento 2 override core Model class with psr-4 by replacing in app/code/Magento

"autoload": { "psr-4": { "Magento\\Framework\\": "lib/internal/Magento/Framework/", "Magento\\Setup\\": "setup/src/Magento/Setup/", "Magento\\": "app/code/...
0
votes
1answer
32 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 ...
9
votes
4answers
3k 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 ...
0
votes
1answer
102 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
1k 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 ...
5
votes
2answers
5k views

ReflectionException error on Magento 2

I tried to install MailChimp module for Magento 2. After I put all the files in the app/code/[vendor]/[module] and I run php bin/magento setup:upgrade, I received this error: [ReflectionException]...
0
votes
1answer
109 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 ...
1
vote
0answers
24 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
3answers
273 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?
2
votes
1answer
117 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
2answers
338 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. ...
0
votes
1answer
62 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
82 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
1answer
269 views

Elasticsearch Error - call_user_func_array() expects parameter 1 to be a valid callback

I have an M2 with Elasticsearch installed, with the Smile/Elasticsuite module. These are my versions in composer.json: "smile/elasticsuite": "2.5.15", "elasticsearch/elasticsearch": "^2.2.3" And ...
1
vote
0answers
18 views

Invalid crendetials when runing composer require magento 2 extension

I got this error when running this command composer require my extension from marketplace :
2
votes
1answer
3k views

Magento 2 Component manager (extension installation)

I'm developing an extension for Magento 2, and was wondering what are my options for the installation process for users. I saw in the magento documentation that there supposed to be a component ...
0
votes
3answers
1k views

Elasticsearch setup:upgrade error: No handler for type [text] declared on field [search]

I am trying to install smile/elasticsuite using composer but I am getting a really strange error. To install the module I used: composer require smile/elasticsuite:2.6.0 And got successful ...
0
votes
1answer
70 views

Magento 2.1.7 to 2.1.15 upgrade issue

I have upgraded my magento version 2.1.7 to 2.1.15. The upgrade process working fine. But the issue is my home page contents are not loading. It loada product detail page content in the home page. ...
0
votes
2answers
265 views

Magento2 composer update issue

I have installed one module with composer and that module stored in vendor folder. Now i do not need that module, I have deleted from it and run the commnad "composer update" Still i can see the ...
0
votes
0answers
353 views

Magento 2: Invalid credentials for … aborting

I was trying to use composer install with my project, and this message show up, please help. Thanks :) Or please tell me how to ignore a package in composer install, i've try composer remove magento/...
3
votes
3answers
85 views

How to solve this error?

I am trying to upgrade magento version from 2.1.9 to 2.1.10 I got following error. Module 'Magento_Ui' from '/home/zitomer/upgrade.zitomer.com/app/code/Magento/Ui' has been already defined in '...
2
votes
3answers
559 views

Installation issue in magento marketplace 'page doesn't contain HIT in cache header.'

I have developed customer module in magento. When i am trying to submit in marketplace its keep giving the same error even after trying so many solutions. Installation issue: http://magento.dev/gear....
2
votes
2answers
1k views

Upgrade to Magento 2.0.1 Using Composer Readiness Check Fails

I have a brand new install of Magento 2.0.0 with only the sample data installed. I had the critical update warning to patch to 2.0.1. Using the Web Setup Wizard in the dashboard, I get as far as ...
1
vote
1answer
101 views

Namespaces for “Magento\\Framework\\”, “Magento\\” and physical directory structure

I have a custom class 'class ProductsList extends\Magento\CatalogWidget\Block\Product\ProductsList' and wonder where is the physical file containing the class? Looking at the top level composer ...
1
vote
1answer
184 views

Issues using the Code Migration to migrate to Magento CE v2.2.3 w/ PHP 7.1

I'm attempting to use the code-migration toolkit provided by Magento to assist in our migration to Magento CE v2.2.3 (from v1.9.3.4), but after I clone the latest branch and execute either composer ...
1
vote
0answers
37 views

Problem with CLI installing module

Im trying to install sitemap module for Magento 2 and i got this message via cli, i make some changes in composer.json { "name": "mageplaza/module-sitemap", "minimum-stability":"dev" "...
0
votes
2answers
45 views

Magento 2 version(s) in composer

We are getting ready to upgrade from v2.2.2 to v2.2.4. Due to our deployment process, I need to push the composer.json so it can be upgraded properly via the git rather than doing it in the backend. ...
1
vote
1answer
683 views

Magento 2.2.5: Error on cron:run after every production deployment

Since we upgraded Magento to 2.2.5, after every deployment to production (which includes git pull..., composer update & all other relevant Magento CLI commands for production deployment), our ...
10
votes
2answers
385 views

Magento 2: How to Specify “Semantic Versioning” Dependencies in my Module's composer.json

Magento 2's development and deployment includes a formal process for versioning, where major and minor versions of core Magento modules will be bumped up based on changes in backwards compatible ...
2
votes
1answer
879 views

Magento 2 : Plugin autoload error

I have recently move a magento 2.2.5 website to a new server and now when I run an upgrade command or compile command I receive the below error. I have tried deleting any and every folder i can find ...
2
votes
1answer
169 views

How to load a classmap[ped] Composer class (packagist) in Magento 1?

I've installed and deployed magento-hackathon/magento-composer-installer in my Magento 1.9 and I am trying to add and use mpdf/mpdf (composer packagist) in a controller. This package contains a ...
0
votes
1answer
47 views

What is the Composer.Json file and what is it used for?

I would like to know what the composer.json file is actually used for when I create a new module. I know it's an optional file that can be created when I create a new module so why include it? ...
1
vote
3answers
243 views

Magento2 Delete config row while Extension Uninstall

I have created a custom module which is being installed via composer. When I run the command - php bin/magento module:uninstall Vendor_Faq It is removing all the corresponding tables which I wrote ...
0
votes
1answer
146 views

Magento2 How to create custom module which will be install in Vendor folder using composer

I have created an extension now I want to install this using composer command in the vendor folder.
3
votes
2answers
609 views

How does a package is appeared in `firegento` without a `composer.json` in its github repository

Today I tried to install a magento extension/package through composer. I have a successfully set up composer in my root folder of magento. For the sake of understanding, I am providing you the folder ...
0
votes
4answers
2k views

Magento 2 : Composer runs out of memory

I am trying to install instamojo payment gateway to my magento2 store, as per the instructions givne by instamojo page https://docs.instamojo.com/page/instamojo-integeration-for-magento-2 i tried the ...
4
votes
2answers
674 views

Version Control Magento 2 on Git

What is the best way to version control Magento 2 store on Git? How should I set up the repo/s to be flexible and reliable in a long run? I use composer to install all third party modules (when that’...