PHPackages                             adrianmejias/pinecone - 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. adrianmejias/pinecone

AbandonedArchivedLibrary[API Development](/categories/api)

adrianmejias/pinecone
=====================

This package provides a Laravel wrapper for the Pinecone API.

v1.0.12(3y ago)3391MITPHPPHP ^8.0

Since Apr 8Pushed 3y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (7)Versions (15)Used By (0)

Pinecone PHP Package
====================

[](#pinecone-php-package)

[![Latest Version on Packagist](https://camo.githubusercontent.com/92a07fcf9a59fc587365706ba315a042ca52a47852072e21b65474092401670a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61647269616e6d656a6961732f70696e65636f6e652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/adrianmejias/pinecone)[![tests](https://github.com/adrianmejias/pinecone/actions/workflows/tests.yml/badge.svg)](https://github.com/adrianmejias/pinecone/actions/workflows/tests.yml)[![static analysis](https://github.com/adrianmejias/pinecone/actions/workflows/static-analysis.yml/badge.svg)](https://github.com/adrianmejias/pinecone/actions/workflows/static-analysis.yml)[![License](https://camo.githubusercontent.com/f46c4d845ad6924a89665696ead9a299f539ee128eed9c619b9d98bca1f9354a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f61647269616e6d656a6961732f70696e65636f6e652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/adrianmejias/pinecone)

This package provides a `Laravel` wrapper for the `Pinecone API`. It enables you to easily interact with the `Pinecone API` in your `Laravel` projects.

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

[](#installation)

You can install the package via composer:

```
composer require adrianmejias/pinecone
```

You can also optionally publish the configuration file with:

```
php artisan vendor:publish --provider="AdrianMejias\Pinecone\PineconeServiceProvider" --tag="config"
```

This will publish a `pinecone.php` file in your config directory, which you can customize as needed.

Configuration
-------------

[](#configuration)

Before using the package, you will need to set your Pinecone API key and environment. You can do this by setting the `PINECONE_API_KEY`, `PINECONE_PROJECT_ID` and `PINECONE_ENVIRONMENT` environment variables, or by updating the values in your `config/pinecone.php` file.

You can also optionally set the `PINECONE_CONTROLLER_HOST`/`PINECONE_INDEX_HOST` environment variable or update the `controller_host`/`index_host` value in your `config/pinecone.php` file to specify a custom controller/index host.

Usage
-----

[](#usage)

You can use the Pinecone facade to interact with the Pinecone API. Here's an example of how to create an index:

```
use AdrianMejias\Pinecone\Facades\Pinecone;

// Create an index
$response = Pinecone::index('my-index')->create([
    'metric' => 'cosine',
    'pods' => 1,
    'replicas' => 1,
    'pod_type' => 'p1.x1',
]);

// Query with namespace
$response = Pinecone::vector('my-index')->namespace('my-namespace')->query(10);
```

This will create an index named `my-index` with two `fields`, `field1` and `field2`.

Available Methods
-----------------

[](#available-methods)

The following methods are available via the Pinecone Facade:

- setApiKey(string $apiKey): Pinecone: Sets the API key to be used for Pinecone requests
- setEnvironment(string $environment): Pinecone: Sets the Pinecone environment to be used
- setProjectId(string $projectId): Pinecone: Sets the Pinecone project ID to be used
- setEndpoint(string $endpoint): Pinecone: Sets the Pinecone controller host to be used
- getApiKey(): ?string: Gets the current API key being used
- getEnvironment(): ?string: Gets the current Pinecone environment being used
- getProjectId(): ?string: Gets the current Pinecone project ID being used
- getEndpoint(): ?string: Gets the current Pinecone controller host being used
- vector(string $indexName): Pinecone: Vector Operations
- index(?string $indexName = null): Pinecone: Index Operations
- collection(?string $collectionName = null): Index Collection Operations

Please refer to the [official Pinecone API Reference](https://docs.pinecone.io/reference/describe_index_stats_post) for more information on how to use the API.

License
-------

[](#license)

The Pinecone PHP package is open-sourced software licensed under the [MIT license](LICENSE.md).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

Total

13

Last Release

1124d ago

PHP version history (2 changes)v1.0.0PHP ^7.3|^8.0

v1.0.2PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/70bc994aa5551eb623dafac5074a508e33176eba575962e63039b7106b3ccd56?d=identicon)[adrianmejias](/maintainers/adrianmejias)

---

Top Contributors

[![adrianmejias](https://avatars.githubusercontent.com/u/1440288?v=4)](https://github.com/adrianmejias "adrianmejias (27 commits)")

---

Tags

apilaravelpineconeapilaravelpinecone

###  Code Quality

TestsPest

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/adrianmejias-pinecone/health.svg)

```
[![Health](https://phpackages.com/badges/adrianmejias-pinecone/health.svg)](https://phpackages.com/packages/adrianmejias-pinecone)
```

###  Alternatives

[smodav/mpesa

M-Pesa API implementation

16363.7k1](/packages/smodav-mpesa)[ardakilic/mutlucell

Mutlucell SMS API wrapper for sending sms text messages for Laravel

457.3k](/packages/ardakilic-mutlucell)[dariusiii/tmdb-laravel

Laravel Package for TMDB ( The Movie Database ) API. Provides easy access to the wtfzdotnet/php-tmdb-api library.

1821.1k](/packages/dariusiii-tmdb-laravel)

PHPackages © 2026

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