# Integration

Integration – this is the process of connecting the Cloakify stream directly to your traffic, whether it's for active filtering or passive data collection. For integration, you will need a server (hosting) that supports PHP 5.6+ and PHP extensions php-curl and php-json.

Right after creating a stream, you will be directed to the integration page. You can also access this page by clicking the "Code" button next to the name of each stream in the stream list.

Cloakify supports three types of integration, which differ in technical details and application area:

  • Direct PHP integration using a separate index.php file.
  • Reverse PHP integration by including the filter.php file.
  • JavaScript integration by embedding the HTML <script> tag and an external server.php file.

All three types of integration somehow involve a special PHP file that is associated with the stream in the system. This file interacts with Cloakify servers in real-time and filters traffic, acting as a client in the client-server architecture of Cloakify.

Cloakify PHP files do not contain campaign settings. You can change any stream settings at any time, and these changes will be automatically picked up "on the fly," meaning you don't need to replace PHP files every time you edit the settings.