2017 © Pedro Peláez
 

composer-plugin composer

A Composer plugin to install Joomla extensions into your installation.

image

joomlatools/composer

A Composer plugin to install Joomla extensions into your installation.

  • PHP
  • 26 Dependents
  • 0 Suggesters
  • 11 Forks
  • 5 Open issues
  • 17 Versions
  • 8 % Grown

The README.md

Joomlatools Composer Installer

This Composer plugin will install extensions into your Joomla setup., (*1)

Usage

Defining a package

The easiest way to get started is by defining a custom package in your composer.json file. All you need is the package file for the extension you wish to install. (ie. the installer file you downloaded from the vendor's website), (*2)

Update the composer.json file in the root directory of your Joomla installation by adding the following properties:, (*3)

{
        "repositories": [
            {
                "type": "package",
                "package": {
                    "name": "vendor/extension",
                    "type": "joomlatools-extension",
                    "version": "1.0.0",
                    "dist": {
                        "url": "file:////Users/johndoe/Downloads/com_extension.1.0.0.tar.gz",
                        "type": "tar"
                    },
                    "require": {
                        "joomlatools/composer": "*"
                    }
                }
            }
        ],

        ...

        "require": {
            ...
            "vendor/extension": "1.0.0"
        }
}

Using this JSON file, we have now defined our own custom package. Pay attention to the following settings:, (*4)

  • The type has to be set to joomlatools-extension
  • Make sure the url directive points to the location of the install package.

Executing composer install will now fetch the joomlatools/composer plugin and use it to install the package into your Joomla installation., (*5)

For more information on creating these custom packages for projects which do not support Composer, see the Composer docs., (*6)

Creating a custom package

To make use of all Composer's features, eg. upgrading to a newer version, you are better off creating a package using your extension's source code., (*7)

The package definition should contain the following basic information to make it installable into Joomla:, (*8)

{
        "name": "vendor/my-extension",
        "type": "joomlatools-extension",
        "require": {
            "joomlatools/composer": "*"
        }
}

If you want to make your extension available directly from Github or any other VCS, you want to make sure that the file layout in your repo resembles your install package., (*9)

If you want to move the main Joomla installer manifest to the repository root before running the installation, provide the following information in your composer.jsonfile:, (*10)

{
    "extra": {
        "manifest": "path/to/manifest/joomlatools.xml"
    }
}

If the package is for a Joomlatools Framework reusable component, provide the following information in your composer.jsonfile:, (*11)

{
    "extra": {
        "joomlatools-component": "component-name"
    }
}

You can now publish your extension on Packagist or serve it yourself using your own Satis repository., (*12)

For more information on rolling your own package, please refer to the Composer documentation., (*13)

More

For more information, FAQ and examples, refer to our developer documentation., (*14)

Development

Refer to the wiki on how to set up this repository for local development., (*15)

Debugging

Having trouble? You can increase Composer's verbosity setting (-v|vv|vvv) to gather more information. Increasing Composer's verbosity will also enable Joomla's log messages., (*16)

Requirements

  • Composer
  • Joomla version 3.6+

Contributing

The joomlatools/composer plugin is an open source, community-driven project. Contributions are welcome from everyone. We have contributing guidelines to help you get started., (*17)

Contributors

See the list of contributors., (*18)

License

The joomlatools/composer plugin is free and open-source software licensed under the GPLv3 license., (*19)

Community

Keep track of development and community news., (*20)

The Versions

27/04 2018

dev-master

9999999-dev https://github.com/joomlatools/joomlatools-composer

A Composer plugin to install Joomla extensions into your installation.

  Sources   Download

GPLv3 GPL-3.0-only

The Requires

  • composer-plugin-api ^1.0

 

extension composer installer joomla

25/09 2017

1.1.x-dev

1.1.9999999.9999999-dev https://github.com/joomlatools/joomlatools-composer

A Composer plugin to install Joomla extensions into your installation.

  Sources   Download

GPLv3

The Requires

  • composer-plugin-api ^1.0

 

extension composer installer joomla

25/09 2017

v1.1.2

1.1.2.0 https://github.com/joomlatools/joomlatools-composer

A Composer plugin to install Joomla extensions into your installation.

  Sources   Download

GPLv3

The Requires

  • composer-plugin-api ^1.0

 

extension composer installer joomla

02/05 2017

v1.1.1

1.1.1.0 https://github.com/joomlatools/joomlatools-composer

A Composer plugin to install Joomla extensions into your installation.

  Sources   Download

GPLv3

The Requires

  • composer-plugin-api ^1.0

 

extension composer installer joomla

02/05 2017

dev-feature/32-release

dev-feature/32-release https://github.com/joomlatools/joomlatools-composer

A Composer plugin to install Joomla extensions into your installation.

  Sources   Download

GPLv3

The Requires

  • composer-plugin-api ^1.0

 

extension composer installer joomla

18/01 2017

v1.1.0

1.1.0.0 https://github.com/joomlatools/joomlatools-composer

A Composer plugin to install Joomla extensions into your installation.

  Sources   Download

GPLv3

The Requires

  • composer-plugin-api ^1.0

 

extension composer installer joomla

27/07 2016

dev-develop

dev-develop https://github.com/joomlatools/joomlatools-composer

A Composer plugin to install Joomla extensions into your installation.

  Sources   Download

GPLv3

The Requires

  • composer-plugin-api ^1.0

 

extension composer installer joomla

12/04 2016

dev-feature/23-upgrades

dev-feature/23-upgrades https://github.com/joomlatools/joomlatools-composer

A Composer plugin to install Joomla extensions into your installation.

  Sources   Download

GPLv3

The Requires

  • composer-plugin-api ^1.0

 

extension composer installer joomla

01/12 2015

v1.0.8

1.0.8.0 https://github.com/joomlatools/joomlatools-composer

A Composer plugin to install Joomla extensions into your installation.

  Sources   Download

GPLv3

The Requires

  • composer-plugin-api ^1.0

 

extension composer installer joomla

06/09 2015

v1.0.7

1.0.7.0 https://github.com/joomlatools/joomla-composer

A Composer plugin to install Joomla extensions into your installation.

  Sources   Download

GPLv3

The Requires

  • composer-plugin-api ^1.0

 

extension composer installer joomla

03/07 2015

v1.0.6

1.0.6.0 https://github.com/joomlatools/joomla-composer

A Composer plugin to install Joomla extensions into your installation.

  Sources   Download

GPLv3

The Requires

  • composer-plugin-api ^1.0

 

extension composer installer joomla

11/06 2015

v1.0.5

1.0.5.0 https://github.com/joomlatools/joomla-composer

A Composer plugin to install Joomla extensions into your installation.

  Sources   Download

GPLv3

The Requires

  • composer-plugin-api ^1.0

 

extension installer joomla

19/05 2015

v1.0.4

1.0.4.0 https://github.com/joomlatools/joomla-composer

A Composer plugin to install Joomla extensions into your installation.

  Sources   Download

GPLv3

The Requires

  • composer-plugin-api 1.0.0

 

extension installer joomla

02/05 2015

v1.0.3

1.0.3.0 https://github.com/joomlatools/joomla-composer

A Composer plugin to install Joomla extensions into your installation.

  Sources   Download

GPLv3

The Requires

  • composer-plugin-api 1.0.0

 

extension installer joomla

04/03 2015

v1.0.2

1.0.2.0 https://github.com/joomlatools/joomla-composer

A Composer plugin to install Joomla extensions into your installation.

  Sources   Download

GPLv3

The Requires

  • composer-plugin-api 1.0.0

 

extension installer joomla

13/01 2014

v1.0.1

1.0.1.0 https://github.com/joomlatools/joomla-composer

A Composer plugin to install Joomla extensions into your installation.

  Sources   Download

GPLv3

The Requires

  • composer-plugin-api 1.0.0

 

extension installer joomla

05/11 2013

v1.0.0

1.0.0.0 https://github.com/joomlatools/joomla-composer

A Composer plugin to install Joomla extensions into your installation.

  Sources   Download

GPLv3

The Requires

  • composer-plugin-api 1.0.0

 

extension installer joomla