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
2
votes
1answer
58 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 ...
2
votes
2answers
1k views

Running out of memory while reindexing using -d memory_limit=3G

I recently migrated data from Magento 1.8.1 to Magento 2.1.7, which includes around 700,000 customers. After migration, I am running this command: php -d memory_limit=3G bin/magento indexer:reindex ...
2
votes
1answer
287 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 ...
2
votes
1answer
374 views

Require specific Magento 2 Github commit with composer

There are some explanations on Stackexchange on how to require a specific commit with composer, for example these: https://stackoverflow.com/questions/25878984/can-i-pull-a-specific-commit-with-...
2
votes
3answers
195 views

What is the role or composer.json in magento 2? How it is better to use? [closed]

Kindly provide me a role of composer.json in magento2 in brief. How to use composer.json file in Magento 2 and what is its main role in project? Thanks
2
votes
2answers
2k 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?
2
votes
1answer
806 views

Including PHP Class in Magento 2 Controller

I have this 3rd party class Mailchimp.php which I need to include in my controller so that I can create an object and make api calls. But I'm not able to do so. I get this error when I try to run my ...
2
votes
1answer
429 views

Composer not updating package (grabbing it from repo.magento.com instead of packagist) [closed]

My package (https://packagist.org/packages/limesharp/stockists) is not getting updated when running composer update (it's currently stuck at 1.0.5 instead of grabbing 1.0.11). On a closer look at the ...
2
votes
1answer
1k views

bash: stty: command not found error in SSH

I'm trying to install applications from the Magento Repository via Bitvise SSH, but I'm getting the following error in all cases (this case is an attempt to install the Data Migration tool) right ...
2
votes
3answers
2k views

Composer Update Error: magento/product-community-edition 2.1.0 requires php ~5.6.0|7.0.2|~7.0.6

Trying to do an update to Magento 2.1.0 via composer and getting this weird error. Php version is 7.04 running on Ubuntu x64 composer require magento/product-community-edition 2.1.0 --no-update ./...
2
votes
1answer
86 views

Create community module

I downloaded megento with composer and installed it,ther app/code directory for creating module, So i just created this directory and my module directory like this : And etc\modules as the same,i ...
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 ...
2
votes
1answer
2k views

Error failed opening

Can someone tell me what I have to do to fix it ? local:/data/web/public/app/code/community:/data/web/public/app/code/core:/data/web/public/lib:.:/usr/share/php:/usr/share/pear') in /data/web/public/...
2
votes
0answers
31 views

Magento 2 Module Install via Composer

I have created the Demo Module with only module.xml, registration.php and composer.json files in Bit Bucket Public Repository. Please check my composer.json file { "name": "hardikm219/demo", "...
2
votes
0answers
48 views

Magento 2: How to install custom module in app/code folder only using composer.json file?

I'm trying to install my custom module using composer.json file and after run composer update command my custom module installed successfully in magento2. Actually I want to install my custom module ...
2
votes
2answers
126 views

Stop composer replacing the .htacces file

When updating Magento 2 via Composer, the .htaccess file in the Magento root directory gets overwritten with the default repository version. Therefore losing my customisations, which I have to go in ...
2
votes
1answer
33 views

Best Practice Magento 2 / Composer / Custom Module

Can you tell me what are the best practice when you create a custom module for a project. I would say to put the custom module related to the project in app/code/MyNamespace/MyModule and all Generic ...
2
votes
0answers
76 views

Magento2: How to install an external package without composer?

I have some packages installed under the vendor dir. Now, I need a way to take one of them out & place it somewhere else that'll allow editing the files (same as moving a Magento module to app/...
2
votes
3answers
67 views

How to install composer in magento

I am trying to install composer using "composer install" from my command terminal display error.
2
votes
0answers
54 views

why deployVeniaSampleData.sh runs out of memory

Trying to run the Venia sample data deploy script bash deployVeniaSampleData.sh --yes but keeps getting mmap() failed: [12] Cannot allocate memory PHP Fatal error: Out of memory (allocated ...
2
votes
0answers
270 views

Magento 2.3.1 JSON.parse: unterminated string at line 2 column 1009

I am unable to set payment method in Magento 2.3.1. As soon as I click on the payment method button all JavaScript functions are killed. open error log nothing to show, but browser console point me ...
2
votes
0answers
69 views

NGINX 404 error despite Magento Installation complete on CentOS 7 terminal

I am trying to load the /admin part of my development build of the website. I am unsure what could be the cause of this. Using this command: (Some of these details are intentionally not in line with ...
2
votes
2answers
49 views

Composer merge conflicts

We have a develop branch. Every new feature gets created on a branch that runs off the develop branch. Then a pull request is made to the develop branch. This triggers our CI/CD and slowly but ...
2
votes
2answers
2k 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
1answer
140 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 ...
2
votes
0answers
434 views

Setup page not getting loaded after install

I have been trying to install magento 2, When i am trying to access the setup page from url, but the url is not accessible it says This page isn’t working xx.xx.xxx.xxx is currently unable to ...
2
votes
2answers
155 views

Changing from a git to a composer installation

I'm afraid, I've got a Magento 2 installation which has been done via git. I'm not a developer and would like to upgrade simply via composer update. Is it somehow possible to move or migrate from one ...
2
votes
0answers
74 views

Can't upgrade to Magento Commerce 2.2.3

Trying to upgrade Magento Commerce (EE) to 2.2.3 from 2.2.2 using composer, however, the package doesn't seem to be available in repo.magento.com - anyone else had this problem? Tried a lot of ...
2
votes
5answers
701 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 ...
2
votes
3answers
440 views

Magento 2.1.9 Composer error

I'm getting the following error using Magento 2.1.9: "Package magento/composer's source key should be specified as {"type": ..., "url": ..., "reference": ...}, {"type":"git","url":"https:\/\/github....
2
votes
0answers
394 views

Custom theme installed via composer require not showing in setup:static-content:deploy or admin panel

I've created my own custom theme and uploaded it to my private package repository. This works fine and downloads my folder into vendor/<vendor>/theme-my-theme I run: php bin/magento setup:...
2
votes
0answers
447 views

Magento2 Compile command ends at Repositories code generation 1/7

Magento v2.1.7 CE PHP 7.0 Permissions double checked When I run compile command through cli, it ends at step 2 as seen in the image below. I found that it might be due to a wrong auth.json in ...
2
votes
1answer
42 views

Magento 2 custom templating/module in combination with composer

In Magento 2 you can install themes and extensions through composer and they end up in the vendor folder. What if I want to make customisation to that template/extension? Do I copy the code over to ...
2
votes
0answers
89 views

Choosing Magento 2 branches, using patches or fixing bugs in custom modules?

I recently ran into a pretty annoying bug with Magento 2.1.6, which made it impossible to save categories with a lot of products (performance issue). I soon discovered that the solution was quite easy,...
2
votes
0answers
158 views

Magento 2 : Why my module is on the vendor and app folder?

I use these commands to install my dependencies today: composer config repositories.myvendor_cli vcs git@github.com:myvendor/my-cli.git composer require myvendor/cli:dev-master To work well I ever ...
2
votes
0answers
2k views

Invalid argument supplied for foreach() magento version 2.1.3

php bin/magento setup:upgrade [Exception] Warning: Invalid argument supplied for foreach() in G:\workspace1\magento2- alexa\vendor\magento\module-store\Model\Config\Processor\Fallback.php ...
2
votes
0answers
72 views

Magento 2: Unable to upgrade Magento 2.1.3 [duplicate]

I'm trying to upgrade from Magento 2.1.2 to 2.1.3 on my Linux Server. On my Local WAMP it's working fine. I'm upgrading in Developer Mode. I got below error. root@magento-2:/var/www/html/magento# ...
2
votes
1answer
1k views

Interface 'Zend\Stdlib\JsonSerializable' not found [closed]

I'm trying to learn e-commerce solution development and because magento has huge community all around the globe as well as it's scalability with extensions and all other I planned working on Magento.I ...
2
votes
5answers
4k views

Magento Installation Error - Magento 2

I have uploaded Magento2 source code on centos Rackspace server, and I have changed credentials whenever required, but when I run my website, I get an error like "Vendor autoload is not found. Please ...
2
votes
1answer
636 views

Magento 2 deployment from Dev to Staging using Git

I have a local Dev environment and installed Magento 2 using composer I initialized the local /magneto2/ folder as a Git repo I added this .gitignore file to the root of my /magneto2/ folder I have a ...
2
votes
0answers
1k views

Installing Data-Migration-Tool with Composer: git not found error

when I try to install the Data-Migration-Tool with Composer: composer config repositories.data-migration-tool git https://github.com/magento/data-migration-tool composer require magento/data-...
1
vote
3answers
16k views

Install extension using composer Magento 2

I'm using magento 2 , and I'm trying to install an extension from composer.json file , now I've installed composer through SSH , but I'm new to composer installations , how do I proceed now with the ...
1
vote
3answers
307 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 ...
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/...
1
vote
1answer
358 views

Magento 2: Composer update / install is no longer copying magento2-base structure

I've got this strange problem I ran into only since recently. Usually, when I got a new or existing project and I run composer install or composer update, composer will automatically copy (map) the ...
1
vote
2answers
243 views

Im trying to install Magento via composer can't insert password

composer create-project --repository-url=https://repo.magento.com/ magento/project-enterprise-edition Authentication required (repo.magento.com): Username: d89125c*********************** ...
1
vote
2answers
501 views

Loading Mage.php from within Symfony2

What's the best way to load the Mage.php (Magento) class within Symfony2. I've read documentation and and tried different autoloader and classloader configurations but the only thing works for me is ...
1
vote
2answers
457 views

Magento 2 : How can you install a Magento2 quickly to last version with sample data with composer

How can you install a Magento 2 quickly to last version with sample data with composer Can you install a Magento2 last version with sample data with composer?
1
vote
1answer
219 views

Magento 2 : How quickly can you install with composer a Magento2 last version without sample data [closed]

How quickly can you install with composer a Magento2 last version without sample data
1
vote
2answers
756 views

Magento 2 composer.json require field

I built an extension for Magento 2 and now I want to package it using the following guide: http://devdocs.magento.com/guides/v2.0/extension-dev-guide/package/package_module.html There is a sample ...

1 2 3 4 5 10