PHPackages                             musee/pinata-laravel - 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. [Framework](/categories/framework)
4. /
5. musee/pinata-laravel

ActiveProject[Framework](/categories/framework)

musee/pinata-laravel
====================

The Laravel provider for Pinata API.

v0.1.2(4y ago)023MITPHP

Since Dec 23Pushed 4y agoCompare

[ Source](https://github.com/toannguyen-stunited/pinata-laravel)[ Packagist](https://packagist.org/packages/musee/pinata-laravel)[ RSS](/packages/musee-pinata-laravel/feed)WikiDiscussions main Synced 1mo ago

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

Laravel Pinata API Provider
---------------------------

[](#laravel-pinata-api-provider)

This is a Laravel/Lumen provider for interacting with [Pinata](https://pinata.cloud/) API.

### Install

[](#install)

Require this package with composer using the following command:

```
composer require danielcrt/pinata-laravel
```

### Installation

[](#installation)

Add your API credentials to `pinata` array in the `config/services.php` config file as follows:

```
return [

    ...

    'pinata' => [

        'api_key' => env('PINATA_API_KEY'),
        'secret_key' => env('PINATA_API_SECRET')
    ]
]
```

#### Laravel

[](#laravel)

Add the service provider to the `providers` array in the `config/app.php` config file as follows:

```
'providers' => [

    ...

    \Pinata\Providers\PinataServiceProvider::class,
]
```

#### Lumen

[](#lumen)

Add the following snippet to the `bootstrap/app.php` file under the providers section as follows:

```
$app->configure('services');
$app->register(Pinata\Providers\PinataServiceProvider::class);
```

### Usage

[](#usage)

Pin a File to IPFS

```
  use Pinata\Facades\Pinata;

  $file_path = '';

  $response = Pinata::pinFileToIPFS($file_path);
```

Pin a JSON to IPFS

```
  use Pinata\Facades\Pinata;

  $json = [];

  $response = Pinata::pinJSONToIPFS($json);
```

Unpin

```
  use Pinata\Facades\Pinata;

  $ipfs_hash = '';

  $response = Pinata::removePinFromIPFS($ipfs_hash);
```

For more details about request parameters and responses please visit the official documentation:

### Available methods

[](#available-methods)

- addHashToPinQueue
- pinFileToIPFS
- pinHashToIPFS
- pinJobs
- pinJSONToIPFS
- removePinFromIPFS
- userPinnedDataTotal
- userPinList

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

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

Every ~23 days

Total

3

Last Release

1559d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ccef848b28ff10a7676012c188483b8e68c1c5b87dd17702c1c8951f68220e64?d=identicon)[toannguyen-stunited](/maintainers/toannguyen-stunited)

---

Top Contributors

[![toannguyen-stunited](https://avatars.githubusercontent.com/u/81546236?v=4)](https://github.com/toannguyen-stunited "toannguyen-stunited (1 commits)")

---

Tags

frameworklaravellumenpinata

### Embed Badge

![Health badge](/badges/musee-pinata-laravel/health.svg)

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

###  Alternatives

[laravel/lumen-framework

The Laravel Lumen Framework.

1.5k26.2M709](/packages/laravel-lumen-framework)[laravel-lang/publisher

Localization publisher for your Laravel application

2167.7M24](/packages/laravel-lang-publisher)[saad/api-debugger

Easily debug your JSON API.

1170.1k](/packages/saad-api-debugger)

PHPackages © 2026

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