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

ActiveProject[API Development](/categories/api)

desnake/pinata-laravel-v9
=========================

The Laravel provider for Pinata API.

12PHP

Since Nov 1Pushed 3y ago1 watchersCompare

[ Source](https://github.com/sumitkumar33/pinata-sdk)[ Packagist](https://packagist.org/packages/desnake/pinata-laravel-v9)[ RSS](/packages/desnake-pinata-laravel-v9/feed)WikiDiscussions main Synced 3d ago

READMEChangelogDependenciesVersions (1)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.

Note: Special thanks to Daniel Isac (danielcrt) for providing package.
----------------------------------------------------------------------

[](#note-special-thanks-to-daniel-isac-danielcrt-for-providing-package)

### Install

[](#install)

Require this package with composer using the following command:

```
composer require desnake/pinata-laravel-v9
```

### 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

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/100846437?v=4)[Sumit Kumar](/maintainers/Sumitkumar193)[@Sumitkumar193](https://github.com/Sumitkumar193)

---

Top Contributors

[![sumitkumar33](https://avatars.githubusercontent.com/u/113529967?v=4)](https://github.com/sumitkumar33 "sumitkumar33 (3 commits)")

### Embed Badge

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

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

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

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k16](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

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

PHPackages © 2026

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