README.md
34 lines
| 1 | # tiktok-api-php-sdk |
| 2 | |
| 3 | This repository contains the open source PHP SDK that allows you to access the TikTok API from your PHP app. |
| 4 | |
| 5 | ## Installation |
| 6 | |
| 7 | ### Composer |
| 8 | |
| 9 | Run this command: |
| 10 | |
| 11 | ``` |
| 12 | composer require jstolpe/tiktok-api-php-sdk |
| 13 | ``` |
| 14 | |
| 15 | Require the the autoloader. |
| 16 | |
| 17 | ```php |
| 18 | require_once __DIR__ . '/vendor/autoload.php'; // change path as needed |
| 19 | ``` |
| 20 | |
| 21 | ### No Composer |
| 22 | |
| 23 | Get the repository |
| 24 | |
| 25 | ``` |
| 26 | git clone git@github.com:jstolpe/tiktok-api-php-sdk.git |
| 27 | ``` |
| 28 | |
| 29 | Require the custom autoloader. |
| 30 | |
| 31 | ```php |
| 32 | require_once '/tiktok-api-php-sdk/src/tiktok/autoload.php'; // change path as needed |
| 33 | ``` |
| 34 |