spryker-sdk / azure-php-client
Azure Repos client for PHP
Installs: 6 333
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 5
Forks: 0
Open Issues: 0
Requires
- php: >=8.0
- ext-json: *
- ext-simplexml: *
- guzzlehttp/guzzle: ^7.5
- psr/http-client: ^1.0
- psr/http-message: ^1.0
Requires (Dev)
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^9.5
- spryker/code-sniffer: ^0.17.18
This package is auto-updated.
Last update: 2024-11-19 11:20:14 UTC
README
PHP client for Azure Repos.
Installation
Require the library in your project:
composer require spryker-sdk/azure-php-client
Usage
use SprykerAzure\Client\Plugin\Request\PersonalAccessTokenAuthPlugin; use SprykerAzure\Client\ClientFactory; $clientFactory = new ClientFactory(); $requestBuilder = $clientFactory->getDefaultRequestBuilder(); $requestBuilder->addRequestPlugin(new PersonalAccessTokenAuthPlugin('Personal Access Token')); $client = $clientFactory->createClient($requestBuilder); $response = $this->azureClientFactory->getClient()->getPullRequestApi()->createPullRequest(...); $response = $this->azureClientFactory->getClient()->getRepositoryApi()->getRepositoryInfo(...);