1.0.18 • Published 6 years ago

composer-autoload-file-generator v1.0.18

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

composer-autoload-file-generator

About

Takes an input directory and adds all enclosed files (recursively) to the autoload.files array in a composer.json file. Useful for projects containing many small PHP files that must always be loaded.

Usage

This library provides a composer-autoload-file-generator binary that must be run in the same directory as the composer.json file (or an error will be thrown). Pass the directory (relative to the current location) whose files you want to autoload as the argument, e.g.

node_modules/.bin/composer-autoload-file-generator src/my-php-files/

Alternatively, create a composerAutoloadFiles.js config file in the project root with the following contents:

module.exports = {
  pathToFiles: 'wp-autoload',
};

Then just run node_modules/.bin/composer-autoload-file-generator.

You can also pass in a separate config file with a --config flag, e.g.:

node_modules/.bin/composer-autoload-file-generator --config my-config-file.js
1.0.18

6 years ago

1.0.17

6 years ago

1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago