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)08481MITPHP

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 today

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 31% 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

1339d 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/framework

The Laravel Framework.

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

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k108.5M872](/packages/laravel-socialite)[laravel/boost

Laravel Boost accelerates AI-assisted development by providing the essential context and structure that AI needs to generate high-quality, Laravel-specific code.

3.5k21.5M567](/packages/laravel-boost)[craftcms/cms

Craft CMS

3.6k3.6M3.0k](/packages/craftcms-cms)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k39.6M296](/packages/laravel-dusk)[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)

PHPackages © 2026

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