simple-pinecone-php 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2025 Ionică Bizău <bizauionica@gmail.com> (https://ionicabizau.net)
3
+ Copyright (c) 2025-26 Ionică Bizău <bizauionica@gmail.com> (https://ionicabizau.net)
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,52 +1,13 @@
1
1
  <!-- Please do not edit this file. Edit the `blah` field in the `package.json` instead. If in doubt, open an issue. -->
2
2
 
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
-
19
-
20
3
  # simple-pinecone-php
21
4
 
22
5
  [![Support me on Patreon][badge_patreon]][patreon] [![Buy me a book][badge_amazon]][amazon] [![PayPal][badge_paypal_donate]][paypal-donations] [![Ask me anything](https://img.shields.io/badge/ask%20me-anything-1abc9c.svg)](https://github.com/IonicaBizau/ama) [![Version](https://img.shields.io/npm/v/simple-pinecone-php.svg)](https://www.npmjs.com/package/simple-pinecone-php) [![Downloads](https://img.shields.io/npm/dt/simple-pinecone-php.svg)](https://www.npmjs.com/package/simple-pinecone-php) [![Get help on Codementor](https://cdn.codementor.io/badges/get_help_github.svg)](https://www.codementor.io/@johnnyb?utm_source=github&utm_medium=button&utm_term=johnnyb&utm_campaign=github)
23
6
 
24
7
  <a href="https://www.buymeacoffee.com/H96WwChMy" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/yellow_img.png" alt="Buy Me A Coffee"></a>
25
8
 
26
-
27
-
28
-
29
-
30
-
31
-
32
9
  > Access the Pinecone APIs thorugh PHP.
33
10
 
34
-
35
-
36
-
37
-
38
-
39
-
40
-
41
-
42
-
43
-
44
-
45
-
46
-
47
-
48
-
49
-
50
11
  ## :cloud: Installation
51
12
 
52
13
  ```shell
@@ -59,23 +20,6 @@ If you do not use composer, you can simply download the file `lib/pinecone.php`
59
20
  require "pinecone.php";
60
21
  $pinecone = new Pinecone("your api key", "https://your-host-url");
61
22
  ```
62
-
63
-
64
-
65
-
66
-
67
-
68
-
69
-
70
-
71
-
72
-
73
-
74
-
75
-
76
-
77
-
78
-
79
23
  ## Example
80
24
 
81
25
  ```php
@@ -112,20 +56,12 @@ If you do not use composer, you can simply download the file `lib/pinecone.php`
112
56
  ]);
113
57
  ```
114
58
 
115
-
116
-
117
-
118
-
119
-
120
-
121
59
  ## :memo: Documentation
122
60
 
123
-
124
61
  ### `Pinecone($apiKey, $hostUrl, $apiVersion)`
125
62
  Constructor to initialize the Pinecone API client.
126
63
 
127
64
  #### Params
128
-
129
65
  - **String** `$apiKey`: The API key for authentication.
130
66
  - **String** `$hostUrl`: The base URL of the Pinecone API.
131
67
  - **String** `$apiVersion`: The API version, default is `'2025-01'`.
@@ -134,7 +70,6 @@ Constructor to initialize the Pinecone API client.
134
70
  Makes an HTTP request to the Pinecone API.
135
71
 
136
72
  #### Params
137
-
138
73
  - **String** `$method`: HTTP method (GET or POST).
139
74
  - **String** `$pathname`: The API endpoint path.
140
75
  - **Array** `$data`: The data to send with the request.
@@ -146,7 +81,6 @@ Makes an HTTP request to the Pinecone API.
146
81
  Sends a GET request to the Pinecone API.
147
82
 
148
83
  #### Params
149
-
150
84
  - **String** `$pathname`: The API endpoint path.
151
85
  - **Array** `$queryStringParamsAsArray`: Query parameters as an associative array.
152
86
 
@@ -157,98 +91,44 @@ Sends a GET request to the Pinecone API.
157
91
  Sends a POST request to the Pinecone API.
158
92
 
159
93
  #### Params
160
-
161
94
  - **String** `$pathname`: The API endpoint path.
162
95
  - **Array** `$bodyAsArray`: The request body as an associative array.
163
96
 
164
97
  #### Return
165
98
  - **Array** The API response as an associative array.
166
99
 
167
-
168
-
169
-
170
-
171
-
172
-
173
-
174
-
175
100
  ## :question: Get Help
176
101
 
177
- There are few ways to get help:
102
+ There are a few ways to get help:
178
103
 
179
-
180
-
181
- 1. Please [post questions on Stack Overflow](https://stackoverflow.com/questions/ask). You can open issues with questions, as long you add a link to your Stack Overflow question.
104
+ 1. Please [post questions on Stack Overflow](https://stackoverflow.com/questions/ask). You can open issues with questions, as long as you add a link to your Stack Overflow question.
182
105
  2. For bug reports and feature requests, open issues. :bug:
183
106
  3. For direct and quick help, you can [use Codementor](https://www.codementor.io/johnnyb). :rocket:
184
107
 
108
+ ## :yum: How to Contribute
185
109
 
186
-
187
-
188
-
189
-
190
-
191
-
192
-
193
-
194
-
195
-
196
-
197
-
198
- ## :yum: How to contribute
199
110
  Have an idea? Found a bug? See [how to contribute][contributing].
200
111
 
112
+ ## :sparkling_heart: Support My Projects
201
113
 
202
- ## :sparkling_heart: Support my projects
203
- I open-source almost everything I can, and I try to reply to everyone needing help using these projects. Obviously,
204
- this takes time. You can integrate and use these projects in your applications *for free*! You can even change the source code and redistribute (even resell it).
205
-
206
- However, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it:
114
+ I open-source almost everything I can, and I try to reply to everyone needing help using these projects. Obviously, this takes time. You can integrate and use these projects in your applications *for free*! You can even change the source code and redistribute it (even resell it).
207
115
 
116
+ However, if you get some profit from this or just want to encourage me to continue creating stuff, there are a few ways you can do it:
208
117
 
209
118
  - Starring and sharing the projects you like :rocket:
210
- - [![Buy me a book][badge_amazon]][amazon]—I love books! I will remember you after years if you buy me one. :grin: :book:
119
+ - [![Buy me a book][badge_amazon]][amazon]—I love books! I will remember you for years if you buy me one. :grin: :book:
211
120
  - [![PayPal][badge_paypal]][paypal-donations]—You can make one-time donations via PayPal. I'll probably buy a ~~coffee~~ tea. :tea:
212
121
  - [![Support me on Patreon][badge_patreon]][patreon]—Set up a recurring monthly donation and you will get interesting news about what I'm doing (things that I don't share with everyone).
213
- - **Bitcoin**—You can send me bitcoins at this address (or scanning the code below): `1P9BRsmazNQcuyTxEqveUsnf5CERdq35V6`
214
-
215
- ![](https://i.imgur.com/z6OQI95.png)
122
+ - **Bitcoin**—You can send me bitcoins at this address (or by scanning the code below): `1P9BRsmazNQcuyTxEqveUsnf5CERdq35V6`
216
123
 
124
+ ![Bitcoin QR code](https://i.imgur.com/z6OQI95.png)
217
125
 
218
126
  Thanks! :heart:
219
127
 
220
-
221
-
222
-
223
-
224
-
225
-
226
-
227
-
228
-
229
-
230
-
231
-
232
-
233
-
234
-
235
-
236
-
237
-
238
-
239
-
240
-
241
-
242
-
243
128
  ## :scroll: License
244
129
 
245
130
  [MIT][license] © [Ionică Bizău][website]
246
131
 
247
-
248
-
249
-
250
-
251
-
252
132
  [license]: /LICENSE
253
133
  [website]: https://ionicabizau.net
254
134
  [contributing]: /CONTRIBUTING.md
@@ -258,5 +138,5 @@ Thanks! :heart:
258
138
  [badge_paypal]: https://ionicabizau.github.io/badges/paypal.svg
259
139
  [badge_paypal_donate]: https://ionicabizau.github.io/badges/paypal_donate.svg
260
140
  [patreon]: https://www.patreon.com/ionicabizau
261
- [amazon]: http://amzn.eu/hRo9sIZ
141
+ [amazon]: https://amzn.eu/hRo9sIZ
262
142
  [paypal-donations]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RVXDDLKKLQRJW
package/lib/pinecone.php CHANGED
File without changes
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "thorugh"
11
11
  ],
12
12
  "license": "MIT",
13
- "version": "1.0.0",
13
+ "version": "1.0.1",
14
14
  "main": "lib/pinecone.php",
15
15
  "scripts": {
16
16
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -29,7 +29,6 @@
29
29
  "cli.js",
30
30
  "index.js",
31
31
  "index.d.ts",
32
- "package-lock.json",
33
32
  "bloggify.js",
34
33
  "bloggify.json",
35
34
  "bloggify/"
@@ -100,4 +99,4 @@
100
99
  }
101
100
  ]
102
101
  }
103
- }
102
+ }