{"id":24199445,"url":"https://github.com/tredmann/php-llm-client","last_synced_at":"2026-02-12T09:33:48.097Z","repository":{"id":271013691,"uuid":"911651025","full_name":"tredmann/php-llm-client","owner":"tredmann","description":"General Client API to access several LLM APIs (OpenAPI, Ollama, Google Gemini)","archived":false,"fork":false,"pushed_at":"2025-01-24T12:43:27.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T10:47:11.399Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tredmann.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-03T14:19:38.000Z","updated_at":"2025-02-14T04:01:34.000Z","dependencies_parsed_at":"2025-01-04T19:41:55.920Z","dependency_job_id":null,"html_url":"https://github.com/tredmann/php-llm-client","commit_stats":null,"previous_names":["tredmann/php-llm-client"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tredmann/php-llm-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tredmann%2Fphp-llm-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tredmann%2Fphp-llm-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tredmann%2Fphp-llm-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tredmann%2Fphp-llm-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tredmann","download_url":"https://codeload.github.com/tredmann/php-llm-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tredmann%2Fphp-llm-client/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263632054,"owners_count":23491529,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-13T20:36:17.118Z","updated_at":"2026-02-12T09:33:43.078Z","avatar_url":"https://github.com/tredmann.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# php-llm-client\nGeneral Client API to easy access to several LLM APIs (OpenAPI, Ollama, Google Gemini)\n\n## Installation\n\n```shell\ncomposer require tredmann/php-llm-client\n```\n\n## Usage\n\n```php\nuse LLM\\Enums\\Type;\nuse LLM\\LLM;\n\n$llm = LLM::make(Type::Ollama);\n\necho $llm-\u003ecompletion(\n    model: 'gemma2:latest',\n    prompt: 'What is the capital of Germany?',\n    temperature: 1.0\n);\n\n// Output: The capital of Germany is **Berlin**.\n```\n\n## Supported Providers/LLMs\n\n* [x] OpenAI (`Type::OpenAI`)\n* [x] OpenAI Legacy Completion (`Type::OpenAILegacy`)\n* [x] Ollama (`Type::Ollama`)\n* [x] Google Gemini (`Type::Gemini`)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftredmann%2Fphp-llm-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftredmann%2Fphp-llm-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftredmann%2Fphp-llm-client/lists"}