PHPackages                             linniksa/composer-smart-source-url - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. linniksa/composer-smart-source-url

AbandonedArchivedComposer-plugin[Utility &amp; Helpers](/categories/utility)

linniksa/composer-smart-source-url
==================================

Helps composer choose the right url for private packages from gitlab

0.5.1(5y ago)152.0k↓88.9%1MITPHPPHP ~7

Since Nov 1Pushed 4y ago1 watchersCompare

[ Source](https://github.com/linniksa/composer-smart-source-url)[ Packagist](https://packagist.org/packages/linniksa/composer-smart-source-url)[ RSS](/packages/linniksa-composer-smart-source-url/feed)WikiDiscussions master Synced 4w ago

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

Composer Smart Source Url
=========================

[](#composer-smart-source-url)

This plugin helps composer choose the right url for private packages (e.g. for gitlab runner) from gitlab (github btw also supported), in conditions when you need to specify ssh url for repository in `composer.json` (e.g. for deployment).

When you specify auth credentials in `auth.json`, the plugin changes the URL scheme from ssh to http(s) on the fly (without touching any files).

Example
=======

[](#example)

Add plugin to you project:

```
composer.phar require-dev linniksa/composer-smart-source-url

```

Add this lines to your `.gitlab-ci.yml`:

```
- >
      echo > auth.json -e '{
        "http-basic":{
          "[YOU DOMAIN]": {
            "username":"gitlab-ci-token",
            "password": "'${CI_JOB_TOKEN}'"
          }
        }
      }'
```

Don't forget to change `[YOU DOMAIN]`.

Thats it, now your private repositories can be easily cloned by gitlab runner

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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 ~438 days

Total

2

Last Release

2039d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/424343?v=4)[Sergey Linnik](/maintainers/linniksa)[@linniksa](https://github.com/linniksa)

---

Top Contributors

[![linniksa](https://avatars.githubusercontent.com/u/424343?v=4)](https://github.com/linniksa "linniksa (3 commits)")[![akuzia](https://avatars.githubusercontent.com/u/11508654?v=4)](https://github.com/akuzia "akuzia (1 commits)")

### Embed Badge

![Health badge](/badges/linniksa-composer-smart-source-url/health.svg)

```
[![Health](https://phpackages.com/badges/linniksa-composer-smart-source-url/health.svg)](https://phpackages.com/packages/linniksa-composer-smart-source-url)
```

###  Alternatives

[symfony/runtime

Enables decoupling PHP applications from global state

740103.0M1.2k](/packages/symfony-runtime)[drupal/core-composer-scaffold

A flexible Composer project scaffold builder.

5346.5M599](/packages/drupal-core-composer-scaffold)[drupal/core-project-message

Adds a message after Composer installation.

2125.4M213](/packages/drupal-core-project-message)[phpro/grumphp-shim

GrumPHP Phar distribution

284.9M348](/packages/phpro-grumphp-shim)[automattic/jetpack-autoloader

Creates a custom autoloader for a plugin or theme.

566.3M164](/packages/automattic-jetpack-autoloader)[altis/core

Core module for Altis

19233.0k4](/packages/altis-core)

PHPackages © 2026

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