PHP Bitbucket API

Simple Bitbucket API wrapper for PHP

Wiki

Provides functionality for getting information from pages in a Bitbucket wiki, creating new pages, and updating them.

Prepare:

$wiki = new Bitbucket\API\Repositories\Wiki();
$wiki->setCredentials( new Bitbucket\API\Authentication\Basic($bb_user, $bb_pass) );

Get the raw content of a Wiki page:

$wiki->get($account_name, $repo_slug, 'Home');

Create a new page:

$wiki->create($account_name, $repo_slug, 'Glossary', 'Page content !', '/Glossary');

Update a page:

$wiki->update($account_name, $repo_slug, 'Glossary', 'Dummy page content !');