PHPackages                             openwse/ipfs-api - 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. [API Development](/categories/api)
4. /
5. openwse/ipfs-api

ActiveLibrary[API Development](/categories/api)

openwse/ipfs-api
================

A minimal implementation of IPFS API

v0.1.5(4y ago)324531MITPHPPHP ^7.4

Since May 12Pushed 3y ago1 watchersCompare

[ Source](https://github.com/openwse/ipfs-api)[ Packagist](https://packagist.org/packages/openwse/ipfs-api)[ Docs](https://github.com/openwse/ipfs-api)[ RSS](/packages/openwse-ipfs-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (7)Versions (7)Used By (1)

A minimal implementation of IPFS API
------------------------------------

[](#a-minimal-implementation-of-ipfs-api)

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

[](#installation)

You can install the package via composer:

```
composer require openwse/ipfs-api
```

Usage
-----

[](#usage)

```
$client = new Ipfs\Ipfs(
    new Ipfs\Drivers\HttpClient('https://ipfs-host', 5001)
);

// add a single file (and pin it)
$client->add('/path/to/the/file', true);

// add a file from content
$client->add([
    ['/desired-path-on-ipfs/filename.txt', null, 'my text content', 'text/plain']
]);

// add a nested structure
$client->add([
    ['/path/to/local/file', '/path/on/ipfs'],
    'my-custom-dir',
    ['/path/to/local/file', '/my-custom-dir/filename'],
]);

// list all files
$client->files()->ls();

// get the version
$client->version();

// publish
$client->key()->gen('mykeyname');
$client->name()->publish('/path/hash', '48h', 'mykeyname');

// some other examples...
$client->cat('/path/hash');

$client->config()->set('key', 'value');

$client->pin()->add('/path/hash');

$client->pin()->verify();

$client->stats()->bw();

$client->key()->rm('mykeyname');
```

Lint
----

[](#lint)

Run [PHPMD](https://phpmd.org/), [PHPStan](https://phpstan.org/), and [PHP-CS-Fixer](https://github.com/FriendsOfPhp/PHP-CS-Fixer)

```
composer lint
```

Testing
-------

[](#testing)

```
composer tests
```

TODOS:
------

[](#todos)

- Complete async/streams requests
- Implement the following endpoints:
    - P2P
    - Pubsub (with name/pubsub/{cancel,state,subs})
- Missing tests:
    - Block &gt; put
    - Filestore
    - Dht

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 72.7% 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 ~23 days

Recently: every ~29 days

Total

6

Last Release

1709d ago

### Community

Maintainers

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

---

Top Contributors

[![openwse](https://avatars.githubusercontent.com/u/74194234?v=4)](https://github.com/openwse "openwse (8 commits)")[![owenvoke](https://avatars.githubusercontent.com/u/1899334?v=4)](https://github.com/owenvoke "owenvoke (2 commits)")[![SoftCreatR](https://avatars.githubusercontent.com/u/81188?v=4)](https://github.com/SoftCreatR "SoftCreatR (1 commits)")

---

Tags

apiipfsdecentralizedipfs-api

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/openwse-ipfs-api/health.svg)

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

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[mailchimp/transactional

458.9M16](/packages/mailchimp-transactional)[get-stream/stream-chat

A PHP client for Stream Chat (https://getstream.io/chat/)

301.8M2](/packages/get-stream-stream-chat)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)

PHPackages © 2026

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