Skip to content
This repository was archived by the owner on Jun 23, 2019. It is now read-only.

Latest commit

 

History

History
41 lines (27 loc) · 1.24 KB

INSTALL.md

File metadata and controls

41 lines (27 loc) · 1.24 KB

INSTALLATION

With composer

  1. Add this project in your composer.json:

    "scripts": {
        "post-install-cmd": ["php vendor/kevin-olbrich/composer-svn-externals-hook/bin/add-externals.php"],
        "post-update-cmd": ["php vendor/kevin-olbrich/composer-svn-externals-hook/bin/add-externals.php"],
    	"post-autoload-dump": ["php vendor/kevin-olbrich/composer-svn-externals-hook/bin/add-externals.php"]
    },
    
    "require": {
        "kevin-olbrich/composer-svn-externals-hook": "1.0.*@dev"
    }
  2. Create the folder vendor/externals and add an svn-external.

  3. Add an "external.json" file to your external library root directory including the root-namespace of your lib. You can commit this file to your svn to use the external mechanism in a team.

  4. Now tell composer to download composer-svn-externals-hook by running the command:

    $ php composer.phar update

Adding a new svn external

  1. Just add a new svn:external to vendor/externals.

  2. "svn update" to receive the files.

  3. Add an "external.json" file to your external library root directory as described above.

  4. Trigger the integration:

    $ php composer.phar update