PHP code example of krvvko_huh / no-numbers-keyboard-library
1. Go to this page and download the library: Download krvvko_huh/no-numbers-keyboard-library 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/ */
krvvko_huh / no-numbers-keyboard-library example snippets
composer
// Create use and an nnkb (NoNumberKeyBoard) object
use KrvvkoHuh\NoNumbersKeyboardLibrary\NoNumbersKB;
$nnkb = new NoNumbersKB();
// Assigning variables to broken keys
$five = $nnkb->five(); // Example Number 5
$nine = $nnkb->nine(); // Example Number 9
// Tests (Everything is passing)
echo $five; // Output: 5
echo "\n";
echo $five + 5; // Output: 10
echo "\n";
echo $five + $nine; // Output: 14
echo "\n";
var_dump($five == 5); // True
var_dump($five == 9); // False