Are you using svn:externals, git-submodules or something similar with your Version Control System of choice for connecting third-party libraries to your PHP projects? This presentation explores ways to handle dependencies in PHP projects, just like projects in other programming languages have done for ages.
See http://ikoodi.nl/2011/01/25/version-control-dependency-management/ for full article.
11. svn:externals
Pros:
● svn:externals fixes duplication
Cons:
● Externals are hidden in SVN metadata
● Externals are NOT read-only(!)
● Externals can ONLY point to a SVN repository
● Makes branching/tagging harder
15. with Make
A solution the *nix way
● Compile won't succeed until all required
dependencies are available
● Configurable to use optional dependencies
when available
21. Solutions available for PHP
Pyrus (PHP5.3.1+) is a tool to manage PEAR
packages. Pyrus simplifies and improves the PEAR
experience. Features include:
● Standalone tool (pyrus.phar)
● Can be integrated into application
● Pear repository management/connection
● Dependency Management
● Packaging in the PHAR format (PHp Archive)
22. Solutions available for PHP
PHing Is Not GNU make.
A PHP project build system/tool based
on Apache Ant
23. Solutions available for PHP
Use a Version Control System like
Subversion to control code versions