PHPackages                             themosis/composer-exclude-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. themosis/composer-exclude-files

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

themosis/composer-exclude-files
===============================

Composer plugin that allows you to exclude files from autoloader.

1.0.1(4y ago)143.0k↑35.4%1[1 issues](https://github.com/themosis/composer-exclude-files/issues)GPL-3.0-or-laterPHPPHP ^8.0

Since Feb 15Pushed 4y ago1 watchersCompare

[ Source](https://github.com/themosis/composer-exclude-files)[ Packagist](https://packagist.org/packages/themosis/composer-exclude-files)[ RSS](/packages/themosis-composer-exclude-files/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

Composer Exclude Files Plugin
=============================

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

This plugin allows you to exclude files from your project's autoloader.

Installation
------------

[](#installation)

The plugin can be installed globally or on a project basis. Run the following command from your terminal:

```
composer require themosis/composer-exclude-files
```

Usage
-----

[](#usage)

In order to exclude files from being autoloaded upon a [Composer](https://getcomposer.org) operation, simply specify an `exclude-from-files` key, followed with a list of files to exclude, under the `extra` property of your `composer.json` file like so:

```
"extra": {
    "exclude-from-files": {
        "laravel/framework": [
            "src/Foundation/helpers.php"
        ],
        "symfony/var-dumper": [
            "Resources/functions/dump.php"
        ]
    }
},
```

First defined the package name you wish to target and then pass it an array of relative paths to files to exclude from that package.

Notes
-----

[](#notes)

This Composer plugin automatically exclude files from your project by looking at all its dependencies. Meaning that exclude rules can be defined in both your root package or into one of its dependencies.

Credits
-------

[](#credits)

This Composer plugin has been inspired by the [mcaskill/composer-plugin-exclude-files](https://github.com/mcaskill/composer-plugin-exclude-files) package.

The plugin is a working piece of the [Themosis framework](https://framework.themosis.com).

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~36 days

Total

2

Last Release

1517d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3f50d43fa42a64e828395bf8aff851be14c2278cfb6b364ba64880c45afa9c09?d=identicon)[jlambe](/maintainers/jlambe)

---

Top Contributors

[![jlambe](https://avatars.githubusercontent.com/u/1917490?v=4)](https://github.com/jlambe "jlambe (21 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/themosis-composer-exclude-files/health.svg)

```
[![Health](https://phpackages.com/badges/themosis-composer-exclude-files/health.svg)](https://phpackages.com/packages/themosis-composer-exclude-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)
