PHP code example of localdisk / backlog-api-php

1. Go to this page and download the library: Download localdisk/backlog-api-php library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

localdisk / backlog-api-php example snippets




// 第1引数はプロジェクトのURL
// 第2引数はユーザ名
// 第3引数はパスワードを指定してください
$api = new Backlog\Api('https://demo.backlog.jp', 'demo', 'demo');

// 結果は配列で返却されます
// 引数が不正等のエラーは例外が発生します
$res = $api->getProjects();
bash
# Install Composer
curl -sS https://getcomposer.org/installer | php

# Add NHK API を