### Run Built-in PHP Web Server Source: https://github.com/redbitcz/simpleshop-api-php-sdk/blob/master/README.md Start the PHP built-in web server from the examples directory to test the SDK. Use a different port if 8000 is occupied. ```shell php -S localhost:8000 ``` -------------------------------- ### Install Composer Dependencies Source: https://github.com/redbitcz/simpleshop-api-php-sdk/blob/master/README.md After cloning the repository, run this command to install necessary packages for the SDK to run. ```shell composer install ``` -------------------------------- ### Install SDK via Composer Source: https://github.com/redbitcz/simpleshop-api-php-sdk/blob/master/README.md Recommended method for installing the SDK library into your project using Composer. ```shell composer require redbitcz/simpleshop-api-php-sdk ``` -------------------------------- ### Include Autoloader Source: https://github.com/redbitcz/simpleshop-api-php-sdk/blob/master/README.md Add this line to the beginning of your main PHP file (e.g., index.php) to load the SDK dependencies after installing via Composer. ```php require __DIR__ . '/vendor/autoload.php'; ``` -------------------------------- ### Clone the SDK Repository Source: https://github.com/redbitcz/simpleshop-api-php-sdk/blob/master/README.md Use this command to download the entire SDK repository. Alternatively, download the ZIP archive. ```shell git clone https://github.com/redbitcz/simpleshop-api-php-sdk.git ``` -------------------------------- ### Instantiate SimpleShopApi Object Source: https://github.com/redbitcz/simpleshop-api-php-sdk/blob/master/README.md Create an instance of the SimpleShopApi class using your login and API key. Retrieve these credentials from your SimpleShop API settings. ```php $simpleshop = new \Redbitcz\SimpleShop\Api\SimpleShopApi('login', 'API klíč'); ``` -------------------------------- ### Call an API Method Source: https://github.com/redbitcz/simpleshop-api-php-sdk/blob/master/README.md After creating the API object, you can directly call its methods, such as retrieving an invoice by its ID. ```php $invoice = $simpleshop->getInvoice(12345); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.