New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

danielcrt/pinata-laravel

The Laravel provider for Pinata API.
887

Larablocks Analysis

danielcrt/pinata-laravel works with Laravel 9 (latest release v0.2, Nov 1, 2022), which reached end of life on Feb 6, 2024: no more fixes, even for security.

Laravel 8 in earlier releases.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 9, past end of life since Feb 6, 2024
  • No release in the last 12 months (last: Nov 1, 2022)
  • 10 downloads a month (needs 10,000)
  • 0 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Nov 1, 2022.
  • No releases in the last 12 months.
  • First released: Dec 23, 2021.
  • Monthly downloads: 10.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 2, 2026.

Install
composer require danielcrt/pinata-laravel
Latest Version:v0.2
Laravel:9
Older releases:8
License:MIT
Last Updated:Nov 1, 2022
Links: GitHub  ·  Packagist
Maintainer: i.daniel

Laravel Pinata API Provider

This is a Laravel/Lumen provider for interacting with Pinata API.

Install

Require this package with composer using the following command:

composer require danielcrt/pinata-laravel

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

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

'providers' => [

    ...

    \Pinata\Providers\PinataServiceProvider::class,
]
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

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: https://docs.pinata.cloud

Available methods

  • addHashToPinQueue

  • pinFileToIPFS

  • pinHashToIPFS

  • pinJobs

  • pinJSONToIPFS

  • removePinFromIPFS

  • userPinnedDataTotal

  • userPinList

Related Packages

spira/core

Spira app core

4,802 2
sarahman/laravel-activitylog-with-pivots

Activity Log package deals with all kinds of Eloquent events based logging as we...

713 1
nukacode/lumen-base

The Laravel Lumen Framework with nukacode.

411 3
ognestraz/laravel-image

The Image Module for Laravel Framework.

251 1
ognestraz/laravel-model

The Models for Laravel Framework.

244 0

Version History

Version Released Laravel License
v0.2 ^9.0 MIT
v0.1.2 ^8.77 MIT
v0.1.1 ^8.77 MIT
v0.1.0 ^8.77 MIT