You can autoload specific files by editing your composer.json
file like this:
"autoload": {
"files": ["src/helpers.php"]
}
(thanks Kint)
More Related Contents:
- Why use a PSR-0 or PSR-4 autoload in composer if classmap is actually faster?
- How to resolve a “Can only install one of:” conflict?
- Class Foo\Bar\Baz located in ./foo/bar/utility/baz.php does not comply with psr-4 autoloading standard. Skipping
- How to create a PSR-4 autoloader for my project?
- What Are the Differences Between PSR-0 and PSR-4?
- How to get list of all installed packages along with version in composer?
- Autoloading classes in PHPUnit using Composer and autoload.php
- Composer Content-Length Mismatch
- What is the difference between require and require-dev sections in composer.json?
- Composer [UnexpectedValueException] error will trying to use composer to install a github project
- Composer: The requested PHP extension ext-intl * is missing from your system
- Using Composer’s Autoload
- How to use a specific tag/version with composer and a private git repository?
- PHP adding custom namespace using autoloader from composer
- PHP – most lightweight psr-0 compliant autoloader
- Remove composer
- How do I use a Git submodule with a Composer loaded library?
- How to use Composer to autoload classes from outside the vendor?
- Why am I Facing with this problem when run symfony? [closed]
- Best way to load module/class from lib folder in Rails 3?
- Reference – Composer error “Your PHP version does not satisfy requirements” after upgrading PHP
- Rails 5: Load lib files in production
- How do I use PHP namespaces with autoload?
- Tell Composer to use Different PHP Version
- How to use spl_autoload() instead of __autoload()
- You must enable the openssl extension to download files via https
- Composer Update failed — out of memory
- How to change PHP version used by composer
- PHP error: “The zip extension and unzip command are both missing, skipping.”
- Is there any way to install Composer globally on Windows?