PHPackages                             owenvoke/gitea - 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. owenvoke/gitea

ActiveLibrary[API Development](/categories/api)

owenvoke/gitea
==============

An object oriented PHP wrapper for the Gitea API

v0.1.10(12mo ago)61.9k↑84.4%5MITPHPPHP ^8.2CI passing

Since Nov 18Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/owenvoke/gitea-php)[ Packagist](https://packagist.org/packages/owenvoke/gitea)[ Fund](https://ecologi.com/owenvoke?gift-trees)[ GitHub Sponsors](https://github.com/owenvoke)[ RSS](/packages/owenvoke-gitea/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependencies (15)Versions (12)Used By (0)

Gitea PHP
=========

[](#gitea-php)

[![Latest Version on Packagist](https://camo.githubusercontent.com/15729b5cfe67a4d36045dbc4c21b7ccaf1af2a61aeb899b785ddcede80b4c5cc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f77656e766f6b652f67697465612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/owenvoke/gitea)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/68692e9925d0e29a0613a0da038527d0d0add977e50028aa4f04d35e73f5becf/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6f77656e766f6b652f67697465612d7068702f74657374732e796d6c3f6272616e63683d6d61696e267374796c653d666c61742d737175617265266c6162656c3d5465737473)](https://github.com/owenvoke/gitea-php/actions)[![Static Analysis](https://camo.githubusercontent.com/44b9d898c0006457365fd625566248518641f4861cbac2f98a24266116c40197/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6f77656e766f6b652f67697465612d7068702f7374617469632e796d6c3f6272616e63683d6d61696e267374796c653d666c61742d737175617265266c6162656c3d537461746963253230416e616c79736973)](https://github.com/owenvoke/gitea-php/actions/workflows/static.yml)[![Total Downloads](https://camo.githubusercontent.com/1a89132baeca764a59f625ba70df69ad51f6103cb699b4d4b54bb7ad502758fc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f77656e766f6b652f67697465612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/owenvoke/gitea)[![Buy us a tree](https://camo.githubusercontent.com/910e097fe46a40add8f3484705ecbc26dc047df84b2fef027405f47408023d76/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f54726565776172652d2546302539462538432542332d6c69676874677265656e3f7374796c653d666c61742d737175617265)](https://ecologi.com/owenvoke?gift-trees)

An object oriented PHP wrapper for the Gitea API

Requirements
------------

[](#requirements)

- PHP &gt;= 8.2
- A [PSR-17 implementation](https://packagist.org/providers/psr/http-factory-implementation)
- A [PSR-18 implementation](https://packagist.org/providers/psr/http-client-implementation)

Install
-------

[](#install)

Via Composer

```
composer require owenvoke/gitea guzzlehttp/guzzle:^7.9 http-interop/http-factory-guzzle:^1.2
```

We are decoupled from any HTTP messaging client with help by [HTTPlug](https://httplug.io).

Usage
-----

[](#usage)

**Basic usage**

```
// Include the Composer autoloader
require_once __DIR__ . '/vendor/autoload.php';

$client = new \OwenVoke\Gitea\Client();
$repositories = $client->user()->repositories();
```

**Authentication**

> Note: Gitea only supports authentication via an API token.

```
use OwenVoke\Gitea\Client;
$client = new Client();
$client->authenticate($apiToken, null, Client::AUTH_ACCESS_TOKEN);
```

**Self-hosted Gitea instances**

The Gitea PHP wrapper can be configured to use a custom-hosted instance, rather than `gitea.com`.

```
// Specify the URL of the Gitea instance on client initialization
$client = new \OwenVoke\Gitea\Client(null, null, 'https://gitea.example.com');
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Owen Voke](https://github.com/owenvoke)
- [KNP Labs](https://github.com/KnpLabs) (based on [their GitHub client](https://github.com/KnpLabs/php-github-api))
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Treeware
--------

[](#treeware)

You're free to use this package, but if it makes it to your production environment you are required to buy the world a tree.

It’s now common knowledge that one of the best tools to tackle the climate crisis and keep our temperatures from rising above 1.5C is to plant trees. If you support this package and contribute to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.

You can buy trees [here](https://ecologi.com/owenvoke?gift-trees).

Read more about Treeware at [treeware.earth](https://treeware.earth).

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance54

Moderate activity, may be stable

Popularity26

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 96.2% 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 ~169 days

Recently: every ~394 days

Total

11

Last Release

360d ago

PHP version history (2 changes)v0.1.0PHP ^7.4 || ^8.0

v0.1.7PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1899334?v=4)[Owen Voke](/maintainers/owenvoke)[@owenvoke](https://github.com/owenvoke)

---

Top Contributors

[![owenvoke](https://avatars.githubusercontent.com/u/1899334?v=4)](https://github.com/owenvoke "owenvoke (102 commits)")[![rosven9856](https://avatars.githubusercontent.com/u/23666049?v=4)](https://github.com/rosven9856 "rosven9856 (2 commits)")[![aryxs3m](https://avatars.githubusercontent.com/u/43781955?v=4)](https://github.com/aryxs3m "aryxs3m (1 commits)")[![timdiels1](https://avatars.githubusercontent.com/u/7079398?v=4)](https://github.com/timdiels1 "timdiels1 (1 commits)")

---

Tags

apigiteahacktoberfestphp

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/owenvoke-gitea/health.svg)

```
[![Health](https://phpackages.com/badges/owenvoke-gitea/health.svg)](https://phpackages.com/packages/owenvoke-gitea)
```

###  Alternatives

[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35789.4k2](/packages/telnyx-telnyx-php)[openai-php/client

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

5.8k28.0M318](/packages/openai-php-client)[getbrevo/brevo-php

Official Brevo provided RESTFul API V3 php library

1003.9M50](/packages/getbrevo-brevo-php)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28150.5k](/packages/phpro-http-tools)[n1ebieski/ksef-php-client

PHP API client that allows you to interact with the API Krajowego Systemu e-Faktur

9067.8k](/packages/n1ebieski-ksef-php-client)[trycourier/courier

Courier PHP SDK

15660.9k](/packages/trycourier-courier)

PHPackages © 2026

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