PHP code example of gufy / cpanel-whm

1. Go to this page and download the library: Download gufy/cpanel-whm 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/ */

    

gufy / cpanel-whm example snippets


	'Gufy\CpanelWhm\CpanelWhmServiceProvider',

	

	Route::get('list-accounts',function(){
		$list_accounts = CpanelWhm::listaccts();

		return $list_accounts;
	});

	

	Route::get('list-accounts',function(){
		$list_accounts = CpanelWhm::server('example1')->listaccts();

		return $list_accounts;
	});
shell
	php artisan vendor:publish gufy/cpanel-whm