{"id":13404773,"url":"https://github.com/dejurin/php-google-translate-for-free","last_synced_at":"2026-01-16T00:40:45.245Z","repository":{"id":56964933,"uuid":"123622379","full_name":"dejurin/php-google-translate-for-free","owner":"dejurin","description":"Library for free use Google Translator. With attempts connecting on failure and array support.","archived":false,"fork":false,"pushed_at":"2024-09-29T17:47:00.000Z","size":47,"stargazers_count":134,"open_issues_count":0,"forks_count":48,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-10-20T09:18:40.360Z","etag":null,"topics":["detect-language","google-translate","google-translator","language-detection","php","translate","translation","translator"],"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/dejurin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-03-02T19:36:10.000Z","updated_at":"2024-09-29T17:47:03.000Z","dependencies_parsed_at":"2024-06-18T15:33:24.589Z","dependency_job_id":"e80e1cde-5fdb-4e6d-975d-1d45a214d0d0","html_url":"https://github.com/dejurin/php-google-translate-for-free","commit_stats":{"total_commits":32,"total_committers":1,"mean_commits":32.0,"dds":0.0,"last_synced_commit":"05ceba0a0415033057a978e66d235c46130ef088"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dejurin%2Fphp-google-translate-for-free","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dejurin%2Fphp-google-translate-for-free/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dejurin%2Fphp-google-translate-for-free/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dejurin%2Fphp-google-translate-for-free/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dejurin","download_url":"https://codeload.github.com/dejurin/php-google-translate-for-free/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243554060,"owners_count":20309859,"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":["detect-language","google-translate","google-translator","language-detection","php","translate","translation","translator"],"created_at":"2024-07-30T19:01:51.194Z","updated_at":"2026-01-16T00:40:45.232Z","avatar_url":"https://github.com/dejurin.png","language":"PHP","funding_links":["https://buymeacoffee.com/deyurii"],"categories":["PHP"],"sub_categories":[],"readme":"# GoogleTranslateForFree\nPackagist: https://packagist.org/packages/dejurin/php-google-translate-for-free\n\n![version](https://img.shields.io/github/release/dejurin/php-google-translate-for-free.svg?style=flat)\n[![downloads](https://img.shields.io/packagist/dt/dejurin/php-google-translate-for-free.svg?style=flat)](https://packagist.org/packages/dejurin/php-google-translate-for-free)\n[![StyleCI](https://github.styleci.io/repos/123622379/shield?branch=master)](https://github.styleci.io/repos/123622379)\n\nLibrary for free use Google Translator. With attempts connecting on failure and array support.\n\n---\n\n[![\"Buy Me A Coffee\"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://buymeacoffee.com/deyurii)\n\n---\n\n## Installation\n\nInstall this package via [Composer](https://getcomposer.org/).\n\n```\ncomposer require dejurin/php-google-translate-for-free\n```\n\nOr edit your project's `composer.json` to require `dejurin/php-google-translate-for-free` and then run `composer update`.\n\n```json\n\"require\": {\n    \"dejurin/php-google-translate-for-free\": \"^1.0\"\n}\n```\n\n## Usage\n\n```php\nrequire_once ('vendor/autoload.php');\nuse \\Dejurin\\GoogleTranslateForFree;\n```\n\n## Single\n\n```php\n$source = 'en';\n$target = 'ro';\n$attempts = 5;\n$text = 'Hello';\n\n$tr = new GoogleTranslateForFree();\n$result = $tr-\u003etranslate($source, $target, $text, $attempts);\n\nvar_dump($result); \n\n/* \n\tstring(24) \"Salut\"\n*/\n```\n\n## Array\n\n```php\n$source = 'en';\n$target = 'ro';\n$attempts = 5;\n$arr = ['hello','world'];\n\n$tr = new GoogleTranslateForFree();\n$result = $tr-\u003etranslate($source, $target, $arr, $attempts);\n\nvar_dump($result); \n\n/*\n\tarray(2) {\n\t  [0]=\u003e\n\t  string(24) \"salut\"\n\t  [1]=\u003e\n\t  string(6) \"lume\"\n\t}\n\n*/\n```\n\n### License ###\nThis source code is distributed under [MIT](https://choosealicense.com/licenses/mit/) license.\n\n___\n\n## Sponsors ##\n### https://currencyrate.today ###\n### https://moneyconvert.net/ ### \n### https://co-w.io/ ###\n### https://co-in.io/ ###\n### https://fx-w.io/ ###\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdejurin%2Fphp-google-translate-for-free","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdejurin%2Fphp-google-translate-for-free","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdejurin%2Fphp-google-translate-for-free/lists"}