PHP code example of onexcrm / sysinfo

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

    

onexcrm / sysinfo example snippets


Onex\Sysinfo\OnexSysinfoServiceProvider::class,

'OnexSysinfo' => Onex\Sysinfo\Sysinfo\SysinfoClassFacade::class,

php artisan vendor:publish --provider="Onex\Sysinfo\OnexSysinfoServiceProvider" --force

Ex: http://your-website/onex/check-sysinfo

Ex: http://localhost:8000/onex/check-sysinfo

>> Ex1: OnexSysinfo::getSystemInfo();

>> Ex2: OnexSysinfo::getAllPaths();

>> Ex3: OnexSysinfo::isStorageWritable();

>> Ex4: OnexSysinfo::isCacheWritable();

>> Ex5: OnexSysinfo::getAllEnvs();

>> Ex6: OnexSysinfo::getServerInfo();

>> Ex7: OnexSysinfo::howManyTablesInDB();

>> Ex8: OnexSysinfo::getAllTablesName();

>> Ex9: OnexSysinfo::getEnabledPhpExtensions();

/** If you want to disable the route then make it false */
'is_route_enabled' => true,

/** If you want to change the route prefix */
'route_prefix' => 'onex',

/** If you want to change the route name or path */
'route_name' => 'check-sysinfo',

/** If you want to enable the securiry for access the system information
 *  Then make it ('is_enabled') true and also you can set login-id and password 
 */
'authentication' => [
    'is_enabled' => env('ONEX_SYSINFO_AUTH_ENABLED', false),
    'login_id' => env('ONEX_SYSINFO_ID', 'onexadmin'),
    'password' => env('ONEX_SYSINFO_PASSWORD', 'onexpassword')
]