PHPackages                             fakellyh/bing-api-php - 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. fakellyh/bing-api-php

AbandonedArchivedLibrary[API Development](/categories/api)

fakellyh/bing-api-php
=====================

Simple reverse engineering to BingAI using PHP

1.2.2(2y ago)039[2 issues](https://github.com/nombanafi/bing-api-php/issues)MITPHPPHP &gt;=7.2.5

Since Dec 8Pushed 2y ago1 watchersCompare

[ Source](https://github.com/nombanafi/bing-api-php)[ Packagist](https://packagist.org/packages/fakellyh/bing-api-php)[ RSS](/packages/fakellyh-bing-api-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (4)Used By (0)

BING AI API
===========

[](#bing-ai-api)

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
-----------------------------------

[](#latest-stable-version-and-downloads)

[![Latest Stable Version](https://camo.githubusercontent.com/dfd5c82b78466c14918d5868b52cc4e83924aa8c857409ea969e8f6dfd39a99e/687474703a2f2f706f7365722e707567782e6f72672f66616b656c6c79682f62696e672d6170692d7068702f76)](https://packagist.org/packages/fakellyh/bing-api-php) [![Total Downloads](https://camo.githubusercontent.com/d9e1e3ecb21337de2b11c1d26856cc64c7c8a7de9dee17c33cfb518bb700cbd8/687474703a2f2f706f7365722e707567782e6f72672f66616b656c6c79682f62696e672d6170692d7068702f646f776e6c6f616473)](https://packagist.org/packages/fakellyh/bing-api-php) [![Latest Unstable Version](https://camo.githubusercontent.com/bb4ca648d1a837a6ff3f494af5501e942e9e36fb672f3a84eb38f95e77793222/687474703a2f2f706f7365722e707567782e6f72672f66616b656c6c79682f62696e672d6170692d7068702f762f756e737461626c65)](https://packagist.org/packages/fakellyh/bing-api-php) [![License](https://camo.githubusercontent.com/891a265c31e7d85e79002ab0fe2483112b474a70250ed1869e04a2094ed796c8/687474703a2f2f706f7365722e707567782e6f72672f66616b656c6c79682f62696e672d6170692d7068702f6c6963656e7365)](https://packagist.org/packages/fakellyh/bing-api-php) [![PHP Version Require](https://camo.githubusercontent.com/914c74fa574a190401c3f9f5163ac2b3da5252876740f1b233d71b6e1c35ec46/687474703a2f2f706f7365722e707567782e6f72672f66616b656c6c79682f62696e672d6170692d7068702f726571756972652f706870)](https://packagist.org/packages/fakellyh/bing-api-php)

Installation
------------

[](#installation)

For seamless integration, we recommend using Composer:

```
composer require fakellyh/bing-api-php
```

Usage
-----

[](#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
-------

[](#support)

If you encounter any issues or believe there is a problem with this library, please feel free to [open an issue](https://github.com/fakellgit/bing-api-php/issues/new) if one doesn't already exist.

Author
------

[](#author)

Nombana Fahendrena FIOMBONANTSOA

- Email:
- Facebook: [fakellyh](https://www.facebook.com/fakellyh)

License
-------

[](#license)

This project is licensed under the GPL-3.0 license.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

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.

###  Release Activity

Cadence

Every ~64 days

Total

3

Last Release

761d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2cb8478afae7515af03cb8b52e7ffda62f75d99f953311d85f3d315365a985db?d=identicon)[fakellyh](/maintainers/fakellyh)

---

Top Contributors

[![nombanafi](https://avatars.githubusercontent.com/u/161061207?v=4)](https://github.com/nombanafi "nombanafi (7 commits)")

---

Tags

apiaibotartificial intelligenceconversationmadagascarbing aiapi conversation

### Embed Badge

![Health badge](/badges/fakellyh-bing-api-php/health.svg)

```
[![Health](https://phpackages.com/badges/fakellyh-bing-api-php/health.svg)](https://phpackages.com/packages/fakellyh-bing-api-php)
```

###  Alternatives

[erdum/php-open-ai-assistant-sdk

A PHP class for seamless interaction with the OpenAI Assistant API, enabling developers build powerful AI assistants capable of performing a variety of tasks.

203.1k](/packages/erdum-php-open-ai-assistant-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
