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
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
2answers
2k views

Magento 2: usage of composer.json file?

I would like to know that why we create compose.json and What is it use. Can someone briefly explain that to me? company --module composer.json
4
votes
1answer
470 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 ...
4
votes
2answers
71 views

What is Composer and how to use it?

After having had some problems while trying to upgrade Magento 2, or when installing new modules, I often find the suggestion of "using Composer" to do it. However, as a designer (not really a ...
4
votes
5answers
7k views

Why I'm having errors after install an update from 2.1.0 to 2.1.2 with composer?

Errors after installing update from 2.1.0 to 2.1.2 PHP Warning: require(/var/www/vendor/composer/../../app/etc/NonComposerComponentRegistration.php): failed to open stream: No such file or ...
4
votes
3answers
986 views

How to upgrade magento to 2.1.0-rc1 via composer?

I need to upgrade version of my magento base inside store. All the vendors I'm getting via composer and git contains only my /app/code and /web/composer.json. Current version is 2.0.7 and needed ...
4
votes
1answer
424 views

Magento 2.1.5+ Composer Install Fails To Generate All Files

I have a project running on Magento 2.1.4, I have the bare minimum needed stored in a Git Repo, which I can clone and run composer install & php bin/magento setup:upgrade and all works fine; it ...
4
votes
1answer
125 views

Magento 1 extension and composer : Packagist and/or Firegento

I just finished an extension and I was wondering : in order to have my extension available in composer, is it better to publish it on Packagist or in Firegento ? In fact, I already published it to ...
4
votes
2answers
2k views

Could not locate magento/magento2-base/composer.json file

I'm getting constant errors as the below message but I'm not sure where to start by fixing this issue: [2016-12-15 02:35:01] setup-cron.ERROR: Could not locate magento/magento2-base/composer.json ...
4
votes
2answers
1k views

Magento 2 composer install fails with at zendframework1

I'm running this command to install magento 2: composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition . It downloads a few packages: Installing magento/...
4
votes
1answer
721 views

How to composer-require Magento2 develop branch?

I am currently installing the Magento 2 modules via a "require": { "magento/product-community-edition": "*" }, "repositories": [ { "type": "composer", "url": "http://packages....
4
votes
2answers
158 views

What happens when you run Magento on an empty database?

If you drop all the tables in your Magento database, and navigate to your Magento site, what happens next? The reason I ask is I assume that Magento would just check the local.xml settings, and ...
4
votes
2answers
3k views

File Permissions Magento 2

I am trying to use Mark Shust's repo to install Magento 2 with Docker. For some strange reason, I am getting this error: I tried all the answers here. For more details: https://github.com/...
4
votes
1answer
450 views

Reinstall an existing Module using Composer (in Git)

I have a module already installed in the tree and want to replace it by installation via composer. The magento hackathon composer installed is used. Also all symlinks created by the installer are ...
4
votes
2answers
1k views

Use of other Folders under vendor in Magento 2

I am used to Magento 1.x, now It's really confusing to understand the Magento 2.0.x structure. I am trying to do it. Please help me to understand what is the function of the following folders below ...
4
votes
2answers
593 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’...
4
votes
1answer
1k views

problem with composer on magento 2

I want to setup new extension with composer on magento2 and I get this error: [Composer\Downloader\TransportException] Invalid credentials for 'https://repo.magento.com/packages.json', aborting. I ...
4
votes
1answer
463 views

Deploy content of pub folder using composer when installing a new Magento 2 module

There are many modules that require to copy some files and folder inside the magento's "pub" folder. As our entire modules operations and infrastructure is based on composer, this manual (non-composer)...
4
votes
1answer
157 views

Magento2 | Which procedure to upgrade to 2.2.6 in area development / GIT?

We have started development on a Magento CE 2.2.5 and installed theme / modules and custom module. We are working with local project/server versioned with GIT. The gitignore file specify to ...
4
votes
0answers
482 views

Could not install B2B extension for magento 2.2.0-EE

I have installed Magento-EE-2.2.0 with sample data. After installation, i tried to install B2B extension using composer composer require magento/extension-b2b Used the following reference site ...
4
votes
0answers
127 views

Validating composer.json in magento giving me the following error

Updating through the command line and with market place took 1) Once you have packaged your extension in .zip file move it to a directory. 2) Download the validation script and extract it to the ...
3
votes
1answer
969 views

How to deploy public PHP files in Magento 2 extension?

I need to deploy a publicly accessible PHP file as part of a Magento 2 extension. Obviously this is not intended, as usually all requests should be routed through index.php, but in this case it's ...
3
votes
4answers
3k views

Magento 2: “https://packages.magento.com/packages.json” file could not be downloaded

I keep getting this warning when I run composer update in my Magento 2 install. Loading composer repositories with package information Your configuration does not allow connections to http://packages....
3
votes
1answer
871 views

Magento 2 - discrepancy between documentation and theme files structure on github

I am creating a new theme and would like to start by duplicating the default blank theme and then modify it to become my new theme. When I checked the frontend developer guides, it indicated the ...
3
votes
1answer
5k views

How to Uninstall modules in Magento 2 using composer?

How to Uninstall modules "ub data migration" in Magento 2 using composer
3
votes
2answers
553 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 ...
3
votes
2answers
2k 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# ...
3
votes
2answers
73 views

How to use Composer to update just the Magento 2 core packages?

I would like to use the composer update feature to update all the core packages, not the third-party packages together. Do you have some idea?
3
votes
3answers
2k views

Make Magento 2 Module installable from github/bitbucket

I want to make my extension, say Easy Template Path Hints which is available on github(may be on bitbucket someday) installable via composer. Tried many variation but it's not working. Here are some ...
3
votes
1answer
131 views

Would I always need Composer or just with Magento 2 beta?

I want to start with Magento 2. Unfortunately my VPS is running php 5.4 so i have to request an upgrade first, but when that is done, would i need composer always to install Magento 2 or is it just ...
3
votes
3answers
1k views

How To Download Magento 2.2.0 RC Setup using Composer?

I know how to install Magento 2 using composer. Magento lattest release of beta version Magento 2.2.0 - Dev.I don't know how to download or Installation Using Composer. I try to run direct "...
3
votes
1answer
56 views

Can we create single composer file for more then 1 module

I am creating one module which will contain more then 1 module in it. Is it possible to create single composer file for more then 1 module? Please let me know is it possible or not. If yes, then it ...
3
votes
3answers
17k views

Magento 2 Composer Error

trying to have a go at magento 2, I have the latest PHP. Error message: Vendor autoload is not found. Please run 'composer install' under application root directory Where do you install composer, ...
3
votes
1answer
736 views

Magento 2.2.0 Upgrade error

When I am trying to upgrade my Magento version from 2.1.7 CE to 2.2.0 CE, through composer update, I am getting the following error. Problem 1 - magento/module-wishlist-sample-data 100.1.0-rc1 ...
3
votes
1answer
2k views

Magento 2.2 sample data composer version fails

I'm trying to install sample data on Magento 2.2: composer config http-basic.repo.magento.com public_key priv && \ composer config repositories.magento composer https://repo.magento.com &&...
3
votes
2answers
59 views

Magento 2: Problem in installing installation?

I'm installing Magento 2 using composer that I have downloaded from GitHub. While installing I'm asked with the username from repo.magento.
3
votes
1answer
1k views

How should dependencies of manually installed modules be installed?

We are setting up a Magento 2 store using Composer to manage packages whenever possible. This is working great for us, except that some third-party extensions we have purchased are not available to ...
3
votes
2answers
132 views

Where Does Magento use Composer's `type` Attribute — Is this Required?

In my experiments with Magento 2 composer packages, I've been able to get a package up and running without using composer's type attribute. However, this class file #File: vendor/magento/framework/...
3
votes
2answers
607 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 ...
3
votes
2answers
92 views

Magento 2 : How to override a custom module which install via composer?

I have installed one custom module using composer as usually that module was installed in vendor directory is there any way to override phtml file in the same module like name but on app/code module ...
3
votes
2answers
201 views

The composer is installing different module versions than the required one

On a Magento 2 branch, when I am running the composer will get different module versions than the required one. Let's say for the Magento_Store module I do need the 2.0.0 version, but the composer is ...
3
votes
1answer
2k views

Does composer dump-autoload -o need to be run after setup:di:compile if composer install --optiomize-autoloader hase been run before

Every thing is in the title : Does composer dump-autoload -o really need to be run after setup:di:compile as the official document seem to pretend : http://devdocs.magento.com/guides/v2.2/config-guide/...
3
votes
1answer
137 views

Why does Magento 2 composer.json require composer?

Perhaps a stupid question but: Why does Magento 2 composer.json require Composer? If you look at the composer.json (either of the GitHub repo or the composer.json bundled with the downloaded archive ...
3
votes
1answer
2k views

Fix issues with composer.lock and composer.json updatation

I am having issue of installing extension from CLI and it displays auto-load error of one past extension and says it's already defined. ie: Autoload error: Module 'Mageplaza_Core' from '/vendor/...
3
votes
1answer
808 views

Magento2 - Moving or extending a module from vendor to app folder

I have an extension Magestore_Bannerslider, which the previous developer installed using composer for magento2, The module is installed and working properly. The code is in the vendor folder I need ...
3
votes
2answers
284 views

Is there a public status for https://repo.magento.com/

Is there a status for https://repo.magento.com/ to check if everything is working fine and decide if it is a local issue or not? It seems that this morning the repo is not responding and information ...
3
votes
7answers
7k views

Magento 2 module not registering and causing CLI to fail

I am in the early stages of test developing a Magento 2 extension - and I am having problems with registration of the module. The confusing thing is (I think) I am following the same method that ...
3
votes
1answer
7k views

Magento 2: How to solve an error when reindex by CLI?

I used Magento 2 stable version. when I run Magento setup:upgrade, following error occurred. [InvalidArgumentException] There are no commands defined in the "setup" namespace. And when I run Magento ...
3
votes
1answer
492 views

Installation issues on packaging a module: Magento 2

I created a custom module in Magento 2 and then tried to package it for submitting it to the Magento marketplace. I followed this link in order to create a composer file and packaging of the module: ...
3
votes
2answers
2k views

Magento 1: how to debug a “class not found” autoloader error?

So, I'm facing the almighty "Class Bla not found" error on one of my website. The class file sits in the vendor folder and I'm using an event observer for the autoload: <events> <...