Giter Site home page Giter Site logo

mikeymike / magento-connect-composer-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aydinhassan/magento-connect-composer-plugin

0.0 1.0 0.0 17 KB

A Composer plugin to install packages from Magento Connect, without using a custom Satis install like http://packages.firegento.com/

License: MIT License

PHP 100.00%

magento-connect-composer-plugin's Introduction

magento-connect-composer-plugin

A Composer plugin to install packages from Magento Connect using composer, without using a custom satis install like http://packages.firegento.com/

This tool replaces using http://packages.firegento.com/ as I've found it to be unreliable, there are many packages found on connect that are not present. There seems to be a slight lag on new versions also. I created this plugin instead of contributing as it seems the source for the connect crawling is not public. I believe this tool is slightly more simple in its inner workings.

Setup

Require this plugin:

composer require aydin-hassan/magento-connect-composer-plugin

Define your connect packages:

{
    "name": "some-magento-project",
    "require": {
        "aydin-hassan/magento-connect-composer-plugin" : "~1.0"
    },
    "extra": {
        "connect-packages" : {
            "Adyen_Payment": "~2.3",
            "Aijko_WidgetImageChooser" : "*"
        }
    }
}

Note: The connect packages should be the conenct extenison key. The exact same case should be used as the connect server is case-sensitive. All versions available on connect will be available to you and you can use composer's special operators such as ^ , ~ and 1.*.

Update!

composer update

Tip: If you use this plugin inconjunction with magento-composer-installer the modules will also be installed to your magento-root-dir.

Finding modules

Either use:

If you use connect you will need an account to view the extension key.

Notes

The first time you install the package, if you already have your extra defined, the connect packages will not be downloaded. This is due to the plugin needing to process the extra before composer performs dependency solving. Any events after the package has been installed for the first time are too late. However, a message will be printed in this circumstance telling you to run composer update again.

This problem is irrelevent if you first install the plugin then define your conenct packages. This issue does not occur when installing from the lock file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.