[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# PHP client library\n\n| **Note:** Google provides the Cloud Translation API client library for PHP as a single package for both Cloud Translation - Advanced and Cloud Translation - Basic. This page describes how to install the client library for Cloud Translation - Basic. To use the client library for Cloud Translation - Advanced, see the [installation instructions](/translate/docs/reference/libraries/v3/php).\n\n\nThis page provides reference documentation and related resources for the\nCloud Translation PHP client library.\n\n### Installation\n\n\nTo install the client library:\n\n```\ncomposer require google/cloud-translate\n```\n\nUsing the client library\n------------------------\n\nTo use the PHP client library for Cloud Translation - Basic, you must\ninstantiate the Cloud Translation API client as follows: \n\n```php\nuse Google\\Cloud\\Translate\\V2\\TranslateClient;\n```\n\nSee how to\n[translate text](/translate/docs/basic/translating-text#translating_text)\nfor additional usage details."]]