Better HN
topnewbestaskshowjobs
Log inSign up

krazymelvin

8 karma · joined May 22, 2013 (13y ago) · 4 submissions

Submissions

comment 12y ago · link · parent

And the obligatory response: https://news.ycombinator.com/item?id=4177516

comment 13y ago · link · parent

> I quite like the npm way of adding --save or --save-dev when installing a package to add it to the package.json file automatically. Composer does not do that, in any way that I could find at least.

You can install individual packages using the `require` command:

    composer require monolog/monolog:*
http://getcomposer.org/doc/03-cli.md#require

comment 13y ago · link · parent

It's also unnecessary, you can just do this:

    foreach ($contacts as $contact)
        echo $contact;

comment 13y ago · link · parent

People really need to stop posting that fractal article. Any PHP dev worth their salt would be able to tell you that guy clearly has no major experience with PHP (or any understanding of OOP for that matter).

Here's a few discussions on just how wrong [1] and clueless he really is [2].

[1] https://news.ycombinator.com/item?id=4177516 [2] http://forums.devshed.com/php-development-5/php-is-a-fractal...