PHPackages                             phonetworks/ipfs-php - 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. phonetworks/ipfs-php

ActiveLibrary

phonetworks/ipfs-php
====================

IPFS library in PHP

1.0.0(7y ago)03MITPHPPHP &gt;=7.1

Since Aug 26Pushed 6y agoCompare

[ Source](https://github.com/pho-incubator/ipfs-php)[ Packagist](https://packagist.org/packages/phonetworks/ipfs-php)[ RSS](/packages/phonetworks-ipfs-php/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

IPFS Client in PHP
==================

[](#ipfs-client-in-php)

### Install:

[](#install)

```
 composer require nebulaprotocol/ipfs-php
```

### Examples:

[](#examples)

```
use IPFSPHP\IPFS;

include 'vendor/autoload.php';

$ipfs = new IPFS('127.0.0.1', 8080, 5001);

```

API
---

[](#api)

#### add

[](#add)

Adds content to IPFS.

**Usage**

```
$hash = $ipfs->add($filePath);
```

#### cat

[](#cat)

Retrieves the contents of a single hash.

**Usage**

```
$ipfs->cat($hash);
```

#### ls

[](#ls)

Gets the node structure of a hash.

**Usage**

```
$obj = $ipfs->ls($hash);

foreach ($obj as $e) {
	echo $e['Hash'];
	echo $e['Size'];
	echo $e['Name'];
}
```

#### Object size

[](#object-size)

Returns object size.

**Usage**

```
$size = $ipfs->size($hash);
```

#### Pin

[](#pin)

Pins a hash.

**Usage**

```
$ipfs->pinAdd($hash);
```

CREDITS
-------

[](#credits)

Initially forked from

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

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

Unknown

Total

1

Last Release

2814d ago

### Community

Maintainers

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

---

Top Contributors

[![kesar](https://avatars.githubusercontent.com/u/1288106?v=4)](https://github.com/kesar "kesar (3 commits)")[![esokullu](https://avatars.githubusercontent.com/u/19166?v=4)](https://github.com/esokullu "esokullu (1 commits)")

### Embed Badge

![Health badge](/badges/phonetworks-ipfs-php/health.svg)

```
[![Health](https://phpackages.com/badges/phonetworks-ipfs-php/health.svg)](https://phpackages.com/packages/phonetworks-ipfs-php)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k20](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[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)
