PHPackages                             veiliglanceren/laravel-github-file - 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. veiliglanceren/laravel-github-file

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

veiliglanceren/laravel-github-file
==================================

Laravel package to fetch and manage files from GitHub repositories.

1.2.0(11mo ago)04151MITPHPPHP ^8.1CI passing

Since Apr 28Pushed 11mo agoCompare

[ Source](https://github.com/VeiligLanceren-nl/laravel-github-file)[ Packagist](https://packagist.org/packages/veiliglanceren/laravel-github-file)[ RSS](/packages/veiliglanceren-laravel-github-file/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (6)Versions (10)Used By (1)

[![Veilig Lanceren](/veilig-lanceren-logo.png)](/veilig-lanceren-logo.png)

This package is maintained by [VeiligLanceren.nl](https://veiliglanceren.nl), your partner in website development and everything else to power up your online company.

Laravel Github File
===================

[](#laravel-github-file)

[![Latest Version on Packagist](https://camo.githubusercontent.com/48dbbf1dcb4460b2f82211a6e5a67242d8e2dfdecd73dfc5595623b26e5f7e1c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7665696c69676c616e636572656e2f6c61726176656c2d6769746875622d66696c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/veiliglanceren/laravel-remote-documentation)[![Total Downloads](https://camo.githubusercontent.com/de73117d77cb3a03febee661cf1c8f47d277875d09078d922dc4653e694c18ac/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7665696c69676c616e636572656e2f6c61726176656c2d6769746875622d66696c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/veiliglanceren/laravel-remote-documentation)[![License](https://camo.githubusercontent.com/fc9794e1c1589508547fafb52c8767895475f822d1a02bbdad4ef8cf052b00a0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7665696c69676c616e636572656e2f6c61726176656c2d6769746875622d66696c652e7376673f7374796c653d666c61742d737175617265)](LICENSE)

Laravel GitHub File
===================

[](#laravel-github-file-1)

A Laravel package to fetch, download, and zip files from GitHub repositories.

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

[](#installation)

Install the package via Composer:

```
composer require veiliglanceren/laravel-github-file
```

Configuration
-------------

[](#configuration)

Publish the configuration file (optional):

```
php artisan vendor:publish --provider="VeiligLanceren\GithubFile\GithubFileServiceProvider"
```

This will create a `config/github-file.php` file where you can customize settings like the default disk.

Usage
-----

[](#usage)

### Fetch File Content

[](#fetch-file-content)

Retrieve the content of a file from a GitHub repository:

```
use VeiligLanceren\GithubFile\Facades\GithubFile;

$content = GithubFile::get('owner/repo', 'path/to/file.txt');
```

### Download a File

[](#download-a-file)

Download a file and store it locally:

```
$path = GithubFile::download('owner/repo', 'path/to/file.txt');
```

This will store the file in the default disk's `downloads` directory.

### Create a ZIP Archive

[](#create-a-zip-archive)

Create a ZIP archive containing a file from a GitHub repository:

```
$zipPath = GithubFile::zip('owner/repo', 'path/to/file.txt');
```

The ZIP file will be stored in the default disk's `zips` directory. Or zip multiple files at the same times.

```
$zipPath = GithubFile::zip('owner/repo', ['path/to/file.txt', 'path/to/file2.txt']);
```

Testing
-------

[](#testing)

Run the tests using Pest:

```
./vendor/bin/pest
```

Ensure that your environment is set up correctly and that all dependencies are installed.

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

[](#contributing)

Contributions are welcome! Please follow these steps:

1. Fork the repository.
2. Create a new branch (`git checkout -b feature-branch`).
3. Make your changes.
4. Commit your changes (`git commit -am 'Add new feature'`).
5. Push to the branch (`git push origin feature-branch`).
6. Create a new Pull Request.

Please ensure that your code adheres to the project's coding standards and passes all tests.

License
-------

[](#license)

This package is open-source software licensed under the MIT license.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance54

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

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

Every ~13 days

Total

4

Last Release

335d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/22b99c08291f57985d16a87bcd5f1a3f4ae2e6332b5e04736b5bf4f0f91c3d19?d=identicon)[VeiligLanceren](/maintainers/VeiligLanceren)

---

Top Contributors

[![NielsHamelink-web](https://avatars.githubusercontent.com/u/67690385?v=4)](https://github.com/NielsHamelink-web "NielsHamelink-web (20 commits)")

---

Tags

file-downloadgithubgithub-apigithub-filesgithub-integrationlaravellaravel-fileslaravel-packagelaravel-utilitiesphpremote-fileszip

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/veiliglanceren-laravel-github-file/health.svg)

```
[![Health](https://phpackages.com/badges/veiliglanceren-laravel-github-file/health.svg)](https://phpackages.com/packages/veiliglanceren-laravel-github-file)
```

###  Alternatives

[overtrue/laravel-filesystem-qiniu

A Qiniu storage filesystem for Laravel.

482229.7k16](/packages/overtrue-laravel-filesystem-qiniu)[rahulhaque/laravel-filepond

Use FilePond the Laravel way

261114.4k2](/packages/rahulhaque-laravel-filepond)[overtrue/laravel-filesystem-cos

A Cos storage filesystem for Laravel.

92128.4k7](/packages/overtrue-laravel-filesystem-cos)

PHPackages © 2026

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