pawella / svn-tool
Svn tool by integrate composer
Installs: 18
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/pawella/svn-tool
Requires
This package is auto-updated.
Last update: 2025-09-29 01:58:53 UTC
README
Read subversion repository and created packages.json file by composer usage
Getting Started
Provides a service site that scans your external, private SVN repository, preparing a package.json file that will be used by composer.
Installing
Add a library to your project.
composer require pawella/svn-tool
Sample application
<?php require __DIR__.'/../../vendor/autoload.php'; use SvnTool\Service; use Zend\Cache\StorageFactory; $service = new Service(); /** * Usage caching is optional. */ $cache = StorageFactory::factory([ 'adapter' => [ 'name' => 'Filesystem', 'options' => [ 'ttl' => 60, 'cache_dir' => __DIR__.'/../cache' ], ], 'plugins' => [ 'exception_handler' => ['throw_exceptions' => false], 'Serializer' ], ]); $service->setCache($cache); $service->setRepositories([ 'https://userByRepo:password@svn.example.com/svn/repository', 'https://userByRepo:password@svn.otherhost.com/repository' ]); $service->responseJsonPackage();
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Acknowledgments
- Hat tip to anyone who's code was used
- Inspiration
- etc