PHP code example of blendwerk / mnemo

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

    

blendwerk / mnemo example snippets


    
    use Blendwerk\Mnemo\Mnemo;
    
    Mnemo::fromInteger(125704);
      # => "karasu"
    
    Mnemo::toInteger('karasu');
      # => 125704
      
    Mnemo::fromInteger(-173866);
      # => winamote (Negative integers are prefixed with the "wi" syllable.)
    
    Mnemo::isMnemoWord('kazuma');
      # => true
      
    Mnemo::isMnemoWord('richard');
      # => false