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.
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.No public signatures changed, but a few behaviors did:
ErrorException instead of TransporterException, like regular requests (#187).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).ValueError messages of text() and parts() now end with the finish or block reason (#189).Full Changelog: https://github.com/google-gemini-php/client/compare/2.7.4...2.8.0
Full Changelog: https://github.com/google-gemini-php/client/compare/2.7.3...2.7.4
Full Changelog: https://github.com/google-gemini-php/client/compare/2.7.2...2.7.3
Full Changelog: https://github.com/google-gemini-php/client/compare/2.7.1...2.7.2
Full Changelog: https://github.com/google-gemini-php/client/compare/2.7.0...2.7.1
Full Changelog: https://github.com/google-gemini-php/client/compare/2.6.0...2.7.0
Full Changelog: https://github.com/google-gemini-php/client/compare/2.5.0...2.6.0
thoughts bool to indicate thoughts by @Plytas in https://github.com/google-gemini-php/client/pull/131Full Changelog: https://github.com/google-gemini-php/client/compare/2.4.0...2.5.0
urlContext support by @Plytas in https://github.com/google-gemini-php/client/pull/128Full Changelog: https://github.com/google-gemini-php/client/compare/2.3.1...2.4.0
Full Changelog: https://github.com/google-gemini-php/client/compare/2.3.0...2.3.1
Full Changelog: https://github.com/google-gemini-php/client/compare/2.2.0...2.3.0
Full Changelog: https://github.com/google-gemini-php/client/compare/2.1.2...2.2.0
Full Changelog: https://github.com/google-gemini-php/client/compare/2.1.1...2.1.2
Full Changelog: https://github.com/google-gemini-php/client/compare/2.1.0...2.1.1
Full Changelog: https://github.com/google-gemini-php/client/compare/2.0.0...2.1.0
Please refer to updagrade guide for more information.
ModelType enum by @Plytas in https://github.com/google-gemini-php/client/pull/99PromptFeedback by @200-0K in https://github.com/google-gemini-php/client/pull/80Full Changelog: https://github.com/google-gemini-php/client/compare/1.0.15...2.0.0
GenerativeModelTestResource with GenerativeModel by @Plytas in https://github.com/google-gemini-php/client/pull/57Full Changelog: https://github.com/google-gemini-php/client/compare/1.0.14...1.0.15
GenerativeModelTestResource with GenerativeModel by @Plytas in https://github.com/google-gemini-php/client/pull/57$outputDimensionality param to embedContent methodFull Changelog: https://github.com/google-gemini-php/client/compare/1.0.6-beta...1.0.7-beta
GenerativeModelTestResource with GenerativeModel by @Plytas in https://github.com/google-gemini-php/client/pull/57Full Changelog: https://github.com/google-gemini-php/client/compare/1.0.14...1.0.15
CitationSource by @aydinfatih in https://github.com/google-gemini-php/client/pull/55Full Changelog: https://github.com/google-gemini-php/client/compare/1.0.5-beta...1.0.6-beta
CitationSource by @aydinfatih in https://github.com/google-gemini-php/client/pull/55Full Changelog: https://github.com/google-gemini-php/client/compare/1.0.13...1.0.14
CitationSource by @aydinfatih in https://github.com/google-gemini-php/client/pull/52Full Changelog: https://github.com/google-gemini-php/client/compare/1.0.4-beta...1.0.5-beta
CitationSource by @aydinfatih in https://github.com/google-gemini-php/client/pull/52Full Changelog: https://github.com/google-gemini-php/client/compare/1.0.12...1.0.13
Full Changelog: https://github.com/google-gemini-php/client/compare/1.0.3-beta...1.0.4-beta
Full Changelog: https://github.com/google-gemini-php/client/compare/1.0.11...1.0.12
$finishReason parameter in Candidate nullable by @aydinfatih in https://github.com/google-gemini-php/client/pull/46Full Changelog: https://github.com/google-gemini-php/client/compare/1.0.2-beta...1.0.3-beta
$finishReason parameter in Candidate nullable by @aydinfatih in https://github.com/google-gemini-php/client/pull/46Full Changelog: https://github.com/google-gemini-php/client/compare/1.0.10...1.0.11
Full Changelog: https://github.com/google-gemini-php/client/compare/1.0.1-beta...1.0.2-beta
Full Changelog: https://github.com/google-gemini-php/client/compare/1.0.9...1.0.10
Full Changelog: https://github.com/google-gemini-php/client/compare/1.0.8...1.0.9
Full Changelog: https://github.com/google-gemini-php/client/compare/1.0.7...1.0.8
How can I help you explore Laravel packages today?