- PHP >= 5.6.0
- Gitlab CE 6 or above
- php JsonMapper
- phpdotenv
-
Download and Install PHP Composer.
curl -sS https://getcomposer.org/installer | php
-
Next, run the Composer command to install the latest version of php jira rest client.
php composer.phar require lesstif/php-gitlab-api
or add the following to your composer.json file.
{ "require": { "lesstif/php-gitlab-api" } }
-
Run the composer install command.
$ composer install
-
Now you need define your a Gitlab connection info into
.env
configuration.GITLAB_HOST="https://your-gitlab.host.com" GITLAB_TOKEN="gitlab-private-token-for-api"
<?php
require 'vendor/autoload.php';
<?php
require 'vendor/autoload.php';
Apache V2 License