{"id":17696791,"url":"https://github.com/datashaman/laravel-translators","last_synced_at":"2025-08-21T15:09:32.284Z","repository":{"id":253505193,"uuid":"843705632","full_name":"datashaman/laravel-translators","owner":"datashaman","description":"Laravel manager for translators","archived":false,"fork":false,"pushed_at":"2025-07-28T18:18:08.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-28T20:26:53.075Z","etag":null,"topics":["azure-translator","deepl-translator","google-translate","laravel","microsoft-translator","openai","translation-api"],"latest_commit_sha":null,"homepage":"","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/datashaman.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,"zenodo":null},"funding":{"github":"datashaman"}},"created_at":"2024-08-17T06:58:08.000Z","updated_at":"2025-07-28T18:18:06.000Z","dependencies_parsed_at":"2024-08-17T08:38:39.286Z","dependency_job_id":"8047bb26-717c-41da-ada0-f7479a602af8","html_url":"https://github.com/datashaman/laravel-translators","commit_stats":null,"previous_names":["datashaman/laravel-translators"],"tags_count":0,"template":false,"template_full_name":"spatie/package-skeleton-laravel","purl":"pkg:github/datashaman/laravel-translators","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datashaman%2Flaravel-translators","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datashaman%2Flaravel-translators/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datashaman%2Flaravel-translators/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datashaman%2Flaravel-translators/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datashaman","download_url":"https://codeload.github.com/datashaman/laravel-translators/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datashaman%2Flaravel-translators/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271500013,"owners_count":24770370,"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","status":"online","status_checked_at":"2025-08-21T02:00:08.990Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["azure-translator","deepl-translator","google-translate","laravel","microsoft-translator","openai","translation-api"],"created_at":"2024-10-24T14:45:21.125Z","updated_at":"2025-08-21T15:09:32.252Z","avatar_url":"https://github.com/datashaman.png","language":"PHP","funding_links":["https://github.com/sponsors/datashaman"],"categories":[],"sub_categories":[],"readme":"# laravel-translators\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/datashaman/laravel-translators.svg?style=flat-square)](https://packagist.org/packages/datashaman/laravel-translators)\n[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/datashaman/laravel-translators/run-tests.yml?branch=main\u0026label=tests\u0026style=flat-square)](https://github.com/datashaman/laravel-translators/actions?query=workflow%3Arun-tests+branch%3Amain)\n[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/datashaman/laravel-translators/fix-php-code-style-issues.yml?branch=main\u0026label=code%20style\u0026style=flat-square)](https://github.com/datashaman/laravel-translators/actions?query=workflow%3A\"Fix+PHP+code+style+issues\"+branch%3Amain)\n[![Total Downloads](https://img.shields.io/packagist/dt/datashaman/laravel-translators.svg?style=flat-square)](https://packagist.org/packages/datashaman/laravel-translators)\n\nLaravel manager for translators. WIP.\n\nIncludes drivers for:\n\n- [Azure AI Translator](https://learn.microsoft.com/en-us/azure/ai-services/translator/)\n- [DeepL](https://www.deepl.com/en/pro-api)\n- [Google Translate](https://cloud.google.com/translate/docs/) - v2 and v3.\n- [OpenAI](https://platform.openai.com/)\n\n## Installation\n\nThe _OpenAI_ driver is the default, which can be changed easily.\n\nYou must still install the package with the driver you want to use:\n\n```bash\ncomposer require datashaman/laravel-translators openai-php/client // for OpenAI\ncomposer require datashaman/laravel-translators google/cloud-translate // for Google Translate\ncomposer require datashaman/laravel-translators deeplcom/deepl-php // for DeepL Translator\n```\n\nThe _Azure AI Translator_ driver uses the REST API, so no additional packages are required:\n\n```bash\ncomposer require datashaman/laravel-translators\n```\n\nYou can publish the config file if you wish to customize it in some way:\n\n```bash\nphp artisan vendor:publish --tag=\"laravel-translators-config\"\n```\n\nThis is not necessary if you are using the default configuration.\n\n## Usage\n\n```php\nuse Datashaman\\LaravelTranslators\\Facades\\Translator;\n\n// Default is OpenAI\n$translations = Translator::translate(['Hello, world!'], 'fr'); // [\"Bonjour, monde !\"]\n\n$translations = Translator::driver('azure')-\u003etranslate(['Hello, World!'], 'fr'); // [\"Salut tout le monde!\"]\n\n$translations = Translator::driver('deepl')-\u003etranslate(['Hello, World!'], 'fr'); // [\"Bonjour à tous !\"]\n\n$translations = Translator::driver('google-v2')-\u003etranslate(['Hello, World!'], 'fr'); // [\"Bonjour le monde!\"]\n\n$translations = Translator::driver('google-v3')-\u003etranslate(['Hello, World!'], 'fr'); // [\"Bonjour le monde!\"]\n```\n\n\nThe default driver is _OpenAI_. You can change the default driver (set `TRANSLATOR_DRIVER` in your `.env` file).\n\nThere are various configuration requirements per service to setup before they can be used. There is an [example .env](.example.env) file with all the configuration options. You are also free to modify the config and environment variables (once config is published) to suit your own schema.\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- [Datashaman](https://github.com/datashaman)\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%2Fdatashaman%2Flaravel-translators","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatashaman%2Flaravel-translators","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatashaman%2Flaravel-translators/lists"}