algolia/algoliasearch-client-php
Composer 安装命令:
composer require algolia/algoliasearch-client-php
包简介
API powering the features of Algolia.
README 文档
README
The perfect starting point to integrate Algolia within your PHP project
Documentation • Laravel • Symfony • Community Forum • Stack Overflow • Report a bug • Support
✨ Features
- Thin & minimal low-level HTTP client to interact with Algolia's API
- Supports php
^8.0.
💡 Getting Started
First, install Algolia PHP API Client via the composer package manager:
composer require algolia/algoliasearch-client-php "^4.0"
You can now import the Algolia API client in your project and play with it.
use Algolia\AlgoliaSearch\Api\SearchClient; $client = SearchClient::create('<YOUR_APP_ID>', '<YOUR_API_KEY>'); // Add a new record to your Algolia index $response = $client->saveObject( '<YOUR_INDEX_NAME>', ['objectID' => 'id', 'test' => 'val', ], ); // play with the response var_dump($response); // Poll the task status to know when it has been indexed $client->waitForTask('<YOUR_INDEX_NAME>', $response['taskID']); // Fetch search results, with typo tolerance $response = $client->search( ['requests' => [ ['indexName' => '<YOUR_INDEX_NAME>', 'query' => '<YOUR_QUERY>', 'hitsPerPage' => 50, ], ], ], ); // play with the response var_dump($response);
For full documentation, visit the Algolia PHP API Client.
❓ Troubleshooting
Encountering an issue? Before reaching out to support, we recommend heading to our FAQ where you will find answers for the most common issues and gotchas with the client. You can also open a GitHub issue
Contributing
This repository hosts the code of the generated Algolia API client for PHP, if you'd like to contribute, head over to the main repository. You can also find contributing guides on our documentation website.
📄 License
The Algolia PHP API Client is an open-sourced software licensed under the MIT license.
algolia/algoliasearch-client-php 适用场景与选型建议
algolia/algoliasearch-client-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 35.43M 次下载、GitHub Stars 达 697, 最近一次更新时间为 2013 年 12 月 16 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「api」 「client」 「search」 「algolia」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 algolia/algoliasearch-client-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 algolia/algoliasearch-client-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 algolia/algoliasearch-client-php 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A PSR-7 compatible library for making CRUD API endpoints
Mock PSR-18 HTTP client
Asynchronous MQTT client built on React
Client for Google Directions API to add interpolated points to a route consisting of given coordinates.
Alfabank REST API integration
A Flickr wrapper to allow you to call the Flickr api with Guzzle as the backend.Goal is to have 100% Flickr api coverage rather than just upload/display photos (currently at 23%).
统计信息
- 总下载量: 35.43M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 711
- 点击次数: 17
- 依赖项目数: 124
- 推荐数: 19
其他信息
- 授权协议: MIT
- 更新时间: 2013-12-16