PHPackages                             rootsoft/laravel-ipfs - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. rootsoft/laravel-ipfs

ActiveLibrary[HTTP &amp; Networking](/categories/http)

rootsoft/laravel-ipfs
=====================

Laravel package to communicate with IPFS

0.0.1(5y ago)313.9k8[1 issues](https://github.com/RootSoft/laravel-ipfs/issues)[1 PRs](https://github.com/RootSoft/laravel-ipfs/pulls)MITPHPPHP ^7.4|^8.0

Since Apr 6Pushed 3y ago4 watchersCompare

[ Source](https://github.com/RootSoft/laravel-ipfs)[ Packagist](https://packagist.org/packages/rootsoft/laravel-ipfs)[ Docs](https://github.com/rootsoft/laravel-ipfs)[ RSS](/packages/rootsoft-laravel-ipfs/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)Dependencies (5)Versions (3)Used By (0)

 [![](https://camo.githubusercontent.com/5b8250ac5025685a44f3856baaa8dce7834174de402140bd981ade5f05479787/68747470733a2f2f6d69726f2e6d656469756d2e636f6d2f6d61782f3633382f302a6f33304141776348527673413834304f2e6a7067)](https://camo.githubusercontent.com/5b8250ac5025685a44f3856baaa8dce7834174de402140bd981ade5f05479787/68747470733a2f2f6d69726f2e6d656469756d2e636f6d2f6d61782f3633382f302a6f33304141776348527673413834304f2e6a7067)

laravel-ipfs
============

[](#laravel-ipfs)

[![Packagist](https://camo.githubusercontent.com/153d5233dda433f55053d7e832e9b4f6942110052e8a91e811b398e8ab48aa07/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726f6f74736f66742f6c61726176656c2d697066732e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/rootsoft/laravel-ipfs)[![Downloads](https://camo.githubusercontent.com/bbb5f533ce9bfbf1a9b13e393a9b2ef08cf56a1f43aead3ef0c9f2c10c835a43/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726f6f74736f66742f6c61726176656c2d697066732e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/rootsoft/laravel-ipfs)[![Issues](https://camo.githubusercontent.com/1120e39e4c02f23410389edc90255fb4b2abb5f856f53f2f5ca3e46844cf98c6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f726f6f74736f66742f6c61726176656c2d697066732e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/rootsoft/laravel-ipfs/issues)[![MIT License](https://camo.githubusercontent.com/89a8ec0112b43a9cbce6323168089109b8ae7d350afdc6609d4051c9ea05d047/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f726f6f74736f66742f6c61726176656c2d697066732e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/rootsoft/laravel-ipfs/blob/master/LICENSE.md)

The InterPlanetary File System is a peer-to-peer hypermedia protocol designed to make the web faster, safer, and more open. IPFS uses content-addressing to uniquely identify each file in a global namespace connecting all computing devices.

It is an ideal solution for a decentralized storage for blockchain-based content and is optimized for the [Algorand blockchain](https://www.algorand.com/) .

Introduction
------------

[](#introduction)

laravel-ipfs is a simple wrapper around the IPFS HTTP API with an elegant approach to connect your application to the IPFS network so you can easily host and fetch content with just a few lines of code.

Once installed, you can simply connect your application to the network and add content:

```
$ipfs->add(Utils::tryFopen('ipfs.png', 'r'), 'ipfs.png', ['pin' => true]);
```

or show IPFS object data:

```
$contents = $ipfs->cat('QmNZdYefySKuzF37CWjR8vZ319gYToS61r3v3sRwApXgaY');
```

Getting started
---------------

[](#getting-started)

### Installation

[](#installation)

> **Note**: laravel-ipfs requires PHP 7.4+

You can install the package via composer:

```
composer require rootsoft/laravel-ipfs
```

Usage
-----

[](#usage)

Create an new `IPFSClient` and pass the IP address and port of your local (or [pinned](https://pinata.cloud/)) network.

```
$ipfs = new IPFSClient('127.0.0.1', 5001);
```

**That's it!** We can now easily add new content on a decentralized network!

### Laravel ❤️

[](#laravel-heart)

We've added special support to make the life of a Laravel developer even more easy!

Publish the `ipfs.php` config file using:

```
php artisan vendor:publish --provider="Rootsoft\IPFS\IPFSServiceProvider" --tag="config"

```

Open the `config/ipfs.php` file in your project and insert your credentials

```
return [
    'ipfs' => [
        'base_url' => '127.0.0.1',
        'port' => 5001,
    ],
];
```

Now you can use the `IPFS` Facade!

```
$fileHash = IPFS::add($collectible->get(), $fileName, ['only-hash' => true])['Hash'];
```

Methods
-------

[](#methods)

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing &amp; Pull Requests
--------------------------------

[](#contributing--pull-requests)

Feel free to send pull requests.

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Tomas Verhelst](https://github.com/rootsoft)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

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

1912d ago

### Community

Maintainers

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

---

Tags

phplaravelrootsoftipfslaravel-ipfs

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/rootsoft-laravel-ipfs/health.svg)

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M19.8k](/packages/laravel-framework)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k13](/packages/tempest-framework)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M126](/packages/roots-acorn)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M560](/packages/shopware-core)[xeroapi/xero-php-oauth2

Xero official PHP SDK for oAuth2 generated with OpenAPI spec 3

1054.7M18](/packages/xeroapi-xero-php-oauth2)[flat3/lodata

OData v4.01 Producer for Laravel

99351.7k](/packages/flat3-lodata)

PHPackages © 2026

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