diff --git a/docs/libraries/php/v2.0.0/index.mdx b/docs/libraries/php/v2.0.0/index.mdx index f5cbbfa..f9f6d9f 100644 --- a/docs/libraries/php/v2.0.0/index.mdx +++ b/docs/libraries/php/v2.0.0/index.mdx @@ -5,8 +5,11 @@ To be able to use and test payment gateway you need to have **Client ID** and ** # Installation To install PHP SDK, you need to install `tatrapayplus/tatrapayplus_api_client` library via composer.\ -Inside your `composer.json` file for your project, add new requirement: +You can add requirement from command line by running:\ +`composer require tatrapayplus/tatrapayplus_api_client=^2.0` + +Alternatively, inside your `composer.json` file for your project, add new requirement: ```json { "name": "project name", @@ -18,7 +21,6 @@ Inside your `composer.json` file for your project, add new requirement: // ... } ``` - Afterwards, run command `composer install` to install new dependency. # Client initialization diff --git a/i18n/sk/docusaurus-plugin-content-docs/current/libraries/php/v2.0.0/index.mdx b/i18n/sk/docusaurus-plugin-content-docs/current/libraries/php/v2.0.0/index.mdx index 40d9d2d..a96a6e4 100644 --- a/i18n/sk/docusaurus-plugin-content-docs/current/libraries/php/v2.0.0/index.mdx +++ b/i18n/sk/docusaurus-plugin-content-docs/current/libraries/php/v2.0.0/index.mdx @@ -4,9 +4,12 @@ Aby ste mohli používať a testovať platobnú bránu, potrebujete **Client ID* # Inštalácia -Na inštaláciu PHP SDK je potrebné nainštalovať `tatrapayplus/tatrapayplus_api_client` cez composer.\ -Do súboru `composer.json` pre váš projekt pridajte novú požiadavku: +Pre inštaláciu PHP SDK je potrebné nainštalovať balík `tatrapayplus/tatrapayplus_api_client` cez composer.\ +Pridanie balíka vykonáte spustením príkazu:\ +`composer require tatrapayplus/tatrapayplus_api_client=^2.0` + +Alternatívne môžete do súboru `composer.json` pre váš projekt pridať novú požiadavku: ```json { "name": "nazov projektu", @@ -18,7 +21,6 @@ Do súboru `composer.json` pre váš projekt pridajte novú požiadavku: // ... } ``` - Následne spustite príkaz `composer install` pre inštaláciu balíka. # Vytvorenie API klienta