PHPackages                             nebulaprotocol/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. nebulaprotocol/ipfs-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

nebulaprotocol/ipfs-php
=======================

IPFS library in PHP

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

Since Aug 26Pushed 7y ago1 watchersCompare

[ Source](https://github.com/NebulaProtocol/IPFS-PHP)[ Packagist](https://packagist.org/packages/nebulaprotocol/ipfs-php)[ RSS](/packages/nebulaprotocol-ipfs-php/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (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

31

—

LowBetter than 65% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

2910d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/257deab5e740bd7c0f3daf9d3edaa316e51149d51fcf7520d1faf084e9d1826a?d=identicon)[kesar](/maintainers/kesar)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k555.0M2.8k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k832.6k52](/packages/neuron-core-neuron-ai)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

762297.9k52](/packages/civicrm-civicrm-core)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.3M49](/packages/tencentcloud-tencentcloud-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

353.6k](/packages/eslazarev-wildberries-sdk)[oat-sa/tao-core

TAO core extension

65147.9k151](/packages/oat-sa-tao-core)

PHPackages © 2026

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