Git SubmodulesGit Submodules is a great way of managing git project dependanciesdependencies.
If you're looking for another approach:
Composer can do this all for you. Composer is a dependancy manager for php. It's syntax is of json. It's rather easy and cheap to use.
Composer is a tool for dependency management in PHP. It allows you to declare the dependent libraries your project needs and it will install them in your project for you.
On the documentation page, you can find an example of how your composer.json file would be constructed:
// Composer.json
{
"name": "acme/blog",
"repositories": [
{
"type": "vcs",
"url": "https://github.com/composer/hello-world"
}
],
"require": {
"acme/hello-world": "dev-master"
}
}
Once you have your composer.json and composer.lock file created for your project you can then just install your dependancies easily:
composer.phar install
or update them:
composer.phar update
or create a particular project from packagist:
composer.phar create-project acmeproject