Help Center> Content Moderation> SDK Reference> Using the PHP SDK> Importing a PHP SDK into a PHP Environment

Importing a PHP SDK into a PHP Environment

  1. On the Content Moderation SDKs page, download and decompress the Content Moderation PHP SDK. The structure and content of the decompressed package are described as follows:
    ├── php
    │   ├── data                                # Sample image
    │   ├── moderation_sdk                      # Content Moderation SDK code
    │   │   ├── ais.py                         # Constant configuration of Content Moderation
    │   │   ├── moderation_image.py            # Image Moderation SDK code
    │   │   ├── signer.py                                     
    │   ├── image_moderation_token_demo.php     # Image Moderation AK/SK demo
    │   ├── image_moderation_aksk_demo.php      # Image Moderation token demo
  2. On the PhpStorm page, choose File > Open File or Project select the path for storing the decompressed SDK package, and import the SDK package. See Figure 1.
    Figure 1 Project directory after importing the SDK