

GitHub - emacs-php/composer.el: PHP Composer interface for Emacs
source link: https://github.com/emacs-php/composer.el
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

composer.el
Composer interface for Emacs.
Specification
See Composer Documentation. composer.el
supports Environment variables (currently we support only COMPOSER_BIN_DIR
and COMPOSER_HOME
).
Commands
commanddescriptionM-x composer
Run composer
sub command (with completing read)C-u M-x composer
Run composer
(global) sub command (with completing read)M-x composer-install
Run composer install
commandM-x composer-require
Run composer require
commandC-u M-x composer-require
Run composer require --dev
commandM-x composer-update
Run composer update
commandM-x composer-dump-autoload
Run composer dump-autoload
commandM-x composer-run-script
Run composer run-script
commandM-x composer-run-vendor-bin-command
Run command
in vendor/bin
M-x composer-find-json-file
Open composer.json
of the projectM-x composer-view-lock-file
Open composer.lock
of the project (as read-only)Function composer-get-config(name)
(composer-get-config "bin-dir") ;=> "vendor/bin"
Function composer-get-bin-dir()
(composer-get-bin-dir) ;=> "/path/to/current-project/vendor/bin" (let ((composer-global-command t)) (composer-get-bin-dir)) ;=> "/home/your-name/.composer/vendor/bin"
Special variable composer-use-managed-phar
Use latest version of composer.phar
managed by this package. You can always use the latest version of it without having to set up Composer yourself.
(let ((composer-use-managed-phar t) (default-directory "/path/to/dir")) (composer-install))
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK