PHPackages                             atomicptr/laravel-github-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. atomicptr/laravel-github-storage

ActiveLibrary

atomicptr/laravel-github-storage
================================

A GitHub based filesystem for Laravel

v0.1.2(1y ago)3176[2 issues](https://github.com/atomicptr/laravel-github-storage/issues)MITPHP

Since Mar 18Pushed 1y ago1 watchersCompare

[ Source](https://github.com/atomicptr/laravel-github-storage)[ Packagist](https://packagist.org/packages/atomicptr/laravel-github-storage)[ Fund](https://www.buymeacoffee.com/atomicptr)[ GitHub Sponsors](https://github.com/atomicptr)[ RSS](/packages/atomicptr-laravel-github-storage/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

laravel-github-storage
======================

[](#laravel-github-storage)

A GitHub based filesystem for Laravel, powered by [php-github-api](https://github.com/KnpLabs/php-github-api).

**Note**: Keep in mind that GitHub has a rate limit, so if you need a lot of file operations you might need something else.

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

[](#installation)

```
composer require atomicptr/laravel-github-storage
```

Add a new disk to your filesystems.php configuration file

```
'github' => [
    'driver' => 'github',
    'token' => env('GITHUB_STORAGE_TOKEN', ''),
    'username' => env('GITHUB_STORAGE_USERNAME', ''),
    'repository' => env('GITHUB_STORAGE_REPOSITORY', ''),
    'branch' => env('GITHUB_STORAGE_BRANCH', 'master'),
    'prefix' => env("GITHUB_STORAGE_PREFIX", ''),
],
```

also add the service provider to your bootstrap/providers.php file

```
