PHPackages                             sitelease/sugar-cube-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. [API Development](/categories/api)
4. /
5. sitelease/sugar-cube-client

ActiveLibrary[API Development](/categories/api)

sitelease/sugar-cube-client
===========================

A sweet Gitea API client for PHP

1.0.6(2y ago)9412[1 issues](https://github.com/sitelease/sugar-cube-client/issues)1MITPHPPHP &gt;=7.2.0CI failing

Since Mar 3Pushed 2y ago1 watchersCompare

[ Source](https://github.com/sitelease/sugar-cube-client)[ Packagist](https://packagist.org/packages/sitelease/sugar-cube-client)[ Docs](https://github.com/sitelease/sugar-cube-client)[ RSS](/packages/sitelease-sugar-cube-client/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependencies (4)Versions (8)Used By (1)

The Sugar Cube Client, a Gitea API client for PHP
=================================================

[](#the-sugar-cube-client-a-gitea-api-client-for-php)

The Sugar Cube Client allows you to send and recieve data from Gitea's RESTful API using object-oriented PHP.

### How does it work?

[](#how-does-it-work)

Under the hood, Sugar Cube uses the [Guzzle Library](http://docs.guzzlephp.org/en/stable/) to make and send requests to [Gitea's RESTful API](https://try.gitea.io/api/swagger) routes. It then converts the returned JSON response data into PHP objects which you can use to easily query the data.

### Real world Example

[](#real-world-example)

To see how Sugar Cube can be used in a real world application please refer to [Acapella's code base](https://github.com/sitelease/acappella) (e.g. [line 39](https://github.com/sitelease/acappella/blob/1.0.0/src/Application/GiteaRepositoryManager.php#L39) of GiteaRepositoryManager.php).

### What's next?

[](#whats-next)

- Add Example code to the README
- Create PHPUnit tests for each API requester
- Create more API requesters for Gitea's API routes
- Submit the Sugar Cube composer package to Packagist

### Credits

[](#credits)

- First thank you goes out to the folks over on the [Gitea.php](https://github.com/sab-international/gitea.php) project. Your Model and Push Event objects provided the foundation of this project.
- Next thank you goes to those who worked on [CompoLab](https://github.com/bricev/CompoLab). It was during the process of porting your great project to Gitea that we made this client.
- And last but not least, a big shout out to everyone who has contributed to [Gitea](https://github.com/go-gitea/gitea). Without your project there wouldn't be any API to make the client for ;)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98% 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

Every ~195 days

Recently: every ~286 days

Total

7

Last Release

1094d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/686bd2c55d1feda4b173c2e216a4bb0b0444788a18571844d6162e5a9d0ba470?d=identicon)[admonish](/maintainers/admonish)

---

Top Contributors

[![mooror](https://avatars.githubusercontent.com/u/6110819?v=4)](https://github.com/mooror "mooror (49 commits)")[![BenjiFuse](https://avatars.githubusercontent.com/u/16202155?v=4)](https://github.com/BenjiFuse "BenjiFuse (1 commits)")

---

Tags

apiclientgitsugarvcsscmgitea

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/sitelease-sugar-cube-client/health.svg)

```
[![Health](https://phpackages.com/badges/sitelease-sugar-cube-client/health.svg)](https://phpackages.com/packages/sitelease-sugar-cube-client)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[resend/resend-php

Resend PHP library.

564.7M21](/packages/resend-resend-php)[crowdin/crowdin-api-client

PHP client library for Crowdin API v2

611.5M5](/packages/crowdin-crowdin-api-client)[mozex/anthropic-laravel

Anthropic PHP for Laravel is a supercharged PHP API client that allows you to interact with the Anthropic API

71226.4k1](/packages/mozex-anthropic-laravel)[markrogoyski/numverify-api-client-php

Numverify API Client for PHP

1220.9k](/packages/markrogoyski-numverify-api-client-php)[azuracast/php-api-client

An API client library for the AzuraCast API

311.3k](/packages/azuracast-php-api-client)

PHPackages © 2026

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