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

Is it safe to have composer in production?

Is it safe/ok to have composer in production on a server hosting Magento?
2
votes
3answers
172 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
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?
2
votes
1answer
774 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
405 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
33 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
1answer
31 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
47 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
47 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
46 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
204 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
57 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
44 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
1answer
115 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
428 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
122 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
620 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
395 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
339 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
410 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
41 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
86 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
150 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
71 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
612 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
15k 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
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
3answers
235 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
1answer
298 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
201 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
497 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
434 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
209 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
725 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
vote
5answers
11k views

magento: command not found on Magento2 Already Installed through wizard

Was getting lots of issues installing, so installed Magento2 via Softaculous Installer in CPanel. Installed successfully and site & admin is accessible. NOW, however, wanting to do things via CLI ...
1
vote
1answer
611 views

Magento2 custom module downloaded by composer at two places

I have hosted my custom module on bitbucket, and using satis proxy between comopser and bitbucket. The problem is, when i use the command composer require vendor/module, it downloads the module at two ...
1
vote
2answers
94 views

Composer Based Modules and PSR4 Autoloaders

Is it safe to assume that any composer based module package will have a PSR 4 autoloader section whose prefix is the full module name? i.e. "autoload": { "psr-4": { "Foo\\Bar\\": "src/" ...
1
vote
1answer
456 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/...
1
vote
2answers
2k views

Can't upgrade Magento 2.2.4 to 2.2.5

I am trying to upgrade Magento 2.2.4 to 2.2.5 with composer. php bin/magento maintenance:enable php composer.phar require magento/product-community-edition 2.2.5 --no-update php composer.phar update ...
1
vote
1answer
961 views

Magento 2 Cannot create cache directory

I'm running composer update command, but it's showing error, that says : Cannot create cache directory /home/111111.cloudwaysapps.com/esdasrdss/.composer/cache/repo/https---repo.magento.com/, ...