fakellyh/bing-api-php
最新稳定版本:1.2.2
Composer 安装命令:
composer require fakellyh/bing-api-php
包简介
Simple reverse engineering to BingAI using PHP
README 文档
README
Welcome to the Bing AI API, an open-source project designed for reverse engineering Bing AI without relying on cookie usage. This initiative aims to provide a transparent and privacy-conscious approach to interact with Bing AI's functionalities.
Latest Stable Version and Downloads
Installation
For seamless integration, we recommend using Composer:
composer require fakellyh/bing-api-php
Usage
To get started, add the autoloader to your project:
require_once __DIR__.'/vendor/autoload.php';
Now, let's demonstrate how to use the Bing AI API with a simple example. Add the following PHP code to your project:
use Fakell\Bing\Bing; use Fakell\Bing\Constant\Tones; // Include the Composer autoloader require __DIR__ . "/vendor/autoload.php"; // Create an instance of the Bing class $bing = new Bing; // Make a request to Bing AI $bing->ask("Hello world!", Tones::CREATIVE); // Display the response data $response = $bing->getResponse(); print_r($response);
Response example :
Array
(
[text] => Hello! 🌎
[author] => bot
[createdAt] => 2024-04-03T01:03:32.0349726+00:00
[timestamp] => 2024-04-03T01:03:32.0349726+00:00
[messageId] => 449951c5-76f4-46d2-becd-5212ee627ff3
[requestId] => 2fb1546f775cb27d171741ae9cd8195a
[offense] => None
[adaptiveCards] => Array
(
[0] => Array
(
[type] => AdaptiveCard
[version] => 1.0
[body] => Array
(
[0] => Array
(
[type] => TextBlock
[text] => Hello! 🌎
[wrap] => 1
)
)
)
)
[sourceAttributions] => Array
(
)
[feedback] => Array
(
[tag] =>
[updatedOn] =>
[type] => None
)
[contentOrigin] => DeepLeo
[suggestedResponses] => Array
(
[0] => Array
(
[text] => Hi there!
[author] => user
[createdAt] => 2024-04-03T01:03:33.3900432+00:00
[timestamp] => 2024-04-03T01:03:33.3900432+00:00
[messageId] => 02ecee3f-b62d-4db2-849c-700fc0b7ef90
[messageType] => Suggestion
[offense] => Unknown
[feedback] => Array
(
[tag] =>
[updatedOn] =>
[type] => None
)
[contentOrigin] => SuggestionChipsFalconService
)
[1] => Array
(
[text] => Greetings!
[author] => user
[createdAt] => 2024-04-03T01:03:33.390047+00:00
[timestamp] => 2024-04-03T01:03:33.390047+00:00
[messageId] => fd477fca-7a2c-4efe-bcf2-0138c19462b7
[messageType] => Suggestion
[offense] => Unknown
[feedback] => Array
(
[tag] =>
[updatedOn] =>
[type] => None
)
[contentOrigin] => SuggestionChipsFalconService
)
[2] => Array
(
[text] => What can I help you with?
[author] => user
[createdAt] => 2024-04-03T01:03:33.3900483+00:00
[timestamp] => 2024-04-03T01:03:33.3900483+00:00
[messageId] => 9ce7eaf7-739f-4e79-b57e-acb43872b4c7
[messageType] => Suggestion
[offense] => Unknown
[feedback] => Array
(
[tag] =>
[updatedOn] =>
[type] => None
)
[contentOrigin] => SuggestionChipsFalconService
)
)
)
Support
If you encounter any issues or believe there is a problem with this library, please feel free to open an issue if one doesn't already exist.
Author
Nombana Fahendrena FIOMBONANTSOA
- Email: fakellyh@gmail.com
- Facebook: fakellyh
License
This project is licensed under the GPL-3.0 license.
fakellyh/bing-api-php 适用场景与选型建议
fakellyh/bing-api-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 39 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 04 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「api」 「bot」 「artificial intelligence」 「ai」 「conversation」 「madagascar」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 fakellyh/bing-api-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 fakellyh/bing-api-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 fakellyh/bing-api-php 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Dialogflow php sdk
Laravel 5.6 Monolog custom telegram channel
A PSR-7 compatible library for making CRUD API endpoints
AI Content Translation for Laravel powered by SharpAPI.com
AI SEO Meta Tag Generator for Laravel powered by SharpAPI.com
A laravel plugin to interact with AI providers
统计信息
- 总下载量: 39
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 20
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-04-03