Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install via Composer #2

Closed
simadesign opened this issue Dec 15, 2015 · 7 comments
Closed

Install via Composer #2

simadesign opened this issue Dec 15, 2015 · 7 comments

Comments

@simadesign
Copy link

Can you give me a hint, how to install the modul via composer?
Do I have to add a rep?

I tried that: composer config -g repositories.firegento composer http://packages.firegento.com
and composer require firegento/magesetup2 but it didn't work.

Regards

@therouv
Copy link
Member

therouv commented Dec 15, 2015

Hi @simadesign the module is currently not available on packages.firegento.com
You can always add the repository directly to your composer.json like this:

{
  "type": "git",
  "url": "https://github.com/firegento/firegento-magesetup2.git"
}

@therouv therouv closed this as completed Dec 15, 2015
@simadesign
Copy link
Author

Sry I am new with the composer. Where must I add it? in the "require" - line?

This is my composer.js-file:

{
"name": "magento/project-community-edition",
"description": "eCommerce Platform for Growth (Community Edition)",
"type": "project",
"version": "2.0.0",
"license": [
"OSL-3.0",
"AFL-3.0"
],
"repositories": {
"0": {
"type": "composer",
"url": "https://repo.magento.com/"
},
"data-migration-tool": {
"type": "git",
"url": "https://github.com/magento/data-migration-tool-ce"
},
"magento": {
"type": "composer",
"url": "http://packages.magento.com/"
}
},
"require": {
"magento/product-community-edition": "2.0.0",
"composer/composer": "@Alpha",
"magento/data-migration-tool": "dev-master"
},
"require-dev": {
"phpunit/phpunit": "4.1.0",
"squizlabs/php_codesniffer": "1.5.3",
"phpmd/phpmd": "@stable",
"pdepend/pdepend": "2.0.6",
"sjparkinson/static-review": "~4.1",
"fabpot/php-cs-fixer": "~1.2",
"lusitanian/oauth": "~0.3 <=0.7.0"
},
"config": {
"use-include-path": true
},
"autoload": {
"psr-4": {
"Magento\Framework": "lib/internal/Magento/Framework/",
"Magento\Setup": "setup/src/Magento/Setup/",
"Magento": "app/code/Magento/"
},
"psr-0": {
"": "app/code/"
},
"files": [
"app/etc/NonComposerComponentRegistration.php"
]
},
"autoload-dev": {
"psr-4": {
"Magento\Sniffs": "dev/tests/static/framework/Magento/Sniffs/",
"Magento\Tools": "dev/tools/Magento/Tools/",
"Magento\Tools\Sanity": "dev/build/publication/sanity/Magento/Tools/Sanity/",
"Magento\TestFramework\Inspection": "dev/tests/static/framework/Magento/TestFramework/Inspection/",
"Magento\TestFramework\Utility": "dev/tests/static/framework/Magento/TestFramework/Utility/"
}
},
"minimum-stability": "alpha",
"prefer-stable": true,
"extra": {
"magento-force": "override"
}
}

@therouv
Copy link
Member

therouv commented Dec 15, 2015

Hi @simadesign To the "repositories" section.

@simadesign
Copy link
Author

Thanks for your help @therouv 👍 I give it a try!

@simadesign
Copy link
Author

I add this to the composer.js:

    "firegento-magesetup2": {
      "type": "git",
      "url": "https://github.com/firegento/firegento-magesetup2.git"
    }

But the composer update only shows "Nothing to install or update". I also tried "composer require firegento/firegento-magesetup2" there comes: "Could not find package".

@therouv
Copy link
Member

therouv commented Dec 15, 2015

It should look like this:

  ...
  "repositories": [
    ...
    {
      "type": "git",
      "url": "https://github.com/firegento/firegento-magesetup2.git"
    }
  ],
  ...

@simadesign
Copy link
Author

ok. I'm confused.The composer.js from magento looks like this:

"repositories": {
"0": {
"type": "composer",
"url": "https://repo.magento.com/"
},
"data-migration-tool": {
"type": "git",
"url": "https://github.com/magento/data-migration-tool-ce"
},
"magento": {
"type": "composer",
"url": "http://packages.magento.com/"
},
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants