Thursday, 19 September 2013

Benefits of Composer if already using a PHP framework

Benefits of Composer if already using a PHP framework

Dropbox's PHP SDK heavy-handedly suggests that one should use Composer to
install and load their SDK. Also, version 2 of AWS's PHP SDK also offers
Composer as a installation/loader (fortunately without the bias).
I'm using the Codeigniter (CI) framework which has a built in "vendor"
folder (called "third_party" by CI, "vendor" by Composer) which I can
easily control module loading with CI's built in loading handlers, e.g.,
$this->load->library("blah_blah), or with vanilla PHP include/require
"blah/blah.php" statements for edge cases.
I don't know other PHP frameworks well, but I'd assume they handle
dependencies in a similarly simple manner.
It would seem that one of the main points of a framework is to handle
dependencies so my question is, are their additional benefits to Composer
beyond what the frameworks provide?

No comments:

Post a Comment