PHPackages                             infernalmedia/flysystem-gitea-storage - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. infernalmedia/flysystem-gitea-storage

ActiveLibrary[File &amp; Storage](/categories/file-storage)

infernalmedia/flysystem-gitea-storage
=====================================

Flysystem Adapter for the Gitea Repository files API v1

v0.0.1(2y ago)01341MITPHPPHP ^8.0

Since Nov 17Pushed 2y agoCompare

[ Source](https://github.com/infernalmedia/flysystem-gitea-storage)[ Packagist](https://packagist.org/packages/infernalmedia/flysystem-gitea-storage)[ RSS](/packages/infernalmedia-flysystem-gitea-storage/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (1)

A Gitea Storage filesystem for [Flysystem](https://flysystem.thephpleague.com/docs/).

[![Latest Version](https://camo.githubusercontent.com/3226973c8058026e8dfecf6a322c21790875d31ef4623d84629d73b79ff37d1b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696e6665726e616c6d656469612f666c7973797374656d2d67697465612d73746f726167652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/infernalmedia/flysystem-gitea-storage)[![MIT Licensed](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Total Downloads](https://camo.githubusercontent.com/7793fb9f58bc919ee6cef2322ee8f573fd18d4c2b118f243ef3d3a3f4b276196/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696e6665726e616c6d656469612f666c7973797374656d2d67697465612d73746f726167652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/infernalmedia/flysystem-gitea-storage)

This package contains a Flysystem adapter for Gitea. Under the hood, Gitea's [API](https://docs.gitea.com/development/api-usage) v1 is used.

This is a fork from the marvelous [RoyVoetman/flysystem-gitlab-storage](https://github.com/RoyVoetman/flysystem-gitlab-storage) package which has been adapted to work with Gitea's API.

Installation
------------

[](#installation)

```
composer require infernalmedia/flysystem-gitea-storage
```

Usage
-----

[](#usage)

```
// Create a Gitea Client to talk with the API
$client = new Client('username', 'repository', 'branch', 'base-url', 'personal-access-token');

// Create the Adapter that implements Flysystems AdapterInterface
$adapter = new GiteaAdapter(
    // Gitea API Client
    $client,
    // Optional path prefix
    'path/prefix',
);

// The FilesystemOperator
$filesystem = new League\Flysystem\Filesystem($adapter);

// see http://flysystem.thephpleague.com/api/ for full list of available functionality
```

### Username

[](#username)

This is the username or the organization name under which repositories are stored.

### Repository

[](#repository)

Name of the repository.

### Base URL

[](#base-url)

This will be the URL where you host your gitea server (e.g. )

### Access token (required for private projects)

[](#access-token-required-for-private-projects)

Gitea supports server side API authentication with Personal Access tokens

Personal Access Token can be created from the Settings page of your user account.

Changelog
---------

[](#changelog)

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

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

[](#contributing)

Contributions are **welcome** and will be fully **credited**. We accept contributions via Pull Requests on [Github](https://github.com/infernalmedia/flysystem-gitea-storage).

### Pull Requests

[](#pull-requests)

- **[PSR-2 Coding Standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)** - The easiest way to apply the conventions is to install [PHP Code Sniffer](http://pear.php.net/package/PHP_CodeSniffer).
- **Document any change in behaviour** - Make sure the `README.md` and any other relevant documentation are kept up-to-date.
- **Create feature branches** - Don't ask us to pull from your master branch.
- **One pull request per feature** - If you want to do more than one thing, send multiple pull requests.

License
-------

[](#license)

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

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

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

905d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/01b1551c97db1c958792e35553fcae0608d87d908c05e71028cdeb7611fdcba3?d=identicon)[jlalande](/maintainers/jlalande)

---

Top Contributors

[![RoyVoetman](https://avatars.githubusercontent.com/u/23026444?v=4)](https://github.com/RoyVoetman "RoyVoetman (62 commits)")[![ElGigi](https://avatars.githubusercontent.com/u/18268216?v=4)](https://github.com/ElGigi "ElGigi (6 commits)")[![jlalande](https://avatars.githubusercontent.com/u/2721747?v=4)](https://github.com/jlalande "jlalande (2 commits)")

---

Tags

apiFlysystemlaravel-storageinfernalmediav1giteaflysystem-gitea

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/infernalmedia-flysystem-gitea-storage/health.svg)

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

###  Alternatives

[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M789](/packages/league-flysystem-aws-s3-v3)[spatie/flysystem-dropbox

Flysystem Adapter for the Dropbox v2 API

3644.6M68](/packages/spatie-flysystem-dropbox)[royvoetman/flysystem-gitlab-storage

Flysystem Adapter for the Gitlab Repository files API v4

1123.3k4](/packages/royvoetman-flysystem-gitlab-storage)[mhetreramesh/flysystem-backblaze

Backblaze adapter for the flysystem filesystem abstraction library

62146.8k9](/packages/mhetreramesh-flysystem-backblaze)[justus/flysystem-onedrive

A flysystem driver for OneDrive that uses the Microsoft Graph API

48104.4k](/packages/justus-flysystem-onedrive)[jacekbarecki/flysystem-onedrive

OneDrive adapter for the flysystem filesystem abstraction library

2429.9k](/packages/jacekbarecki-flysystem-onedrive)

PHPackages © 2026

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