By the way, I’m lacking some sleep and I seem to be mind blocked right now, which may make this seem like senseless rants to you, so please try to take them patiently if they don’t look so.
I’m working on OS X Snow Leopard. I won’t lie how I enjoy having access to binaries PEAR sets up for me. I simply brew unlink php53
and brew link php53
after I’ve installed PEAR packages, so I get their binaries in /usr/local/bin
.
Take Behat, for instance. If I install it through PEAR (now outdated), I do the procedure above, and I instantly have access to it through behat
, and just that. If I were to symlink the whole bin
folder Composer generated, I would get three “commands” besides behat
: behat.bat
and release
.
Am I doing something wrong? Isn’t there a way to centralize the right binaries for example on /usr/local/bin
, preferably without having to add a new path to $PATH
? Is there a way to do it through Composer?
I’m thinking of npm where you can set global and local versions of the modules. I would like comfortable global versions of the (correct) binaries. Kind of gemsets, without really duplicating stuff unnecessarily.
You see? It’s a lot of mixed information, but that’s how my head feels right now. I suppose I’m looking for something like this other question, just applied to “vendor” binaries.
Thanks in advance!
PS: If I really sound like a miserable human being, let me know and I’ll rephrase my message at first hour after a good sleep. Thanks!