Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vickypandey14/gemini-php
I've developed Gemini-PHP, a PHP application designed to work smoothly with the Gemini API. This tool makes it easy for users to create content simply by providing their prompts.
https://github.com/vickypandey14/gemini-php
ajax deepmind gemini gemini-ai gemini-api gemini-pro geminiphp javascript jquery php php8
Last synced: about 19 hours ago
JSON representation
I've developed Gemini-PHP, a PHP application designed to work smoothly with the Gemini API. This tool makes it easy for users to create content simply by providing their prompts.
- Host: GitHub
- URL: https://github.com/vickypandey14/gemini-php
- Owner: vickypandey14
- License: apache-2.0
- Created: 2024-03-15T15:03:45.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-10-10T05:45:52.000Z (2 months ago)
- Last Synced: 2024-11-05T11:15:41.032Z (about 2 months ago)
- Topics: ajax, deepmind, gemini, gemini-ai, gemini-api, gemini-pro, geminiphp, javascript, jquery, php, php8
- Language: Hack
- Homepage:
- Size: 669 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gemini API Integration in PHP
### This repository contains a PHP application that integrates with the Gemini API for generating content based on user prompts.
## Installation
1. Clone the repository:
```bash
git clone https://github.com/vickypandey14/Gemini-PHP.git
```
3. Navigate to the project directory:
```bash
cd Gemini-PHP
```
4. Install dependencies using Composer:
```bash
composer install
```## Usage
1. Configure your Gemini API key in `response.php`.
2. Open `index.php` in a web browser.
3. Enter a prompt in the input field.
4. Click on the "Generate Response" button.
5. View the generated response.## API
A new folder named `api` has been added, containing the `get-response.php` file. This file is responsible for handling requests to the Gemini API, generating responses based on user input. To use this API:1. Ensure the Gemini API key is set in `get-response.php`.
2. Send a POST request with a JSON body containing the `text` field to receive a generated response.## Contributing
Contributions are welcome! Feel free to fork the repository and submit pull requests with improvements, bug fixes, or new features.## License
This project is licensed under the Apache License 2.0. See the [LICENSE](LICENSE) file for details.## Author
[Vivek Pandey](https://github.com/vickypandey14)For any questions or support, please open an issue on GitHub: [Gemini-PHP Issues](https://github.com/vickypandey14/Gemini-PHP/issues)