Skip to content
PHP Composer interface for Emacs
Emacs Lisp
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Init repository Jul 30, 2016
Cask Bump version 0.1.0 Sep 19, 2018 Fix misplaced keybinds Sep 17, 2019
composer.el Impl composer--unsafe-fallback-download-composer-phar Sep 22, 2018
composer.json Modify composer.json Oct 29, 2016


MELPA: composer MELPA stable: composer

Composer interface for Emacs.


See Composer Documentation. composer.el supports Environment variables (currently we support only COMPOSER_BIN_DIR and COMPOSER_HOME).


M-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 command
M-x composer-requireRun composer require command
C-u M-x composer-requireRun composer require --dev command
M-x composer-updateRun composer update command
M-x composer-dump-autoloadRun composer dump-autoload command
M-x composer-run-scriptRun composer run-script command
M-x composer-run-vendor-bin-commandRun command in vendor/bin
M-x composer-find-json-fileOpen composer.json of the project
M-x composer-view-lock-fileOpen composer.lock of the project (as read-only)



(composer-get-config "bin-dir") ;=> "vendor/bin"


(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"))
You can’t perform that action at this time.