{"id":25663656,"url":"https://github.com/bowphp/openapi","last_synced_at":"2026-04-17T13:04:29.223Z","repository":{"id":172800717,"uuid":"649690949","full_name":"bowphp/openapi","owner":"bowphp","description":null,"archived":false,"fork":false,"pushed_at":"2023-06-21T23:25:29.000Z","size":28,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-29T14:22:05.425Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bowphp.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-06-05T12:30:42.000Z","updated_at":"2023-11-14T05:36:34.000Z","dependencies_parsed_at":"2023-09-26T08:20:31.696Z","dependency_job_id":null,"html_url":"https://github.com/bowphp/openapi","commit_stats":{"total_commits":5,"total_committers":2,"mean_commits":2.5,"dds":"0.19999999999999996","last_synced_commit":"9326ab9bf53de808191b65bfd6a6082dbf1baa55"},"previous_names":["bowphp/openapi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bowphp%2Fopenapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bowphp%2Fopenapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bowphp%2Fopenapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bowphp%2Fopenapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bowphp","download_url":"https://codeload.github.com/bowphp/openapi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240420990,"owners_count":19798505,"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-02-24T05:18:04.366Z","updated_at":"2026-04-17T13:04:29.168Z","avatar_url":"https://github.com/bowphp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n## OpenAI Integration for BowPHP\n\n**OpenAI Integration is a powerful AI tool for your BowPHP application. It enables you to integrate and leverage OpenAI's language model capabilities in your project.**\n\nFeatures\n\n1. [ ] Seamless integration with OpenAI\n2. [ ] Provides an easy-to-use PHP API for the OpenAI API\n3. [ ] Configurable via BowPHP's configuration system\n4. [ ] Requirements\n\nPHP 8.1 and above\nBowphp 5.x\nInstallation\n\nTo include this package via Composer, run the following command:\n\n```bash\ncomposer require bowphp/bow-openai\n```\nOnce the installation is complete, include the service provider within app/Kernel.php.\n\n\n```php\npublic function configurations(): array\n{\n    return [\n        ...\n        App\\Configurations\\OpenAIConfiguration::class,\n    ];\n}\n```\n\n## Configuration\n\n**Setup the OpenAI integration in config/openai.php config.**\n\nAvailable options\nOption\tDescription\napi_key\tYour OpenAI API key.\nUsage\n\nYou can use the OpenAI service in your application like this:\n\n```php\n$response = $this-\u003econtainer-\u003emake('openai.completions', [\n    'Translate these English words to French: \"{words}\"',\n    [\n        'max_tokens' =\u003e 60,\n    ]\n]);\n```\n## Example\n\n```php\nnamespace App\\Controllers;\n\nuse Bow\\Controller\\Controller;\n\nclass TranslateController extends Controller\n{\n    public function translate()\n    {\n        $response = $this-\u003econtainer-\u003emake('openai.completions', [\n            'Translate these English words to French: \"{words}\"',\n            [\n                'max_tokens' =\u003e 60,\n            ]\n        ]);\n\n        return $response;\n    }\n}\n```\n\n## Maintainers\n\n* gnakale\n\nThank's collaborators\n\nContact\n\n* gnakalehacker@gmail.com - @gnakalehacker01\n\n1. [ ] Please, if there is a bug in the project, contact me by email or leave me a message on Slack. or join us on Slack\nContributing\n\n\n* **Contributing**\n* Fork it\n* Create your feature branch (git checkout -b my-new-feature)\n* Commit your changes (git commit -am 'Add some feature')\n* Push to the branch (git push origin my-new-feature)\n* Create new Pull Request\n* License\n\n* OpenAI Integration for BowPHP is open-sourced software licensed under the MIT license.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbowphp%2Fopenapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbowphp%2Fopenapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbowphp%2Fopenapi/lists"}