helhum / ter-client
Client for interacting with the official TYPO3 Extension Repository (TER). Contains API Symfony Commands
Installs: 1 368
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 5
Forks: 5
Open Issues: 0
Requires
- php: >=5.5 <8
- symfony/console: ^2.7 || ^3.0
Requires (Dev)
- mikey179/vfsstream: ~1.3.0
- phpunit/phpunit: ^4.2 || ^5
This package is auto-updated.
Last update: 2024-12-16 02:08:32 UTC
README
TYPO3 Extension Repository (TER) client library and Symfony Console commands. This has been built on the shoulders of namelesscoder/typo3-repository-client. Thanks a lot Claus Due for the idea and the foundation.
Installation
Use composer to install the TER Client: composer require helhum/ter-client
Usage
Each command which can be executed has a corresponding class, for example Helhum\TerClient\Uploader
and a CLI script which acts as a wrapper for said class. The parameters which should be passed to each CLI script must be the same arguments and in the same order as required by the class' method.
Uploader
As component:
$uploadPacker = new ExtensionUploadPacker(); $connection = Connection::create($wsdUrl); $result = $connection->upload( new UsernamePasswordCredentials($username, $password), $uploadPacker->pack($extensionKey, $directory, $comment) );
And as CLI command:
ter-client upload ext_key /path/to/extension -u myusername -p mypassword -m "Upload Comment"
Version Deleter (admins only)
As component:
$deleter = new Deleter(Connection::create($wsdUrl)); $result = $deleter->deleteExtensionVersion($extensionKey, $version, $username, $password);
And as CLI command:
ter-client remove-version extensionkey 1.2.3 -u myusername -p mypassword