PHP code example of researchsquare / exposure

1. Go to this page and download the library: Download researchsquare/exposure library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

researchsquare / exposure example snippets


if (Exposure\Feature::isEnabled('feature-name')) {
    // feature specific logic.
}



use Exposure;

// $features is an array of features.
Exposure\Feature::defineFeatures($features);

// $context is an instance of Feature\Context.
Exposure\Feature::setContext($context);