{"id":20754347,"url":"https://github.com/artisan-build/llm","last_synced_at":"2026-01-11T01:29:40.397Z","repository":{"id":243055564,"uuid":"811316994","full_name":"artisan-build/llm","owner":"artisan-build","description":"Provides Laravel integrations for various LLM providers","archived":false,"fork":false,"pushed_at":"2024-06-06T21:50:47.000Z","size":25,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T14:23:23.964Z","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/artisan-build.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","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},"funding":{"github":"Artisan Build"}},"created_at":"2024-06-06T11:12:17.000Z","updated_at":"2025-02-27T05:35:21.000Z","dependencies_parsed_at":"2024-06-06T13:51:07.125Z","dependency_job_id":null,"html_url":"https://github.com/artisan-build/llm","commit_stats":null,"previous_names":["artisan-build/llm"],"tags_count":0,"template":false,"template_full_name":"spatie/package-skeleton-laravel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artisan-build%2Fllm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artisan-build%2Fllm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artisan-build%2Fllm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artisan-build%2Fllm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/artisan-build","download_url":"https://codeload.github.com/artisan-build/llm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246419856,"owners_count":20774166,"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":"2024-11-17T09:17:12.184Z","updated_at":"2026-01-11T01:29:39.197Z","avatar_url":"https://github.com/artisan-build.png","language":"PHP","funding_links":["https://github.com/sponsors/Artisan Build","https://github.com/sponsors/ProjektGopher"],"categories":["Laravel \u0026 Framework Integrations","Natural Language Processing"],"sub_categories":["LLM \u0026 AI clients","Laravel Integrations"],"readme":"# A package that wraps several LLM providers for Laravel\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/artisan-build/llm.svg?style=flat-square)](https://packagist.org/packages/artisan-build/llm)\n[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/artisan-build/llm/run-tests.yml?branch=main\u0026label=tests\u0026style=flat-square)](https://github.com/artisan-build/llm/actions?query=workflow%3Arun-tests+branch%3Amain)\n[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/artisan-build/llm/fix-php-code-style-issues.yml?branch=main\u0026label=code%20style\u0026style=flat-square)](https://github.com/artisan-build/llm/actions?query=workflow%3A\"Fix+PHP+code+style+issues\"+branch%3Amain)\n[![Total Downloads](https://img.shields.io/packagist/dt/artisan-build/llm.svg?style=flat-square)](https://packagist.org/packages/artisan-build/llm)\n\nFirst of all, I want to acknowledge the amazing work that Nuno and Sandro have done managing the openai-php projects\nincluding the Laravel wrapper that this package replaces for us. We wrote this package to meet a few specific needs:\n\n1. We need to allow users to bring their own keys and the way the client is created in the openai-php/laravel package makes that impossible.\n2. We wanted to add hooks before the request is made and after the response is received.\n3. We wanted to simplify the use of Azure and OpenRouter.ai\n\nIf none of those apply to you, then the openai-php/laravel package is a great choice, and you'll get no additional \nbenefit from using this instead.\n\n## Support us\n\nYou can support our open-source work by sponsoring [Len Woodward](https://github.com/sponsors/ProjektGopher). Since \nEd lives in Europe where taxes are a bit more complicated, he doesn't participate in the sponsorship program, but you\nare welcome to buy him a beer if you see him at a conference.\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require artisan-build/llm\n```\n\n\nYou can publish the config file with:\n\n```bash\nphp artisan vendor:publish --tag=\"llm-config\"\n```\n\nThis is the contents of the published config file:\n\n```php\nreturn [\n    'azure' =\u003e [\n        'deployment_id' =\u003e env('AZURE_DEPLOYMENT_ID'),\n        'resource_id' =\u003e env('AZURE_RESOURCE_ID'),\n        'version' =\u003e env('AZURE_VERSION'),\n    ],\n    'openai' =\u003e [\n        'api_key' =\u003e env('OPENAI_API_KEY'),\n        'organization' =\u003e env('OPENAI_ORGANIZATION'),\n    ],\n    'openrouter' =\u003e [\n        'api_key' =\u003e env('OPEN_ROUTER_API_KEY'),\n    ],\n    'request_timeout' =\u003e env('OPENAI_REQUEST_TIMEOUT', 30),\n]\n```\n\n\n## Usage\n\nFor the full documentation, please visit [our documentation site](https://artisan.build/docs/llm)\n\n## Testing\n\n```bash\ncomposer test\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n- [Ed Grosvenor](https://github.com/edgrosvenor)\n- [Len Woodward](https://github.com/projektgopher)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartisan-build%2Fllm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartisan-build%2Fllm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartisan-build%2Fllm/lists"}