Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/boenrobot/composer-install-library-of-functions
A Composer plugin to handle the "functionmap" autoload section.
https://github.com/boenrobot/composer-install-library-of-functions
composer composer-plugin php
Last synced: 16 days ago
JSON representation
A Composer plugin to handle the "functionmap" autoload section.
- Host: GitHub
- URL: https://github.com/boenrobot/composer-install-library-of-functions
- Owner: boenrobot
- License: lgpl-2.1
- Created: 2018-04-23T14:11:49.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-09-07T11:45:04.000Z (over 2 years ago)
- Last Synced: 2024-09-20T01:18:42.573Z (5 months ago)
- Topics: composer, composer-plugin, php
- Language: PHP
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# composer-install-library-of-functions
A Composer plugin to handle the "functionmap" in "extra".
This property is an object where each key is the name of an autoload section (either ```autoload``` or ```autoload-dev```). Each value is an object. Within each object, each key is the fully qualified name of a function, and each value is the path to a file where this function is defined.
If the function exists already during an install/update (either because it is built in, or because it is declared during an auto_prepend_file PHP file), it won't be added to the autoloader. If it doesn't exist, it will be added to the autoloader "files" section.
Note also that a file already present in the "files" section will be removed from it if the function exists. This allows you to include all files in your files section, so that your package works with or without this plugin (but will be better optimized with this plugin).