PHPackages                             danielcrt/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. danielcrt/pinata-laravel

ActiveProject[Framework](/categories/framework)

danielcrt/pinata-laravel
========================

The Laravel provider for Pinata API.

v0.2(3y ago)08461MITPHP

Since Dec 23Pushed 3y ago1 watchersCompare

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

READMEChangelog (4)Dependencies (2)Versions (5)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

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

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 ~104 days

Total

4

Last Release

1288d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/382d66c0eb0b506a1e6e5a10ae490d874d790f13b1af6a6f3958c1a7b3f23743?d=identicon)[i.daniel](/maintainers/i.daniel)

---

Top Contributors

[![rawsilence](https://avatars.githubusercontent.com/u/43569886?v=4)](https://github.com/rawsilence "rawsilence (1 commits)")

---

Tags

frameworklaravellumenpinata

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/danielcrt-pinata-laravel/health.svg)](https://phpackages.com/packages/danielcrt-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)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)[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)
