
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
0.0.0/composer-include-files
Advanced tools
Include files at a higher priority than autoload files. Useful for overriding Laravel helpers.
When using the Composer Autoloader if you need project files included prior to files autoloaded by any of your dependencies your out of luck. No longer!
composer require 0.0.0/composer-include-files
Just add the files you need included using "include_files" and they will be included prior to any files included by your dependencies.
// composer.json (project)
{
"extra": {
"include_files": [
"/path/to/file/you/want/to/include",
"/path/to/another/file/you/want/to/include"
]
},
}
Composer v2.2 includes a new security feature: https://getcomposer.org/doc/06-config.md#allow-plugins
As of Composer 2.2.0, the allow-plugins option adds a layer of security allowing you to restrict which Composer plugins are able to execute code during a Composer run.
So as well you need to add this library to the allowed plugins in your composer.json file like this:
{
"config": {
"allow-plugins": {
"0.0.0/composer-include-files": true
}
}
}
A good example of where this is required is when overriding helpers provided by Laravel.
In the past simply modifying bootstrap/autoload.php to include helpers was sufficient. However new versions of PHPUnit include the Composer Autoloader prior to executing the PHPUnit bootstrap file. Consequently this method of overriding helpers is no longer viable as it will trigger a fatal error when your bootstrap file is included.
But now we can use Composer - Include Files Plugin to have Composer include the files in the necessary order.
// composer.json (project)
{
"require": {
"laravel/framework": "^5.2",
"funkjedi/composer-include-files": "^1.0",
},
"extra": {
"include_files": [
"app/helpers.php"
]
},
}
FAQs
Include files at a higher priority than autoload files. Useful for overriding Laravel helpers.
We found that 0.0.0/composer-include-files demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.