PHPackages                             kvitli/confluence-rest-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. kvitli/confluence-rest-client

ActiveLibrary

kvitli/confluence-rest-client
=============================

Library to interact with the Confluence REST API

0.0.1(9y ago)174MITPHPPHP ^5.3.3 || ^7.0

Since Nov 19Pushed 8y ago1 watchersCompare

[ Source](https://github.com/kvitli/confluence-rest-client)[ Packagist](https://packagist.org/packages/kvitli/confluence-rest-client)[ RSS](/packages/kvitli-confluence-rest-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

confluence-rest-client
======================

[](#confluence-rest-client)

Library to interact with the Confluence REST API

Usage
-----

[](#usage)

Install using `Composer`:

```
composer require kvitli/confluence-rest-api

```

Sample code:

```
# Creating Confluence connection with parameters loaded from .env file
$cf = new Confluence();

# Get page id by space SPC and My sample page
$cf->get_page_id_by_title('SPC', 'My sample page');

# Update/create page My sample page in space SPC.
# $page_content must be valid XHTML
# $parent_page_id must be a page id
$cf->update_or_create_page('SPC', 'My sample page', $page_content, $parent_page_id);

$ Upload an attachment to a page
$cf->upload_attachment('/path/to/file', $page_id);

# Create a JIRA Link
$link = new Kvitli\Link('JIRA', $jira_key, $jira_key);

# Create an Info macro
$info = new Kvitli\Macro('info');

# Add a parameter
$info->add_parameter('atlassian-macro-output-type', 'INLINE');
# Add JIRA link to Macro as body
$info->set_body('My JIRA LINK: '.$link->get_storage_format().'');

# Create an Excerpt macro
$excerpt = new Kvitli\Macro('excerpt');
# Added Info macro to Excerpt macro
$excerpt->set_body($info->get_storage_format());
```

Setup development environment
-----------------------------

[](#setup-development-environment)

```
git clone $repository
composer install

```

Run tests

```
php tests/tests.php

```

Generate phpdoc

```
php vendor/phpdocumentor/phpdocumentor/bin/phpdoc -d ./src -t ./docs/

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3458d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/26161c27b8078582f127c7e54762440f8408561b8dd7e472dc5820681b3970e1?d=identicon)[matslundberg](/maintainers/matslundberg)

---

Top Contributors

[![matslundberg](https://avatars.githubusercontent.com/u/206193?v=4)](https://github.com/matslundberg "matslundberg (21 commits)")

### Embed Badge

![Health badge](/badges/kvitli-confluence-rest-client/health.svg)

```
[![Health](https://phpackages.com/badges/kvitli-confluence-rest-client/health.svg)](https://phpackages.com/packages/kvitli-confluence-rest-client)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
