4

GitHub - emacs-php/composer.el: PHP Composer interface for Emacs

 2 years ago
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 composerRun composer sub command (with completing read)C-u M-x composerRun composer (global) sub command (with completing read)M-x composer-installRun composer install commandM-x composer-requireRun composer require commandC-u M-x composer-requireRun composer require --dev commandM-x composer-updateRun composer update commandM-x composer-dump-autoloadRun composer dump-autoload commandM-x composer-run-scriptRun composer run-script commandM-x composer-run-vendor-bin-commandRun command in vendor/binM-x composer-find-json-fileOpen composer.json of the projectM-x composer-view-lock-fileOpen 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))

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK