PHP code example of toniperic / oib

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

    

toniperic / oib example snippets


Oib::validate('foo'); // false
Oib::validate(71481280786); // true

Oib::validate(array(71481280786, 64217529143, 'foo'));

array(3) {              
  ["71481280786"] => bool(true)            
  ["64217529143"] => bool(true)            
  ["foo"] => bool(false)           
}