PHPackages                             innmind/ssh-key-provider - 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. innmind/ssh-key-provider

AbandonedArchivedLibrary

innmind/ssh-key-provider
========================

Access user ssh keys from different locations

3.2.0(2y ago)0651MITPHPPHP ~8.2CI failing

Since Apr 21Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/Innmind/SshKeyProvider)[ Packagist](https://packagist.org/packages/innmind/ssh-key-provider)[ Docs](http://github.com/Innmind/SshKeyProvider)[ RSS](/packages/innmind-ssh-key-provider/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (3)Dependencies (7)Versions (8)Used By (1)

Ssh key provider
================

[](#ssh-key-provider)

[![Build Status](https://github.com/Innmind/SshKeyProvider/workflows/CI/badge.svg?branch=master)](https://github.com/Innmind/SshKeyProvider/actions?query=workflow%3ACI)[![codecov](https://camo.githubusercontent.com/79e58169c9c25c6aa5c1a7ee0abf4ecace6d3a7a80be3e1f14c8398fb9a8cc20/68747470733a2f2f636f6465636f762e696f2f67682f496e6e6d696e642f5373684b657950726f76696465722f6272616e63682f646576656c6f702f67726170682f62616467652e737667)](https://codecov.io/gh/Innmind/SshKeyProvider)[![Type Coverage](https://camo.githubusercontent.com/f14a106e655361902e50eb48044c44e419af82674afdfae3da03a20492af6dbf/68747470733a2f2f73686570686572642e6465762f6769746875622f496e6e6d696e642f5373684b657950726f76696465722f636f7665726167652e737667)](https://shepherd.dev/github/Innmind/SshKeyProvider)

Small library to retrieve all public keys from different locations.

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

[](#installation)

```
composer require innmind/ssh-key-provider
```

Usage
-----

[](#usage)

```
use Innmind\OperatingSystem\Factory;
use Innmind\SshKeyProvider\{
    Cache,
    Merge,
    Local,
    Github,
};
use Innmind\Url\Path;

$os = Factory::build();
$provide = Cache::of(
    Merge::of(
        Local::of(
            $os->filesystem()->mount(Path::of($_SERVER['USER'].'/.ssh/')),
        ),
        Github::of(
            $os->remote()->http(),
            'GithubUsername',
        ),
    ),
);

$sshKeys = $provide();
```

This example will retrieve all keys define in the `GithubUsername` account and the key `id_rsa.pub` on the local machine.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance56

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity77

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

Recently: every ~341 days

Total

6

Last Release

921d ago

Major Versions

1.0.0 → 2.0.02020-02-05

2.1.0 → 3.0.02023-01-13

PHP version history (5 changes)1.0.0PHP ~7.2

2.0.0PHP ~7.4

2.1.0PHP ~7.4|~8.0

3.0.0PHP ~8.1

3.1.0PHP ~8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/851425?v=4)[Baptiste Langlade](/maintainers/Baptouuuu)[@Baptouuuu](https://github.com/Baptouuuu)

---

Top Contributors

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

---

Tags

sshaccesskey

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/innmind-ssh-key-provider/health.svg)

```
[![Health](https://phpackages.com/badges/innmind-ssh-key-provider/health.svg)](https://phpackages.com/packages/innmind-ssh-key-provider)
```

###  Alternatives

[phpseclib/phpseclib

PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.

5.6k434.8M1.3k](/packages/phpseclib-phpseclib)[symfony/property-access

Provides functions to read and write from/to an object or array using a simple string notation

2.8k295.3M2.5k](/packages/symfony-property-access)[dflydev/dot-access-data

Given a deep data structure, access data by dot notation.

718359.1M86](/packages/dflydev-dot-access-data)[laravel/envoy

Elegant SSH tasks for PHP.

1.6k5.5M17](/packages/laravel-envoy)[spatie/ssh

A lightweight package to execute commands over an SSH connection

8322.8M41](/packages/spatie-ssh)[dibi/dibi

Dibi is Database Abstraction Library for PHP

5013.8M120](/packages/dibi-dibi)

PHPackages © 2026

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