Help Center/ Content Moderation/ SDK Reference/ Using the PHP SDK/ Preparing a PHP Development Environment
Updated on 2025-07-02 GMT+08:00

Preparing a PHP Development Environment

To use the PHP SDK of Content Moderation, you need to configure the PHP development environment.

  1. Download PHP of a proper version from PHP official website and install it. The php.7.x version is recommended for the Content Moderation SDK. The following uses the PHP 7.0.32 version as an example.
    • The PHP installation directory cannot contain Chinese characters or special characters.
    • In the Windows operating system, if you run the php –v command, the command output indicates that the specified module cannot be found, check whether the extension_dir and include_path parameters in the php.ini file are correctly set.
  1. Download the latest version of PhoStorm from PhoStorm's official website and install it.
  2. Start the PhpStorm development tool and choose File > Settings > Languages & Frameworks > PHP to configure the PHP environment.
  3. Select the PHP path on the top of the page, as shown in Figure 1. Then click Apply.
    Figure 1 Configuring the PHP environment using PhpStorm