rainflute/confluence-php-client
Composer 安装命令:
composer require rainflute/confluence-php-client
包简介
Confluence API PHP Client
README 文档
README
A Confluence RESTful API client in PHP
An Object Oriented wrapper for Confluence, written PHP5
Requirements
- PHP >= 5.5.0
Installation
$ php composer.phar require rainflute/confluence-php-client
Usage
<?php use Rainflute/ConfluenceClient/Client; use Rainflute/ConfluenceClient/Curl; use Rainflute/ConfluenceClient/Entity/ConfluencePage; //Create and configure a curl web client $curl = new Curl('confluence_host_url,'username','password'); //Create the Confluence Client $client = new Client($curl); //Create a confluence page $page = new ConfluencePage(); //Configure your page $page->setSpace('testSpaceKey')->setTitle('Test')->setContent('<p>test page</p>'); //Create the page in confluence in the test space $client->createPage($page); //Get the page we created echo $client->selectPageBy([ 'spaceKey' => 'testSpaceKey', 'title' => 'Test' ]);
Get your development instance
Atlassian changed the way to work on Confluence/Jira, now in order to create your plugin, you have to get a Developer Account and create your own instance. All the steps to create your environment are defined on the documentation page.
Once you have access to your own Atlassian Cloud instance and you put it in developer mode, we can continue and let the instance contact us.
统计信息
- 总下载量: 393
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-11-15