PHP code example of foggy / alibaba-query

1. Go to this page and download the library: Download foggy/alibaba-query 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/ */

    

foggy / alibaba-query example snippets


    #!/usr/bin/env php
    
     function is_cli(){
    	return preg_match("/cli/i", php_sapi_name()) ? true : false;
    }
    
    if(!is_cli()){
    	exit('please running it in CLI mode');
    }
    
    AlibabaQuery::init();