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

ActiveLibrary[API Development](/categories/api)

chencongbao/pinecone
====================

This package provides a Laravel wrapper for the Pinecone API.

032[1 issues](https://github.com/chencongbao/pinecone/issues)PHP

Since Oct 23Pushed 2y ago1 watchersCompare

[ Source](https://github.com/chencongbao/pinecone)[ Packagist](https://packagist.org/packages/chencongbao/pinecone)[ RSS](/packages/chencongbao-pinecone/feed)WikiDiscussions main Synced today

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

14

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity21

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/7532419?v=4)[chencongbao](/maintainers/chencongbao)[@chencongbao](https://github.com/chencongbao)

---

Top Contributors

[![chencongbao](https://avatars.githubusercontent.com/u/7532419?v=4)](https://github.com/chencongbao "chencongbao (2 commits)")

### Embed Badge

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

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

###  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.0k13](/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)
