PHPackages                             zhanang19/medialibrary-gitlab-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. zhanang19/medialibrary-gitlab-storage

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

zhanang19/medialibrary-gitlab-storage
=====================================

Spatie Medialibrary Gitlab Storage with custom URL generator

v1.1(6y ago)034[1 PRs](https://github.com/zhanang19/medialibrary-gitlab-storage/pulls)MITPHPPHP ^7.1

Since May 5Pushed 3y ago1 watchersCompare

[ Source](https://github.com/zhanang19/medialibrary-gitlab-storage)[ Packagist](https://packagist.org/packages/zhanang19/medialibrary-gitlab-storage)[ Docs](https://github.com/zhanang19/medialibrary-gitlab-storage)[ RSS](/packages/zhanang19-medialibrary-gitlab-storage/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (6)Versions (4)Used By (0)

Spatie Medialibrary Gitlab Storage
==================================

[](#spatie-medialibrary-gitlab-storage)

This package provide an URL Generator for assets that stored in Gitlab Storage.

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

[](#installation)

Run command `composer require zhanang19/medialibrary-gitlab-storage`

> This package is tested only in Laravel 7

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

[](#configuration)

1. This package require `spatie/medialibrary:^7.0` by default. So, you can remove `spatie/medialibrary` from your `composer.json`. Configure it to use gitlab as media disk in your `.env` file

```
MEDIA_DISK="gitlab"

```

2. This package require `zhanang19/laravel-gitlab-storage` by default. Just initiate config for that

```
    # config/filesystems.php
    'disks' => [
        'gitlab' => [
            'driver' => 'gitlab',
            'project_id' => env('GITLAB_PROJECT_ID'),
            'access_token' => env('GITLAB_ACCESS_TOKEN', ''),
            'branch' => env('GITLAB_BRANCH', 'master'),
            'base_url' => env('GITLAB_BASE_URL', 'https://gitlab.com'),
            'debug' => (bool)env('GITLAB_DEBUG', env('APP_DEBUG', false))
        ]
    ],
```

3. Configure custom url generator in `medialibrary.php` config

```
    # config/medialibrary.php
    'url_generator' => \Zhanang19\MediaLibraryGitlab\GitlabUrlGenerator::class,
```

Caveat
------

[](#caveat)

Conversion and responsive images doesn't working correctly. This cause by Gitlab API doesn't support streaming file to copy and process the image.

Reference
---------

[](#reference)

1. [Generating custom urls](https://docs.spatie.be/laravel-medialibrary/v7/advanced-usage/generating-custom-urls/)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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 ~2 days

Total

2

Last Release

2195d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/743022649ac069fc287e45c0dec296b0c0faf591e1bce46fbe059742252b1e4f?d=identicon)[zhanang19](/maintainers/zhanang19)

---

Top Contributors

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

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/zhanang19-medialibrary-gitlab-storage/health.svg)

```
[![Health](https://phpackages.com/badges/zhanang19-medialibrary-gitlab-storage/health.svg)](https://phpackages.com/packages/zhanang19-medialibrary-gitlab-storage)
```

###  Alternatives

[stechstudio/laravel-zipstream

A fast and simple streaming zip file downloader for Laravel.

4633.7M3](/packages/stechstudio-laravel-zipstream)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[spatie/laravel-google-cloud-storage

Google Cloud Storage filesystem driver for Laravel

2408.9M13](/packages/spatie-laravel-google-cloud-storage)[dcblogdev/laravel-dropbox

A Laravel Dropbox v2 package

3263.0k](/packages/dcblogdev-laravel-dropbox)[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

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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