News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPMaster.com:
Build Automation with Composer Scripts
December 06, 2012 @ 11:01:49

If you're a PHP developer and have been looking for a good way to manage 3rd party dependencies in your applications, look no further than Composer. If you're already using it, you know how useful it can be, but you might not know about some of the extra features that come with it. In this new tutorial on PHPMaster.com, they describe the automation that is also possible as a part of Composer's management process.

Following Alexander Cogneau's introduction to dependency management with Composer, you now know that Composer is a resolver for managing external project dependencies and versioning constraints. But is that all it does? In this article I'll show you how Composer can also be used as a basic build automation tool.

Thanks to some handy configuration settings available in the "composer.json" file, you can execute scripts for events like "pre-install", "post-update" and "pre-uninstall". They include an example "Installer" class with methods for a few of the actions, showing some of the special methods you can use to get metadata about the current operation and environment.

0 comments voice your opinion now!
composer automation script tutorial package management


blog comments powered by Disqus

Similar Posts

WebReference.com: How to Manage Memory in PHP

ZendCasts.com: Writing Composite Zend_Form Elements

Zend Developer Zone: File uploads with Adobe Flex and Zend AMF

Hasin Hayder's Blog: RSA Encrypting and Decrypting data with Zend_Crypt_Rsa Library

NetTuts.com: Zend Framework from Scratch - Models and Integrating Doctrine ORM


Community Events

Don't see your event here?
Let us know!


interview xdebug version laravel release introduction conference example performance framework opinion php7 extension community library series voicesoftheelephpant symfony2 podcast api

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework