I think sharing code is always better than not sharing code. If you run into a use case where this would be useful, then you can just grab it and install it.
If you've been doing a lot of work in PHP recently, then you should be compiling your own PHP. Which gives you the option of disabling every extension. The PHP core is actually very lean. Virtually everything is an extension. They even have a nifty flag to disable everything.
I like having the option of compiling a bazillion extensions in the binary if I want to. Even though I never enable anything beyond the basic stuff I need.
PHP - forgot something? Best re-compile so I can access the module's massive list of global functions.
Python, Ruby, Node, etc. - `import/include/require module`
* because Pear is basically a waste of time.
Have you tried to install something using pip for Python? How about npm for Node?
Those package management programs compile stuff on your system all the time. Same as PECL extensions.
The ecosystem for Python, Ruby, Node works exactly the same as it does for PHP. Please leave your random PHP hatred at the door.