Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Client Laravel Package

google-gemini-php/client

Community-maintained PHP API client for Google's Gemini AI API. Send text, image, video, and audio prompts, hold multi-turn chats, stream responses, call functions, generate images and speech, and manage files and cached content.

View on GitHub
Deep Wiki
Context7
2.8.0

Highlights

  • PHP 8.2+ is now required. Projects on PHP 8.1 will keep resolving to 2.7.x.
  • New API features: JSON Schema for structured output and function declarations, multimodal function responses, server-side tool invocations, per-part media resolution, ImageConfig::$imageSize, response metadata (responseId, modelStatus, finishMessage, urlContextMetadata, serviceTier), and importFile() / getOperation() for file search stores.
  • ClientFake now supports startChat(), including multi-turn and streamed chats.
  • The README has been refreshed with current models and examples for all features.

Behavior changes

No public signatures changed, but a few behaviors did:

  • Streamed requests that fail with a 5xx and a JSON error body now throw ErrorException instead of TransporterException, like regular requests (#187).
  • The chat history built by streamSendMessage() keeps thoughts, function calls and tool calls as separate parts and keeps their thoughtSignature. This fixes the next turn being rejected after a streamed function call, but $chat->history[$i]->parts may look different than before (#183).
  • The ValueError messages of text() and parts() now end with the finish or block reason (#189).

What's Changed

Features

Fixes

Maintenance

Full Changelog: https://github.com/google-gemini-php/client/compare/2.7.4...2.8.0

2.7.4

What's Changed

New Contributors

Full Changelog: https://github.com/google-gemini-php/client/compare/2.7.3...2.7.4

2.7.2

What's Changed

New Contributors

Full Changelog: https://github.com/google-gemini-php/client/compare/2.7.1...2.7.2

2.7.0

What's Changed

New Contributors

Full Changelog: https://github.com/google-gemini-php/client/compare/2.6.0...2.7.0

2.6.0

What's Changed

New Contributors

Full Changelog: https://github.com/google-gemini-php/client/compare/2.5.0...2.6.0

2.5.0
2.3.1

What's Changed

New Contributors

Full Changelog: https://github.com/google-gemini-php/client/compare/2.3.0...2.3.1

2.2.0

What's Changed

New Contributors

Full Changelog: https://github.com/google-gemini-php/client/compare/2.1.2...2.2.0

2.1.2

What's Changed

New Contributors

Full Changelog: https://github.com/google-gemini-php/client/compare/2.1.1...2.1.2

2.1.1

What's Changed

Full Changelog: https://github.com/google-gemini-php/client/compare/2.1.0...2.1.1

2.0.0

What's Changed

Please refer to updagrade guide for more information.

New Contributors

Full Changelog: https://github.com/google-gemini-php/client/compare/1.0.15...2.0.0

1.0.7-beta

What's Changed

New Contributors

Full Changelog: https://github.com/google-gemini-php/client/compare/1.0.14...1.0.15

What's Changed

New Contributors

Full Changelog: https://github.com/google-gemini-php/client/compare/1.0.6-beta...1.0.7-beta

1.0.15

What's Changed

New Contributors

Full Changelog: https://github.com/google-gemini-php/client/compare/1.0.14...1.0.15

1.0.6-beta

What's Changed

Full Changelog: https://github.com/google-gemini-php/client/compare/1.0.5-beta...1.0.6-beta

1.0.14

What's Changed

Full Changelog: https://github.com/google-gemini-php/client/compare/1.0.13...1.0.14

1.0.5-beta

What's Changed

Full Changelog: https://github.com/google-gemini-php/client/compare/1.0.4-beta...1.0.5-beta

1.0.13

What's Changed

Full Changelog: https://github.com/google-gemini-php/client/compare/1.0.12...1.0.13

1.0.3-beta

What's Changed

Full Changelog: https://github.com/google-gemini-php/client/compare/1.0.2-beta...1.0.3-beta

1.0.11

What's Changed

Full Changelog: https://github.com/google-gemini-php/client/compare/1.0.10...1.0.11

1.0.2-beta
1.0.9

What's Changed

New Contributors

Full Changelog: https://github.com/google-gemini-php/client/compare/1.0.8...1.0.9

1.0.8

What's Changed

New Contributors

Full Changelog: https://github.com/google-gemini-php/client/compare/1.0.7...1.0.8

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels
wazza/laravel-db-encryption
hokny/laravel-generator
vonsogt/backup
jengo/queues
jeremykenedy/laravel-observability
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums