{"id":22974140,"url":"https://github.com/diversen/gpt-translate","last_synced_at":"2025-06-15T00:33:31.513Z","repository":{"id":149848563,"uuid":"621934877","full_name":"diversen/gpt-translate","owner":"diversen","description":"An example on how to translate long documents using GPT. ","archived":false,"fork":false,"pushed_at":"2023-10-17T20:04:08.000Z","size":303,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-06T14:58:12.829Z","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/diversen.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-03-31T17:58:06.000Z","updated_at":"2023-08-26T14:24:32.000Z","dependencies_parsed_at":"2023-10-17T12:18:11.783Z","dependency_job_id":null,"html_url":"https://github.com/diversen/gpt-translate","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/diversen/gpt-translate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diversen%2Fgpt-translate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diversen%2Fgpt-translate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diversen%2Fgpt-translate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diversen%2Fgpt-translate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diversen","download_url":"https://codeload.github.com/diversen/gpt-translate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diversen%2Fgpt-translate/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259905403,"owners_count":22929916,"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-12-15T00:00:15.661Z","updated_at":"2025-06-15T00:33:31.488Z","avatar_url":"https://github.com/diversen.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# README\n\nThis is minimal howto about translating a long text using GPT using php.\nIt may translate markdown texts, e.g. a novel, from one language to another. \nIt does the job quite well, but in any case you will need to edit\nthe translated document if you want a translation of high quality.\n\nThe auto-translation may serve as a good starting point. \n\nIt is only tested using markdown text. It will split a document into small\nparts based on double lines. And then translate one section at a time. \n\n## Usage\n\nThis example will make an effort to translate the first the part of the danish novel \n'Lykke Per' (A Fortunate Man) into english. \n\n    git clone git@github.com:diversen/gpt-translate.git\n    cd gpt-translate\n    composer install\n\nYou will need to change the api key in [examples/example_1/index.php](examples/example_1/index.php) \nThen run:\n\n    php examples/example_1/index.php\n\n(There is also a couple of other examples).\n\n## As library\n\n    composer require diversen/gpt-translate\n\nUsage is the same as in [examples/example_1/index.php](examples/example_1/index.php)\n\n## Related\n\nThis repo will try and fetch a URL and turn a html page into markdown: \n\nhttps://github.com/diversen/url-to-markdown\n\n## License\n\nMIT © [Dennis Iversen](https://github.com/diversen)\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiversen%2Fgpt-translate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiversen%2Fgpt-translate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiversen%2Fgpt-translate/lists"}