Skip to content

Composer plugin that install packages, specified in extra section. Allow OS specific

License

Notifications You must be signed in to change notification settings

universalsoftware/composer-extra-installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Composer Plugin for installing extra dependencies

This composer plugin installs extra dependencies like fixtures, or OS specified packages.

It's usefull, if you want install specific packages only for Windows or a many binary packages.

This plugin install only specified packages, and won't download package dependencies.

This plugin will not add specified packages to autoload, there for section autoload not working.

Example usage

composer.json

{
    ...
    "require": {
        "unvsoft/composer-extra-installer": "dev-master"
        ...
    },
    "extra": {
        "extra-require": {
            "unvsoft/main-programs": "dev-master"
        },
        "extra-require-unix": {
            "unvsoft/emsow-pacs-bridge": "1.2.1"
        },
        "extra-require-dev": {
            "unvsoft/fixtures/video-samples": "20141117",
            "unvsoft/fixtures/images-samples": "20140622"
        },
        "extra-require-dev-win": {
            "dcmtk/dcmtk-unvsoft-win64": "3.6.1-rc20140821",
            "imagemagick/imagemagick-q16-win32": "6.8.9-patch5"
        }
        ...
    }
    ...
}

Where packages specified in

  • require-extra will be always installed (like require section),
  • require-extra-win install when OS is Windows,
  • require-extra-unix install when OS like Unix,
  • require-extra-dev installed when option --no-dev not specified
  • require-extra-dev-win installed when OS is Windows and option --no-dev not specified
  • require-extra-dev-win installed when OS like Unix and option --no-dev not specified

About

Composer plugin that install packages, specified in extra section. Allow OS specific

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages