PHP code example of malantonio / dewey

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

    

malantonio / dewey example snippets


$drawing = Dewey::calculateRange("74*");
// returns `array("740", "750")`

var_dump(Dewey::compare("741.4372 A123x", "750", "<"));
// bool(true)

var_dump(Dewey::parseCallNumber("741.4372 A123x"));
// object(Dewey\CallNumber)#2 (3) {
//  ["callNumber":protected]=>
//  string(7) "741.4372"
//  ["cutter":protected]=>
//  string(5) "A123x"
//  ["additional":protected]=>
//  string(0) ""
// }