Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8261245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T03:20:25+00:00 2026-06-08T03:20:25+00:00

By the way, I’m lacking some sleep and I seem to be mind blocked

  • 0

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!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T03:20:27+00:00Added an answer on June 8, 2026 at 3:20 am

    The thing is that if you install stuff globally, what happens when one project needs Behat 1.5 and another Behat 2.0 (imaginary versions) which are not compatible? Installing those tools in the project itself with require-dev is a good way to solve this problem. Then you just call bin/behat in your project and that’s that (assuming you put a bin-dir: bin in your composer config, otherwise it’s vendor/bin/behat).

    Regarding behat.bat and release, that won’t happen. Those files are present in behat itself, but they won’t be linked in the composer bin directory.

    Finally if you really want to have it global, you can have ~/phputils/composer.json or something with:

    {
         "require": {
             "behat/behat": "*"
         },
         "config": {
             "bin-dir": "/usr/local/bin"
         }
    }
    

    I’m not sure the absolute bin-dir works at the moment, and I’m especially not sure if it’s a great idea to do this, but it’s an option. Preferably I would say you should just put it as "bin" and add ~/phputils/bin to your PATH. Then you can go in that directory, run composer install/update and that’s it.

    There is also the trick of doing a composer-g shell script in your /usr/local/bin that does a cd ~/phputils/ && composer $* so you can call composer-g update behat/behat from anywhere.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There is a widely known way of locking multiple locks, which relies on choosing
Any way to realize emacs keybind on Qt Creator (QTC)? Some possibilities: emacskeys but
Any way to make train() run with custom train/test partitions of the data? I'm
I've been working on a Flex component and I'd like to write some automated
I think I'm lacking some basic understanding of assignment in C/C++ here! I have
My search foo seems lacking today. I would like to know if it is
I am stumped and could really use some help with this gallery I've been
Gamemaker is a neat tool which allows for some good RAD. However it has
I'm doing this to fetch some data: c = pycurl.Curl() c.setopt(pycurl.ENCODING, 'gzip') c.setopt(pycurl.URL, url)
I've notice some strange behaviour on my Drupal site. I like to understand the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.