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
0answers
461 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....
1
vote
0answers
23 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
56 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
159 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?
1
vote
0answers
279 views

Composer command not running magento2

I am trying to run the following command - composer require ebizmarts/mailchimp-lib But I am getting following error on command line - [UnexpectedValueException] ...
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 :
1
vote
0answers
36 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" "...
1
vote
0answers
86 views

Use Mage::app('admin') in Composer post scripts

I am creating a post-update-cmd script in which I call some functions. The file is lib\Vendor\Module\CustomClass.php This is the command: "post-update-cmd": [ Vendor \\ Module \\ CustomClass :: ...
1
vote
0answers
29 views
1
vote
0answers
27 views

Using Composer on Shared Host

I have just recently started dabbling in the idea of upgrading from Magento 1.9.x to 2.2.x now. Working with installing Mangento and now having to use Composer, I am attempting to run simple commands ...
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/...
1
vote
0answers
180 views

How to prevent composer to remove bin/magento?

When I use composer to add a package, it deletes a bunch of packages, and it deletes the bin/magento . How to prevent composer to delete bin/magento ? How can I have everything working like before ...
1
vote
0answers
33 views

How to run composer.patch on Magento 2.1

I am trying to run this patch PATCH_MDVA-4538_EE_2.1.4_v2.composer.patch when I simply run the patch command it hangs. Is there a composer.patch command that I need to do?
1
vote
5answers
531 views

Magento 2 Install extension but not upgrade Magento via composer

So if I understand it right the php bin/magento setup:upgrade is used for both, upgrading magento 2 and also for installing extensions via composer. How can I just install the extension without ...
1
vote
1answer
632 views

Could not find package 2.2.3

When updating from 2.2.2 to 2.2.3 with composer require magento/product-community-edition 2.2.3 --no-update I get this error: [InvalidArgumentException] Could not find package magento/product-...
1
vote
1answer
316 views

Magento 2 error - Model/View/Page/Config/RendererFactory.php on line 64

I have a very annoying error on my production site which occurs once a day. My site goes down with the error below and I have to refresh cache to resolve the problem. It's Magento 2.1.7 with ...
1
vote
0answers
195 views

Validate Custom Extension Magento 2.x using validate_m2_package.php

I created a custom module but trying to convert it to extension. I am trying to validate my extension with this tool https://github.com/magento/marketplace-tools . What i tried:: File structure of ...
1
vote
2answers
941 views

Composer require | You must be using the interactive console to authenticate

I'm trying to run a composer require worldpay/magento2-module-payments on Magento ver 2.1.8 and get this error: [http]$ composer require worldpay/magento2-module-payments [Composer\Downloader\...
1
vote
0answers
42 views

Check Component Dependency magento 2.1.10

I am using Magento 2.1.10. While trying to install an extension. I am getting the following error. Also I am using php version 7.0.6, but PHP version Check is showing 5.6.25. Also earlier I tried to ...
1
vote
1answer
252 views

Magento extension install - Dependancy error

I am installing an extension I have written and published to the Magento Marketplace, but I get an error when installing from the store that makes no sense. Check Component Dependency We found ...
1
vote
1answer
193 views

Magento 2.1.10 Composer Sample Data Install Issues

I have Magento 2.2.0 setup with sample data. I am trying to setup Magento 2.1.10 with Sample Data for reference. However, when running: php bin/magento sampledata:deploy I get: Loading composer ...
1
vote
1answer
464 views

Magento 2.2.1 composer upgrade issue amazon pay

I tried to upgrade Magento 2.2.0 to version 2.2.1 via composer however i received framework error about amazon pay conflict (my amazon pay version is 1.1.4). I'm aware i need to update amazon pay to ...
1
vote
2answers
401 views

Magento 2 Composer Error While Installing Tawk.to extension

I'm trying to install Tawk.to chat in my Magento 2.1.9 shopping site hosted on a cPanel shared server environment. And I downloaded the extension files following the guidelines are given here: ...
1
vote
0answers
83 views

Magento 2: Install module from multiple repositories

Today I've stumbled into a fairly intriguing issue. At the moment I'm building a module for a client and possibly I'll use it for future clients. Now, I would like to keep the core code in a ...
1
vote
1answer
551 views

Upgrade Magento 2 via composer not working

I try to upgrade Magento 2.1.6 to Magento 2.1.9. To do this I ran this command: composer require magento/product-community-edition 2.1.9 --no-update after this I ran : composer update and I ...
1
vote
1answer
342 views

magento 2, I need to add dompdf Library Without using composer in my extension

I have created an extension for HTML to PSD by using dompdf Library. I had tried to using composer and it's working fine. But I need this Library in my custom extension. When any user add extension ...
1
vote
0answers
47 views

Why can Magento 2 only uninstall composer packages

When you run bin/magento module:uninstall Vendor_Module -r and Vendor_Module happens te be a module that's not installed by Composer, Magento will not perform an uninstall. Why did Magento add this ...
1
vote
0answers
35 views

new adminhtml theme does not show in deploy list

Using Magento 2.1.1, I would like to deploy a new adminhtml theme in cli. magento setup:static-content:deploy --theme Tc/theme. Result: [InvalidArgumentException] Tc/theme argument has invalid ...
1
vote
1answer
2k views

Class 'Mpdf\Mpdf' not found

I am trying to install the magento2-pdf-generator2 extension, but I first need to install the mpdf library, I ran the composer require mpdf/mpdf command and then ran php bin/magento setup:upgrade and ...
1
vote
1answer
79 views

How can I prepare my Github's extension to install using Composer?

Using the question below I've installed extensions hosted on private and public repositories using composer, but I need to create my custom extension now. How to install an extension on a private ...
1
vote
1answer
130 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
3answers
627 views

upgrade to 2.1.5. composer updated but setup upgrade returns with invalid argument

I've had an issue with a template I purchased and needed to update it to the latest version of Magento. I've backed up my database a files and ran: composer update When this complete I ran php bin/...
1
vote
2answers
1k views

Magento 2: Composer install for my own module

I'm have my own magento 2 module. It's allready uploaded on Gitlab. What i must do to install this module using composer require?
1
vote
0answers
81 views

Magento 2 installation to use Extensions

i know is a bit boring ... How I have to install magento 2 that I can simple use the Extension Manager? If I try to use the Extension Manager I get these errors: Check Updater Application ...
1
vote
0answers
93 views

Magento v. 2.1.4 Readiness Check Fails at Component Dependancy

No other information is given. (Or, if it is, I do not know where to look for it.) I have a clean Magento install, no theme, no extensions, nothing. I am on a shared server so direct php.ini edits ...
1
vote
0answers
143 views

Unable to install any extension on Magento 2.1.0 website

I have a site running on Magento 2.1.0. The site was up and running for a few weeks with no issues, we were able to install a few extensions with no problems. Suddenly, we are unable to install any ...
1
vote
0answers
17 views

How change folder when get code Module in github via composer in magento2?

I have create a module in github. When i run composer require namespace/modulename dev-develop in root magento2 folder. It get source to vendor/namespace/modulename folder. I want put code to app/...
1
vote
1answer
97 views

Install sample data using Composer - Command prompt hangs when asked for password

I'm trying to install Magento2 using composer but when i'm prompted to add my private key the command prompt hangs, not letting me enter my private key.
1
vote
0answers
368 views

Composer autoload doesn't work

This is a follow up question from this question. I want to override a Zend class using composer autoload. It used to work, but not anymore. This is content of my composer.json file: { "name": "...
1
vote
1answer
48 views

Download depended package after installing module

I am developing QrCode Extension in Magento2 which is depended [bacon-qr-code] library so I need to download [bacon-qr-code] library using composer.In Magento2 in root composer.json if I add the "...
1
vote
5answers
907 views

Magento 2 - No Theme after installation

I had "magento 2" installed with composer. the installation is running correctly. Now, when I look at the backend or the frontend no Theme appears. What could be wrong? I have also tried it with the ...
1
vote
1answer
795 views

Magento 2 .gitignore template in combination with Deploybot and Git workflow

I installed Magento 2 using composer locally (on my local Dev environment using MAMP). I added my custom theme and did all my frontend work on my local Dev site. I want my code and changes to be ...
1
vote
1answer
47 views

Howto install Magento2 Testframework as dev requirement

until now, I developed my Magento2 Modules in the app/code directory of a running magento2 instance. This is pretty easy and you can run your tests without having much to think about. after reading ...
1
vote
0answers
119 views

Magento 2 composer update with sample data removes uploaded images?

After running a composer update from 2.0.0 to 2.0.1 on a Magento 2 store that was set up with sample data, any images that were uploaded via an import to pub/media/import and assigned in pub/media/...
1
vote
0answers
191 views

Capistrano & Magento - Previewing new deploy and manually update symlink

I am using a Capistrano deployment workflow for a Magento project. On deploy Capistrano builds this Magento project on the server using https://github.com/Cotya/magento-composer-installer. The issue ...
1
vote
1answer
52 views

magento 2.2 composer checking pubkeys fail

when i run a composer diagnose i get some errors, first of al i have to update my current composer version. But more of my concern is the FAIL on pubkeys. Wich keys are this? The magento ...
0
votes
2answers
1k views

Magento 2 composer “module-wishlist” error

I'm trying to update my magento version to 2.2 (from 2.1.7) but had a "Content Dependency" error, but have narrowed down the issue a module, the "module-wishlist-sample-data" magento module. When I ...
0
votes
1answer
294 views

why is Magento 2 semantic versioning at 100?

I am using Composer to install Magento 2 and I've noticed that all packages are starting with 100. According to semantic versioning rules, Magento 2 packages should be at version 2.x.x something. ...
0
votes
1answer
2k views

Magento 2: Adding Sample Data to an Already Installed System

Is it possible to add the sample data to an already running Magento 2 system? Or is this only possible at install time? If I run php bin/magento sampledata:deploy This will add the sample data ...
0
votes
2answers
3k views

Magento2 Installation: Composer PHP version errors on Windows

I tried to install Magento2 on Windows which runs PHP 5.5.19 and MySQL 5.6.X versions (from xampp package) through Composer, but I received the following errors after running composer install (please ...