PHPackages                             yangweijie/filesystem-github - 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. yangweijie/filesystem-github

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

yangweijie/filesystem-github
============================

Filesystem adapter for the Github storage.

v0.9.0(1y ago)0191MITPHPPHP ^7.2.5 || ^8.0

Since Oct 3Pushed 1y agoCompare

[ Source](https://github.com/yangweijie/filesystem-github)[ Packagist](https://packagist.org/packages/yangweijie/filesystem-github)[ RSS](/packages/yangweijie-filesystem-github/feed)WikiDiscussions main Synced 1mo ago

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

Flysystem Github
================

[](#flysystem-github)

Requirement
===========

[](#requirement)

- PHP &gt;= 7.2

install
=======

[](#install)

```
composer require yangweijie/filesystem-github

```

CDN List
========

[](#cdn-list)

```
'github'   => "https://raw.githubusercontent.com/:username/:repository/:branch/:fullfilename",
'fastgit'  => "https://hub.fastgit.org/:username/:repository/blob/:branch/:fullfilename?raw=true",
'jsdelivr' => "https://cdn.jsdelivr.net/gh/:username/:repository@:branch/:fullfilename"

```

Usage
=====

[](#usage)

```
use pkg6\flysystem\github\GithubAdapter;
use League\Flysystem\Filesystem;

$token='xxxxxx';
$username='xxxxxx';
$repository='test';
$adapter = new GithubAdapter($token,$username,$repository);
$flysystem = new League\Flysystem\Filesystem($adapter);
```

API
---

[](#api)

```
false|array $flysystem->write('file.md', 'contents');

false|array $flysystem->writeStream('file.md', fopen('path/to/your/local/file.jpg', 'r'));

false|array $flysystem->update('file.md', 'new contents');

false|array $flysystem->updateStream('file.md', fopen('path/to/your/local/file.jpg', 'r'));

false|array $flysystem->delete('file.md');

bool $flysystem->has('file.md');

bool $flysystem->rename('file.md','newfile.md');

bool $flysystem->copy('file.md','newfile.md');

false|array $flysystem->read('file.md');

string|false $flysystem->readStream('file.md');

array $flysystem->listContents();

string|false $flysystem->getMetadata('file.md');

int $flysystem->getSize('file.md');

string $flysystem->getAdapter()->getUrl('file.md');

string|false $flysystem->getMimetype('file.md');
```

Plugins
-------

[](#plugins)

File Url:

```
use pkg6\flysystem\github\Plugins\FileUrl;
$flysystem->addPlugin(new FileUrl());
string $flysystem->getUrl('file.md');

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 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

589d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c0b5f090a9bb92727e9c2e8281d05c2da5f2f9bf66cf1811714a9ffc0e383325?d=identicon)[yangweijie](/maintainers/yangweijie)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yangweijie-filesystem-github/health.svg)

```
[![Health](https://phpackages.com/badges/yangweijie-filesystem-github/health.svg)](https://phpackages.com/packages/yangweijie-filesystem-github)
```

###  Alternatives

[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M790](/packages/league-flysystem-aws-s3-v3)[google/cloud

Google Cloud Client Library

1.2k16.2M53](/packages/google-cloud)[masbug/flysystem-google-drive-ext

Flysystem adapter for Google Drive with seamless virtual&lt;=&gt;display path translation

2631.7M14](/packages/masbug-flysystem-google-drive-ext)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

7310.3k29](/packages/open-dxp-opendxp)[dgtlss/capsule

A Laravel package for backing up databases and files to external sources with notifications

194.3k](/packages/dgtlss-capsule)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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