chaplean / gitlab-client-bundle
Gitlab客户端包
v2.0.0
2019-02-07 17:15 UTC
Requires
- php: >=7.0.8
- chaplean/api-client-bundle: ^1.0
- symfony/config: ^2.8 || ^3.0 || ^4.0
- symfony/console: ^2.8 || ^3.0 || ^4.0
- symfony/dependency-injection: ^2.8 || ^3.0 || ^4.0
- symfony/yaml: ^2.8 || ^3.0 || ^4.0
Requires (Dev)
- chaplean/coding-standard: ^1.1
- mockery/mockery: ^1.0
- phpunit/phpunit: ^7.0
- symfony/http-kernel: ^2.8 || ^3.0 || ^4.0
- symfony/var-dumper: ^2.8 || ^3.0 || ^4.0
This package is auto-updated.
Last update: 2024-08-28 12:38:03 UTC
README
先决条件
本版本的包需要Symfony 2.8+。
安装
1. Composer
composer require chaplean/gitlab-client-bundle
2. AppKernel.php
添加
new Chaplean\Bundle\GitlabClientBundle\ChapleanGitlabClientBundle(),
配置
1. config.yml
imports: - { resource: '@ChapleanGitlabClientBundle/Resources/config/config.yml' }
2. parameters.yml
chaplean_gitlab_client.url: 'your gitlab url' chaplean_gitlab_client.token: 'your access token'
可用函数
- getPipeline()
- getArtifacts()
- getCommits()