PHP code example of snowair / think-hookagent

1. Go to this page and download the library: Download snowair/think-hookagent 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/ */

    

snowair / think-hookagent example snippets


return array(
 'app_init'=>array(
     'Snowair\Think\Behavior\HookAgent',
 ),
)


// s_exists( 'Snowair\Think\Behavior\HookAgent' )) {
    \Snowair\Think\Behavior\HookAgent::add('app_begin','Snowair\\Dotenv\\DotEnv');
}