A composer plugin that allows for exporting svn repositories
Install the latest version with
$ composer require linearsoft/composer-svn-export
There are two ways to use SvnExport
If you are hosting your own composer repository you can simply change the source type from 'svn' to 'svn-export'.
{
"require": {
"vendor/my-package": "dev-trunk"
},
"repositories": [
{
"type": "composer",
"url": "http://my-repo.vendor.com"
}
]
}
{
"packages": {
"vendor/my-package": {
"dev-trunk": {
"name": "vendor/my-package",
"description": "My very special package",
"version": "dev-trunk",
"source": {
"type": "svn-export",
"url": "http://svn.vendor.com/my-package",
"reference": "/trunk/@50"
},
"other tags...": "blah, blah, blah"
}
}
}
}
A repository of type 'svn' or 'composer' can be used as a SvnExport repository via the extras section. Note: All packages of type 'svn' in a composer repository will automatically be converted to type 'svn-export'. Warning: If you add a repository as a SvnExport repository do NOT also add it as a standard repository or you will have problems.
{
"require": {
"vendor/my-package-alpha": "dev-trunk",
"vendor/my-package-beta": "dev-trunk"
},
"extra": {
"svn-export-repositories": [
{
"name": "My Repo (optional)",
"type": "composer",
"url": "http://my-repo.vendor.com"
},
{
"type": "svn",
"url": "http://svn.vendor.com/my-package-beta"
}
]
}
}
{
"packages": {
"vendor/my-package": {
"dev-trunk": {
"name": "vendor/my-package",
"description": "My very special package",
"version": "dev-trunk",
"source": {
"type": "svn",
"url": "http://svn.vendor.com/my-package",
"reference": "/trunk/@50"
},
"other tags...": "blah, blah, blah"
}
}
}
}
Found a problem or would like a feature submit it via GitHub
SvnExport is license under the GPLv3 License - see the LICENSE
file for details
François Pluchino's composer-asset-plugin design was used as a foundation for this plugin.