Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] A package runner (npx like) #7272

BafS opened this issue Apr 18, 2018 · 1 comment


Copy link

commented Apr 18, 2018


npm "recently" added the new npx binary to run packages directly from node_modules. Would it be possible to have something similar with composer without the need of run-script, like composerx ?

Example: To run a testsuite with PHPUnit we need to add an entry in "script" and do something like composer run-script phpunit -- --testsuite xxx or directly via ./vendor/bin/phpunit --testsuite x. With composerx it would just be composerx phpunit --testsuite x.

Thanks in advance


This comment has been minimized.

Copy link

commented May 3, 2018

You can do composer exec phpunit too, although that is quiet by default, so composer exec -v phpunit -- --filter foo for example. With an alias c=composer or cx=composer exec -v for you can shorten that quite a bit. As we don't have an installer per se it's kinda hard for us to provide this as a utility.

@Seldaek Seldaek closed this May 3, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.