PHPackages                             khaiphan/bard-reverse - 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. khaiphan/bard-reverse

ActiveLibrary[API Development](/categories/api)

khaiphan/bard-reverse
=====================

A PHP library for Reverse Google Bard AI

2401[1 issues](https://github.com/piscesCat/Bard-AI-Reverse-PHP/issues)PHP

Since Jun 4Pushed 2y ago4 watchersCompare

[ Source](https://github.com/piscesCat/Bard-AI-Reverse-PHP)[ Packagist](https://packagist.org/packages/khaiphan/bard-reverse)[ RSS](/packages/khaiphan-bard-reverse/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Bard-AI-Reverse
---------------

[](#bard-ai-reverse)

Bard-AI-Reverse is a Composer package that allows you to interact with Google Bard AI using PHP code.

Language
--------

[](#language)

- [English](README.md)
- [Tiếng Việt](README_vi.md)

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

[](#installation)

Minimum PHP version required is 7.2.5

Use [Composer](https://getcomposer.org) to install the package.

Run the following command in the terminal:

```
composer require khaiphan/bard-reverse:dev-main

```

Usage
-----

[](#usage)

1. First, you need to include the autoloader in your PHP code:

```
require 'vendor/autoload.php';
```

2. Next, create an instance of the `Bard` class and provide cookie Google Bard AI:

```
use KhaiPhan\Google\Bard;

$bard = new Bard('__Secure-1PSID');
```

Make sure you replace `'__Secure-1PSID'` with the value of the \_\_Secure-1PSID cookie obtained from the [Google Bard AI website](https://bard.google.com).

3. Then, call the `getAnswer()` method to retrieve the response from Bard AI:

```
$answer = $bard->getAnswer('Hello');
```

4. You can access the answer from Bard AI through the `$answer['content']` variable. For example:

```
$content = $bard['content'];
echo $content;
```

License
-------

[](#license)

This package is open-source and available under the [MIT License](https://opensource.org/licenses/MIT).

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity22

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/d9cbfe9c04f5dc028e5ab6a94ac0d56ffcf82ce356878bde83616aa03da24d9a?d=identicon)[piscesCat](/maintainers/piscesCat)

---

Top Contributors

[![piscesCat](https://avatars.githubusercontent.com/u/135218537?v=4)](https://github.com/piscesCat "piscesCat (9 commits)")

### Embed Badge

![Health badge](/badges/khaiphan-bard-reverse/health.svg)

```
[![Health](https://phpackages.com/badges/khaiphan-bard-reverse/health.svg)](https://phpackages.com/packages/khaiphan-bard-reverse)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M271](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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