2017 © Pedro PelĂĄez
 

composer-plugin joomla-rapid-composer

A Composer plugin to install Joomla extensions into your installation.

image

mikoweb/joomla-rapid-composer

A Composer plugin to install Joomla extensions into your installation.

  • Sunday, May 24, 2015
  • by mikoweb
  • Repository
  • 1 Watchers
  • 2 Stars
  • 26 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 13 Versions
  • 0 % Grown

The README.md

Joomlatools Composer Installer

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

Usage

Quick start with Joomla Startup

Checkout repository:, (*2)

svn co http://repo.mikoweb.pl/svn/joomla-startup/trunk ./, (*3)

Attach a domain to web directory or create symbolic link to public_html:, (*4)

ln -s web public_html, (*5)

Run command:, (*6)

php joomla.php joomla:install 3.3.*, (*7)

Defining a package

The easiest way to get started is by defining a custom package in your composer.jsonfile. 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), (*8)

Create the composer.json file in the root directory of your Joomla installation and have it look something like this:, (*9)

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

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

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

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

Executing composer install will now fetch the mikoweb/joomla-rapid-composer plugin and use it to install the package into your Joomla installation., (*11)

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

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., (*13)

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

{
        "name": "vendor/my-extension",
        "require": {
            "mikoweb/joomla-rapid-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., (*15)

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

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

Change the user

The installer injects a user called root into the Joomla application at runtime to make sure that the installer scripts have the necessary permissions to execute., (*18)

If for some reason, you need to change the details of this mock user, you can override them by adding a joomla block into the config section of your composer.json. Example:, (*19)

{
    "config": {
        "joomla": {
            "basedir": "joomla",
            "username":  "johndoe",
            "name":      "John Doe",
            "email":     "john@doe.com"
        }
    }
}

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., (*20)

Requirements

  • Composer
  • Joomla version 2.5 and up.

Contributing

We appreciate any contribution, whether it is related to bugs, grammar, or simply a suggestion or improvement. We ask that any contribution follows a few simple guidelines in order to be properly received., (*21)

We follow the GitFlow branching model, from development to release. If you are not familiar with it, there are several guides and tutorials online to learn about it., (*22)

There are a few things you must know before submitting a pull request:, (*23)

  • All changes need to be made against the develop branch. However, it is very well appreciated and highly suggested to start a new feature branch from develop and make your changes in this new branch. This way we can just checkout your feature branch for testing before merging it into develop.
  • We will not consider pull requests made directly to the master branch.

Authors

See the list of contributors., (*24)

License

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

The Versions

24/05 2015

dev-mikoweb

dev-mikoweb https://github.com/mikoweb/joomla-rapid-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

24/05 2015

0.1.0

0.1.0.0 https://github.com/mikoweb/joomla-rapid-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

28/08 2014

0.0.11

0.0.11.0 https://github.com/mikoweb/joomla-rapid-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

21/08 2014

0.0.10

0.0.10.0 https://github.com/mikoweb/joomla-rapid-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

14/07 2014

0.0.9

0.0.9.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/07 2014

0.0.8

0.0.8.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/07 2014

0.0.7

0.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.0

 

extension installer joomla

28/06 2014

0.0.6

0.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.0

 

extension installer joomla

24/06 2014

0.0.5

0.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.0

 

extension installer joomla

23/06 2014

0.0.4

0.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

23/06 2014

0.0.3

0.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

18/06 2014

0.0.2

0.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

11/06 2014

0.0.1

0.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