PHP code example of cybersai / ussd-menu

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

    

cybersai / ussd-menu example snippets




use Cybersai\UssdMenu\UssdMenu;

echo UssdMenu::from('Raw Text') // Create a new Instance with that string
    ->lineBreak(2) // Append Double linebreak
    ->line('Here comes a list') // Append new text with linebreak
    ->listing(['Superman', 'Batman', 'IronMan']) // List array using default options
    ->lineBreak() // Append a linebreak
    ->text('Bye'); // Finally Append text;