Skip to content

uroshekic/cobiss-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cobiss-parser

COBISS parser written in PHP

Requirements

  • PHP 5.4+ (short array syntax support)
  • Httpful [link]
  • php_curl extension enabled

Usage

Check index.php and example.php

Example 1

include 'Cobiss.php';
$c = new Cobiss('CTK');
$r = $c->search('978-0-13-274718-9');
$r = Cobiss::parse($r);
if (count($r) > 0) {
    var_dump($r);
} else {
	print('Not found.');
}

Example 2

include 'Cobiss.php';
if (!isset($_GET['q'])) die('[]');
$query = htmlspecialchars($_GET['q']);
$r = (new Cobiss('Ptuj'))->search($query);
echo json_encode(Cobiss::parse($r), JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);

About

COBISS parser written in PHP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages