outdare / confluence-api
Attlassian Confluence PHP Client for Restfull API
v1.0.1
2016-11-11 12:52 UTC
Requires
This package is not auto-updated.
Last update: 2021-10-24 23:18:48 UTC
README
Installation
"require": { "outdare/confluence-api":"1.0.1" },
Examples
Creating Space
<?php $client = new \Outdare\Confluence\Client([ 'hostname' => 'my.atlassian.net', 'user' => '<user>', 'pass' => '<pass>' ]); $space = new \Outdare\Confluence\Space($client); $space->create("SPACEKEY", "My new space", "global", "It's my new space from API");
Creating Page
<?php $page = new \Outdare\Confluence\Page($client); $page->create("SPACEKEY", "My new page", "<p>Content for my page</p>");
With some help
Thanks to Nate Good's package nategood/httpful that makes the use of cUrl pretty simple. http://phphttpclient.com/
Contributions
Feel free to contribute with ideas and completing the todo.md file
Links
Atlassian Confluence examples used as guideline
https://developer.atlassian.com/confcloud/confluence-rest-api-examples-39985294.html