2017 © Pedro Peláez
 

composer-plugin composer-extra-files

Composer plugin for requiring additional files from composer packages.

image

lastcall/composer-extra-files

Composer plugin for requiring additional files from composer packages.

  • Sunday, October 1, 2017
  • by rbayliss
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,488 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 3 Versions
  • 25 % Grown

The README.md

Composer Extra Files Plugin

Composer Extra Files Plugin is brought to you by your friends at Last Call Media, this composer plugin allows you to request additional files to be downloaded with your composer package., (*1)

When should I use this?

The most common use case is if you have compiled front-end code, where the compiled version is never committed to a git repository, and therefore isn't registered on packagist.org. For example, if you want your distributed package to depend on an NPM/Bower package., (*2)

Note: You probably shouldn't use this if you have the ability to add repositories to your project's root composer.json. There are better alternatives for this. See Composer Asset Plugin and Asset Packagist. This plugin is most useful for packages that are required by other packages, since Composer doesn't allow nested repositories., (*3)

Usage

In your package's composer.json, require this plugin, and specify the extra files in the "extra" section:, (*4)

{
  ... 
  "require": {
    "lastcall/composer-extra-files": "~1.0"
  }
  "extra": {
    "extra-files": {
      "ui": {
        "url": "https://registry.npmjs.org/lastcall-mannequin-ui/-/lastcall-mannequin-ui-1.0.0-rc2.tgz",
        "path": "ui"
      }
    }
  }
  ...
}

The ui identifier here is an arbitrary ID for each dependency., (*5)

The url key specifies the URL to fetch the content from. If it points to a tarball or zip file, it will be unpacked on downloading., (*6)

The path key specifies the folder (relative to where your package is installed in /vendor) that the content is installed into., (*7)

The Versions

01/10 2017

dev-master

9999999-dev

Composer plugin for requiring additional files from composer packages.

  Sources   Download

MIT

The Requires

  • composer-plugin-api ^1.1
  • php >=5.6

 

The Development Requires

01/10 2017

1.0.1

1.0.1.0

Composer plugin for requiring additional files from composer packages.

  Sources   Download

MIT

The Requires

  • composer-plugin-api ^1.1
  • php >=5.6

 

The Development Requires

01/10 2017

1.0.0

1.0.0.0

Composer plugin for requiring additional files from composer packages.

  Sources   Download

MIT

The Requires

  • composer-plugin-api ^1.1
  • php >=5.6

 

The Development Requires