rainflute / confluence-php-client
Confluence API PHP Client
1.1.3
2016-11-15 05:16 UTC
Requires
- php: >=5.5.0
Requires (Dev)
- phpunit/phpunit: ^5.6
This package is not auto-updated.
Last update: 2025-05-05 18:10:10 UTC
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.