Releases: algolia/algoliasearch-client-php
2.8.0
2.7.2
2.0.0
Please find the upgrade guide here: https://www.algolia.com/doc/api-client/getting-started/upgrade-from-v1/php/
Additonal information are available here: https://discourse.algolia.com/t/introducing-php-api-client-v2/5635
1.28.0
-
Introduce
$client->multipleGetObjects()
to retrieve objects via ObjectID
across multiple indices -
fix
$index->waitTask
to return task, behavior prior to 1.27.0
2.0.0-RC
2.0.0 Alpha 2
- Add getter and setter for Index::indexName property
- Fix Travis
- Introduce ClientConfiguration (which holds ClusterHosts)
- Introduce Client singleton with Client::get()
2.0.0 Alpha 1
Read more on our forum: https://discourse.algolia.com/t/introducing-php-api-client-v2/5635
Since 2.0.0-alpha
- Add multiple indexes search/index methods
- Add common files (licence, changelog...)
- Rename
index
toinitIndex
for easier upgrade - Fix default HttpClient wrapper for PHP53
- Setup Travis
1.27.0
-
Introduce AB Testing feature - PR #408
List/Create/Stop/Delete AB Tests programmatically
Introduce new Analytics object, wrapper around the
Analytics API (more methods to come). -
2 methods about taskID initially available in the
Index
moved to theClient
.
You could get some taskID from the engine without necessarily have an instance of Index,
instead of instanciating an index that you won't need, you can now call waitTask and getTaskStatus on the client.
The original methods on the index still work are not deprecated.$client->waitTask($indexName, $taskID) $client->getTaskStatus($indexName, $taskID)
1.26.1
1.26.0
🎉 Note to contributors:
Everybody is now able to run the test on Travis, since we moved to temporary credentials.️
https://blog.algolia.com/travis-encrypted-variables-external-contributions/
-
Fix:
addApiKey
was fixed in 1.25.0 (see changelog entry below). The same fix was ported toupdateApiKey
. -
Fix: Curl was added to the composer requirements. If you get an error because curl is not enabled in CLI, enable it or use the flag
--ignore-platform-reqs
-
Fix: Adding a rule with an empty ID failed silently, it will now throw an exception
-
Deprecation: Keys should not be managed at the Index level but at the Client level
All methods
Index::(list|get|add|update)ApiKeys()
are now
deprecated. If you already have keys on the Index, it would be best
to delete them and regenerate new keys with client, adding theindexes
restriction.Example:
$client->addApiKey([ 'acl' => 'search', 'indexes' => 'my_index_name', ])
-
Fix: Add $requestHeaders arg to Index::browse and Index::deleteBy
-
Fix: When browsing, ensure cursor is passed in the body
Cursor can become so long that the generated URL fails (error HTTP 414). -
Chore: Add PHP version to the UserAgent