PHPackages                             meshboxfoundation/php-mbfs-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. meshboxfoundation/php-mbfs-api

ActiveLibrary[API Development](/categories/api)

meshboxfoundation/php-mbfs-api
==============================

A client library for the MBFS API

v0.0.2(7y ago)14MITPHPPHP &gt;=5.3.0

Since Jan 21Pushed 7y agoCompare

[ Source](https://github.com/MeshBoxFoundation/php-mbfs-api)[ Packagist](https://packagist.org/packages/meshboxfoundation/php-mbfs-api)[ Docs](https://github.com/MeshBoxFoundation/php-mbfs-api)[ RSS](/packages/meshboxfoundation-php-mbfs-api/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (3)Used By (0)

MBFS API wrapper library in PHP
===============================

[](#mbfs-api-wrapper-library-in-php)

> A client library for the MBFS API.

Usage
=====

[](#usage)

Installing
----------

[](#installing)

This library requires the cURL module:

```
$ sudo apt-get install php5-curl
$ composer require meshboxfoundation/php-mbfs-api
$ composer install
```

```
use MBFoundation\PhpIpfsApi\MBFS;

// connect to mbfs daemon API server
$mbfs = new MBFS("localhost", "8080", "5001"); // leaving out the arguments will default to these values
```

API
---

[](#api)

#### add

[](#add)

Adds content to MBFS.

**Usage**

```
$hash = $mbfs->add("Hi, I'm Vingo! Welcome to use MBFS!");
```

#### cat

[](#cat)

Retrieves the contents of a single hash.

**Usage**

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

#### ls

[](#ls)

Gets the node structure of a hash.

**Usage**

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

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

#### Object size

[](#object-size)

Returns object size.

**Usage**

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

#### Pin

[](#pin)

Pins a hash.

**Usage**

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

License
=======

[](#license)

The MIT License (MIT)

Copyright (c) 2019-2026 Vingo MBFoundation Copyright (c) 2019 MeshBox Technologies

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% 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 ~0 days

Total

2

Last Release

2717d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/98579393?v=4)[MeshBoxFoundation](/maintainers/MeshBoxFoundation)[@MeshBoxFoundation](https://github.com/MeshBoxFoundation)

---

Top Contributors

[![VingoYang](https://avatars.githubusercontent.com/u/40650197?v=4)](https://github.com/VingoYang "VingoYang (7 commits)")[![MeshBoxTech](https://avatars.githubusercontent.com/u/45959616?v=4)](https://github.com/MeshBoxTech "MeshBoxTech (1 commits)")

---

Tags

mbfs

### Embed Badge

![Health badge](/badges/meshboxfoundation-php-mbfs-api/health.svg)

```
[![Health](https://phpackages.com/badges/meshboxfoundation-php-mbfs-api/health.svg)](https://phpackages.com/packages/meshboxfoundation-php-mbfs-api)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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