PHP code example of repat / commandline-bell

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

    

repat / commandline-bell example snippets


use repat\CommandlineBell;

// flashes screen if possible, otherwise just bell()
CommandlineBell::flash();

// makes a beep sound
CommandlineBell::bell();

// ASCI BEL, see https://en.wikipedia.org/wiki/Bell_character
echo "0x07";