PHPackages                             antikode/pinata-cloud - 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. antikode/pinata-cloud

ActiveLibrary[API Development](/categories/api)

antikode/pinata-cloud
=====================

PHP Package for Pinata API

02PHP

Since Aug 1Pushed 3y ago1 watchersCompare

[ Source](https://github.com/antikode/pinata-php)[ Packagist](https://packagist.org/packages/antikode/pinata-cloud)[ RSS](/packages/antikode-pinata-cloud/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Pinata
==============

[](#laravel-pinata)

#### Laravel Package to Integrate Pinata API

[](#laravel-package-to-integrate-pinata-api)

This package will make PHP able to integrate with

Features
--------

[](#features)

- Test authentication
- Pinnning File or Directory
- Pin JSON
- Pin by CID
- List Pin By CID Jobs
- Update Metadata
- Remove Pin

Installation
------------

[](#installation)

Install the package in your Laravel Project.

```
composer require antikode/pinata-cloud
```

Usage
-----

[](#usage)

#### Publish configuration :

[](#publish-configuration-)

Before initializing the package, make sure you have publish the configuration file by typing the code below.

```
php artisan vendor:publish --tag=pinata-config
```

#### Environment:

[](#environment)

You need to define the API at your .env file.

```
PINATA_API_KEY=[pinata api key]
PINATA_API_SECRET=[pinata secret key]
PINATA_JWT=[pinata jwt]
```

#### Pinning Metadata (JSON):

[](#pinning-metadata-json)

This function allows the sender to add and pin any JSON object they wish to Pinata's IPFS nodes.

```
// Must be array
$metadata = [
    'id' => 1,
    'uuid' => 'd19a449c-ba3d-435b-b8d3-4abb6fee6a69',
    'filename' => '1.jpg',
    'name' => 'Mindblowon #1',
    'description' => ''
];
$keyVal = [
    'key' => 'value'
];
$cidVersion = 1;
$pinata = Pinata::init($cidVersion);
return $pinata->pinJson('Mindblowon #1', $keyVal, $metadata);
```

#### Pinning By CID:

[](#pinning-by-cid)

There may be times where a piece of content is not available on your local machine or server but is already on the IPFS network. In those times, the Pin By CID API endpoint is helpful. A CID (or content identifier) is a hash generated by the IPFS protocol and representative of a piece of content. By taking that CID (or hash) and using this API, you can import the content into your own Pinata account and pin it on Pinata's storage nodes.

```
$pinata = Pinata::init(0);
$keyVal = [
    'key' => 'value'
];
// The Pin name
$name = 'Moondogz';
// Moondogz Pinata CID
$cid = 'QmRT1o23bkiHTjUrUkL2XDGSj3yV7LFmwShWiBEcsgVLaT';
return $pinata->pinByCID($cid, $name, $keyVal);
```

#### List Pin By CID Jobs:

[](#list-pin-by-cid-jobs)

When using the pinByCID function, you may want to programmatically check on the status of CIDs you'd requested to be pinned to your account. This endpoint allows you to do so.

```
$pinata = Pinata::init(0);
// sort can be ASC or DESC
return $pinata->listPinJob('ASC');
```

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

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://www.gravatar.com/avatar/518760a7eae570660b7a2cfd5767e701a2544ca7a935b32f4e800b9dd01f1c40?d=identicon)[masitings](/maintainers/masitings)

---

Top Contributors

[![masitings](https://avatars.githubusercontent.com/u/29356430?v=4)](https://github.com/masitings "masitings (9 commits)")

### Embed Badge

![Health badge](/badges/antikode-pinata-cloud/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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