PHP code example of brunonatali / tools

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

    

brunonatali / tools example snippets


$systemInteraction = new BrunoNatali\Tools\SystemInteraction();

// Alternatively you can set system folder by hand

$mySystemFolder = ['/home/user/myApp/', '/var/myfolder/myApp/'];
$systemInteraction = new BrunoNatali\Tools\SystemInteraction($mySystemFolder);

$systemInteraction->setAppInitiated("MyAppName" [,bool $handleShutDown]): bool;

$systemInteraction->getAppInitiated(string $appName): bool;

$systemInteraction->setFunctionOnAppAborted(callable $func): bool;

$systemInteraction->setAborted(void);