PHPackages                             fduch/composer-netrc-auth-plugin - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. fduch/composer-netrc-auth-plugin

ActiveComposer-plugin[Authentication &amp; Authorization](/categories/authentication)

fduch/composer-netrc-auth-plugin
================================

1.0.0(10y ago)1755[1 issues](https://github.com/fduch/composer-netrc-auth-plugin/issues)MITPHPPHP &gt;=5.3.3

Since Mar 24Pushed 10y agoCompare

[ Source](https://github.com/fduch/composer-netrc-auth-plugin)[ Packagist](https://packagist.org/packages/fduch/composer-netrc-auth-plugin)[ RSS](/packages/fduch-composer-netrc-auth-plugin/feed)WikiDiscussions master Synced 2d ago

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

composer-netrc-auth-plugin
==========================

[](#composer-netrc-auth-plugin)

composer-netrc-auth-plugin is a [composer plugin](https://getcomposer.org/doc/articles/plugins.md) that provides netrc-based HTTP authorization during dist's downloading process using custom VCS drivers.

[![Build Status](https://camo.githubusercontent.com/004b0406b93e00fb90ce9b2d380cf691302259284c96d404fd09d9206fe8a072/68747470733a2f2f7472617669732d63692e6f72672f66647563682f636f6d706f7365722d6e657472632d617574682d706c7567696e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/fduch/composer-netrc-auth-plugin)

About plugin
------------

[](#about-plugin)

Sometimes it is usefull to work with custom VCSDriver to handle private packages via packagist behind custom git server (not github, not bitbucket - they are well supported by composer) that generates dist's, for example gitolite (see github [discussion](https://github.com/composer/packagist/issues/389) for details). In this case there is problem with authorization during automated packages installations via composer (this is important on build, CI servers, etc). The cause of this problem is that composer uses external *git* process (it could be another *vcs*-process) to fetch sources and regular file transfer mechanisms (such as *file\_get\_contents*) to fetch archives. There are some features in git core that provides automatic authorization - netrc parsing, *askpass* feature, so the sources can be fetched automatically. But dist's downloading leads authorization console promt if git server requires authorization. This plugin extends composer functionality with netrc-based authorization during archives downloading process.

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

[](#installation)

In order to install plugin on system-wide level use composer global command

```
php composer.phar global require fduch/composer-netrc-auth-plugin
```

Also you can use plugin inside your package locally by requiring it as a regular package:

```
php composer.phar require fduch/composer-netrc-auth-plugin
```

See more about plugin installation in [official documentation](https://getcomposer.org/doc/articles/plugins.md#using-plugins)

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

3

Last Release

3751d ago

Major Versions

0.1.0 → 1.0.02016-03-23

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

composerauthorization

### Embed Badge

![Health badge](/badges/fduch-composer-netrc-auth-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/fduch-composer-netrc-auth-plugin/health.svg)](https://phpackages.com/packages/fduch-composer-netrc-auth-plugin)
```

###  Alternatives

[league/oauth2-server

A lightweight and powerful OAuth 2.0 authorization and resource server library with support for all the core specification grants. This library will allow you to secure your API with OAuth and allow your applications users to approve apps that want to access their data from your API.

6.7k143.0M274](/packages/league-oauth2-server)[league/oauth2-client

OAuth 2.0 Client Library

3.8k125.2M1.3k](/packages/league-oauth2-client)[league/oauth1-client

OAuth 1.0 Client Library

996106.2M115](/packages/league-oauth1-client)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

42222.6M157](/packages/league-oauth2-google)[auth0/auth0-php

PHP SDK for Auth0 Authentication and Management APIs.

40921.3M85](/packages/auth0-auth0-php)

PHPackages © 2026

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