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
38
votes
7answers
55k 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 ...
27
votes
6answers
7k views

Magento 2 - Uninstallable set of packages when deploying magento-sample-data

I've followed this Magento DevDocs tutorial to install sample data after installing Magento 2. But after executing the last command ./bin/magento sampledata:deploy I get the following error: ./...
19
votes
1answer
7k views

How to install a specific Magento 2 version with Composer?

I want to install Magento version 2.1.7 with the Composer, I found in the docs that I can use in the require: "magento/product-community-edition": "2.1.7", but composer says that requested package ...
19
votes
1answer
4k views

Integrating composer's autoloader into Magento

So composer is awesome, and there's a lot of code in composer's packagist repository that makes writing Magento extensions easier. The problem I'm facing, is how best to (cleanly) setup autoloading. ...
18
votes
3answers
2k views

Managing Magento/Composer/Deployment

So, I'm enjoying using the hackathon Magento Composer installer, but I'm struggling to understand how others use it in relation to a deployment service. Currently I'm using DeployHQ, and yes, I can ...
18
votes
4answers
4k views

Install Magento Base with Composer

I know there are nice ways to install Magento Modules (from Connect) and from GitHub (if composer.json is provided). (as described in http://magebase.com/magento-tutorials/composer-with-magento/) Is ...
17
votes
1answer
4k views

Magento 2 Enterprise: Create New Module in vendor directory

I tried to create new module in vendor directory in Magento Enterprise 2.0.0. The module could not be loaded after I ran the Magento setup:upgrade. If I move my files to the app/code directory, the ...
16
votes
4answers
14k views

Why `code` folder is missing under `app` folder in magento 2 stable version?

I have downloaded Magento 2 stable from https://www.magentocommerce.com/download with sample data and installed. It's working fine in both areas i.e. frontend & backend. But I could not find app/...
16
votes
3answers
1k views

What is http://packages.magento.com/?

On various social medias I've seen the URL http://packages.magento.com/ bandied about. This appears to be a composer repository (using satis software to host the repository). What's not clear is ...
16
votes
5answers
2k views

What are the best practices for installing third party extensions in Magento 2?

While working on a client project for Magento 2 - I've discovered numerous methods of loading in and keeping track of third party extensions. Going into this assuming that we're using the integrator ...
14
votes
7answers
20k views

Magento 2.1.1 not compatibile with PHP 7.1.0

I've a new server with PHP v7.1.0RC3 installed. According to DevDocs Magento 2 is compatible with 7.0.2 up to 7.1.0, except for 7.0.5 which makes PHP 7.1.0 compatible with M2 however when tried to ...
14
votes
3answers
1k views

Composer installed Ecomdev_PhpUnit skips tests due to missing vfsstream

I'm working with an Enterprise Edition 1.13.1 install (although Community Edition would have the same issue), and we're installing dependencies via composer where they're available. I've installed ...
13
votes
1answer
4k views

Magento 2 uninstall module

Apparently, now Magento 2 supports uninstall scripts that allow db schema modification when uninstalling a module (horay!!). As explained in here this only works for module installed via composer. (I ...
12
votes
8answers
13k views

Package fabpot/php-cs-fixer is abandoned message in Magento 2

I am using Magento 2.0.5. When I run the composer update or composer install command it's showing the following warning. Package fabpot/php-cs-fixer is abandoned, you should avoid using it. Use ...
12
votes
2answers
214 views

Is repo.magento.com's Source Available Anywhere?

Magento 2's composer repository, http://repo.magento.com, appears to be a session-ed composer repository. That is, different users have access to different packages based on the HTTP Auth credentials....
11
votes
4answers
4k views

How to Git-Ignore Symlinks on a Magento Module installed by composer

I install modules using composer.phar. This creates symlinks files in publichtml/app/code/community (for example) with a target to vendor/themodule.... In my .gitignore I excluded the vendor ...
11
votes
1answer
250 views

Choose which file to install via Composer based on Magento version

It would be very convenient to include multiple versions of code in a composer'd module and have composer work out which version to deploy, based on the Magento version of the installation target. ...
11
votes
2answers
771 views

Magento 2: Upgrading a “Meta Package” Install

A while back, I installed Magento 2 via the composer meta-package. This is also known as the integrator install. This appears to have installed Magento CE 2.0.1. Is there a way to upgrade this ...
10
votes
2answers
369 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 ...
9
votes
1answer
1k views

Magento2: different kind of composer.json files

In Magento2 I see different vendors follow different composer.json formats given below to name their modules. 1st: "autoload": { "files": [ "registration.php" ], "psr-4": { "Amit\\...
9
votes
4answers
2k 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 ...
9
votes
2answers
499 views

Magento 2: Minimum Composer File

I've seen a few things floating around the impermanent internet (i.e. Twitter) that some recent changes to Magento 2 make it possible to install a module into the vendor directory via composer, and ...
8
votes
4answers
6k views

Magento 2 deployment process

Currently we commit composer.lock to the repository and then run composer install --no-dev on the production server. I don't think this is the best way to do it because it takes a few minutes for ...
8
votes
2answers
1k views

Magento 2: Origin of the Update Folders

If I install Magento 2 via composer, I end up with a root level folder named update/ This contains the stand-alone updater application. Where do the updater come from? I know Magento's composer ...
8
votes
4answers
685 views

Magento 2 as composer dev requirement for extensions

When writing an extension, would it make sense to add magento/project-community-edition to the require-dev section of composer.json? The idea behind that is that it would only require a composer ...
7
votes
3answers
2k views

Magento 2: What Causes the “Failed to enable crypto” Error?

I'm trying to install Magento 2.1 via the composer meta-package with the following command composer create-project --repository=https://repo.magento.com/ magento/project-community-edition However, ...
7
votes
1answer
2k views

How to use Modules installed with Composer and Firegento in my Magento installation

This is a super basic Magento/Composer question — how are users (i.e. me) supposed to make a Magento system aware of packages installed via composer/firegento? That is — most of the tutorials I've ...
7
votes
1answer
488 views

Composer and Travis Ci with Magento modules

We have an existing module that contains a composer.json file which is working well on its own but we are also wanting to set-up travis-ci with this extension. When the travis-ci runs it fails with ...
7
votes
1answer
90 views

Magento module:uninstall orphans any dependencies (required modules)

I have some modules that are dependent on a core module. When I use the command composer require stti/module-catalogbook Magento installs 2 modules.. Stti_Catalogbook and Stti_Catalogcore. If i ...
6
votes
3answers
8k views

Sample data for Magento 2 - PHP memory problem while installing from Composer

Recently I tried to install Magento 2 with sample data and failed. I added the proper package to the composer.json file and when I run composer update it always fails just before finishing downloading:...
6
votes
2answers
1k views

Get the composer version of installed modules

How can I get, code wise, the list of the installed modules and their version listed in composer? I need something like this (format is just as an example. It's not really important): array( ...
6
votes
2answers
941 views

Can the NPM fiasco happen to Magento 2?

As some of you may know, a huge fiasco happened a month ago with NPM As of now, Magento 2 composer.json file includes a lot of external resources (details on the Magento 2 GitHub) What if one of ...
6
votes
1answer
1k views

Upgrade Magento from 2.1 to 2.2.1 with sample data using composer

What steps do I need to follow to upgrade a demo installation with sample data from Magento 2.1 to the latest 2.2 version? Instructions that work for Magento Commerce (Enterprise Edition) as well as ...
6
votes
1answer
3k views

Magento2: How to include third pary module through composer.json in custom module

I created a custom module, this module depends on thirt party module(tecnickcom/tcpdf), I added this library in my custom module composer.json file { "name": "packagename/mymodule", "description": "N/...
6
votes
1answer
974 views

Key issue when attempting to install Magento 2 EE with composer

Attempting to install Magento 2 EE for a client according to this documentation: http://devdocs.magento.com/guides/v2.0/install-gde/prereq/integrator_install_ee.html I ran the command: composer ...
6
votes
2answers
198 views

How to pull in Magento 2 dev change into standard release

I'm using Magento CE 2.1 There's a fix in the 2.2.x develop branch that looks likely not to be released until 2.2, so how do I pull it into my 2.1 installation? What I have tried As Magento 2 is ...
6
votes
1answer
205 views

How to install module-sample-scss in Magento 2

I'm trying to install this module (magento/module-sample-scss) in Magento 2 with composer as described here, but with no success. If I run this from the Magento root folder: $ composer require ...
6
votes
2answers
1k views

installing & using reactjs in magento 1.9

Im trying to run reactjs library in my magento 1.9 website. reactjs can be run in php server using v8js-php consequently it could work. many reactjs components are installed using composer: a- its ...
6
votes
1answer
956 views

Error during upgrade to Magento 2.1 from 2.0.7

Since a couple of days i try to upgrade my "native" Magento 2.0.7 I use composer as suggested by documentation : composer require magento/product-community-edition 2.1.0 --no-update; composer update; ...
5
votes
2answers
4k 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]...
5
votes
1answer
2k views

Error in using composer to install a module in Magento 2.0

I have used Composer for installing other modules specially from github and they worked fine. However I have problem installing the following module to Magento 2.0 . The module I want to install is ...
5
votes
2answers
3k views

Magento 2 Enterprise install issue

I am trying to install Magento EE 2.0.2 on my local environment. I download the version from my magentocommerce account. When I run the composer install command it is all good except when it start to ...
5
votes
1answer
1k views

Magento 2: After using composer to install, can the “update” folder be deleted?

After installing Magento 2 using the composer method, the update folder that is used to create the project with remains. I cannot see any reason to keep it after installing the composer dependencies. ...
5
votes
1answer
196 views

Magento 2: What is the `component_paths` property in `magento/magento2-base`

In Magento 2, the magento/magento2-base package has the following component_paths section in its composer.json file. "extra": { "component_paths": { "trentrichardson/jquery-timepicker-...
5
votes
3answers
373 views

how to install extension without composer

I want to install this extension in my project where i have integrated a new template :evincemage/module-trackorder . I tried with empty project(without template ) it works but with template it does '...
5
votes
1answer
3k views

Magento 2.2.0 - Upgrade / Migrate from Magento 2.1.9 to Magento 2.2.0 with Sample Data

Followed below commands to upgrade Magento 2.1.9 to 2.2.0 using terminal 1. composer require magento/product-community-edition 2.2.0 --no-update 2. composer require \ magento/module-bundle-...
4
votes
4answers
7k views

Explanation of app/code vs vendor directories please

I'm looking for an explanation of the app/code/[vendor] and vendor/[vendor] directories? (For M2.1) Some online sources (such as inchoo) say to put a new module in app/code/[vendor], yet in 2.1 ...
4
votes
2answers
2k views

How to install modules in app/code with composer in Magento 2

How can I force composer to install modules in app/code instead of vendor directory in Magento 2? I have few modules they strictly need to be install in app/code, but when I update them with ...
4
votes
2answers
121 views

Marshalling in Magento2

According to Magento2 Doc By default, when you install a package, Composer puts it into vendor/<package> directory, such as vendor/magento-module-catalog. However, the Magento framework requires ...
4
votes
1answer
440 views

Magento 2: What's the deployManager?

Recently, after checking out the develop branch from Magento 2's github and running composer install, the composer installer ended with the following messages start magento deploy via deployManager ...