PHPackages                             lastcall/composer-extra-files - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. lastcall/composer-extra-files

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

lastcall/composer-extra-files
=============================

Composer plugin for requiring additional files from composer packages.

1.0.1(8y ago)19.9k9[2 issues](https://github.com/LastCallMedia/ComposerExtraFiles/issues)1MITPHPPHP &gt;=5.6

Since Oct 1Pushed 1y agoCompare

[ Source](https://github.com/LastCallMedia/ComposerExtraFiles)[ Packagist](https://packagist.org/packages/lastcall/composer-extra-files)[ RSS](/packages/lastcall-composer-extra-files/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (4)Versions (3)Used By (1)

Composer Extra Files Plugin
===========================

[](#composer-extra-files-plugin)

Composer Extra Files Plugin is brought to you by your friends at [Last Call Media](https://www.lastcallmedia.com), this composer plugin allows you to request additional files to be downloaded with your composer package.

### When should I use this?

[](#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.

Note: You probably shouldn't use this if you have the ability to [add repositories](https://getcomposer.org/doc/05-repositories.md) to your project's root composer.json. There are better alternatives for this. See [Composer Asset Plugin](https://github.com/fxpio/composer-asset-plugin) and [Asset Packagist](https://asset-packagist.org/). This plugin is most useful for packages that are required by other packages, since Composer doesn't allow nested repositories.

Usage
-----

[](#usage)

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

```
{
  ...
  "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.

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.

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

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance7

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

3146d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/08764a9d2125547417a4f3efeee159b4fc1ff4a5094326228e413ef38566da23?d=identicon)[lschumann](/maintainers/lschumann)

![](https://www.gravatar.com/avatar/7a4a154961f7167b96103447056ce7319becb50c4eb836e0cecfd26b08cfd0ba?d=identicon)[chrislcm](/maintainers/chrislcm)

---

Top Contributors

[![rbayliss](https://avatars.githubusercontent.com/u/654407?v=4)](https://github.com/rbayliss "rbayliss (11 commits)")[![sagar-lcm](https://avatars.githubusercontent.com/u/106957476?v=4)](https://github.com/sagar-lcm "sagar-lcm (2 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/lastcall-composer-extra-files/health.svg)

```
[![Health](https://phpackages.com/badges/lastcall-composer-extra-files/health.svg)](https://phpackages.com/packages/lastcall-composer-extra-files)
```

###  Alternatives

[vaimo/composer-patches

Applies a patch from a local or remote file to any package that is part of a given composer project. Patches can be defined both on project and on package level. Optional support for patch versioning, sequencing, custom patch applier configuration and patch command for testing/troubleshooting added patches.

2994.3M16](/packages/vaimo-composer-patches)[mglaman/composer-drupal-lenient

1317.4M15](/packages/mglaman-composer-drupal-lenient)[drupal/core-composer-scaffold

A flexible Composer project scaffold builder.

5341.9M446](/packages/drupal-core-composer-scaffold)[drupal/core-project-message

Adds a message after Composer installation.

2122.6M172](/packages/drupal-core-project-message)[olvlvl/composer-attribute-collector

A convenient and near zero-cost way to retrieve targets of PHP 8 attributes

184108.8k8](/packages/olvlvl-composer-attribute-collector)[lullabot/drainpipe

An automated build tool to allow projects to have a set standardized operations scripts.

41716.4k2](/packages/lullabot-drainpipe)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
