Download the PHP package takisrs/biblionet-api-wrapper without Composer

On this page you can find all versions of the php package takisrs/biblionet-api-wrapper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package biblionet-api-wrapper

A wrapper library for biblionet's API

A wrapper library for biblionet's API, written in PHP, to help you fetch books' data easily.

Read more about biblionet and their api

Installation

composer require takisrs/biblionet-api-wrapper

How to use

Fetch a book by id and display some info

Fetch current month's hardcopy books with their contributors and display some info

Examples on how to use the fetch method

You may also combine all the above. ex:

Examples on how to use the filter method

You may also combine all the above.

More Examples

You may check for more examples in the examples folder on this repository.

Documentation

You may read the full documentation here or check the docs bellow.


Class: \takisrs\Biblionet\ApiFetcher

A wrapper class for biblionet's api. This library will help you fetch books' data from biblionet database. It provides some helpful methods that simplify the communication with their api.

Visibility Function
public __construct(string $username, string $password, array $log=array(), integer $requestTimeout=10, integer $resultsPerPage=50) : void
ApiFetcher constructor
public fetch(string $fetchType=1, string/int/array $param1=null, string $param2=null) : \takisrs\Biblionet\ApiFetcher
Fetch books from biblionet's api. You may call with method to fetch data for a specific book, or provide a month to fetch books published in that month. You may also provide two months to fetch books published in that period.
public fill(array $types=array()) : \takisrs\Biblionet\ApiFetcher
Fill with extra data the already fetched items. You may use this method to fetch extra data from biblionet's api for the books that you have fetch with the fetch() method. This method, depending the params, makes extra api requests to the api to fetch the requested data, so it may be slow. Use this method if you want to fetch book's subjects, contributors or companies.
public filter(\string $field, mixed $value, \string $operator='==') : \takisrs\Biblionet\ApiFetcher
Filter the already fetched items. Use this method to narrow down the number of books that have already been fetched depending on specific filters. You may, for example, use this method to keep only the hardcopy books from the fetched items.
public getItems() : Book[] an array of Book objects
Returns the fetched items. Use this method to get all the data that have been fetch from biblionet's api.

Class: \takisrs\Biblionet\Helper

A helper class that provides some static functions.

Visibility Function
public static compare(mixed $var1, mixed $var2, \string $operator) : bool The result of the comparison
Makes a comparison between two variables
public static getPercentage(integer/\int $current, integer/\int $total) : float the percentage
Calculates and return a percentage of completion
public static isCli() : bool
Checks if the script has been called through cli
public static isJson(\string $str) : bool
Checks if a string is json

Class: \takisrs\Biblionet\Logger

A helper class to output logs.

Visibility Function
public __construct(array $show=array()) : void
Constructor.
public disable() : void
Disables the logging
public enable() : void
Enables the logging
public log(\string $type, \string $entity, \string $title, \string $text='', \float $percentage=null) : void
Logs an entry.

Class: \takisrs\Biblionet\Models\Category

The model class of Category

Visibility Function
public __construct(int $id, string $name) : void
category constructor
public getId() : int
get the id of the category
public getName() : string
get the name of the category

Class: \takisrs\Biblionet\Models\Book

The model class of Book

Visibility Function
public __construct(mixed $data) : void
public getAgeFrom() : int
Get the value of ageFrom
public getAgeTo() : int
Get the value of ageTo
public getAlternativeTitle() : string
Get the value of alternativeTitle
public getAvailability() : string
Get the value of availability
public getCategory() : \takisrs\Biblionet\Models\Category
Get the value of category
public getComments() : string
Get the value of comments
public getCompanies() : \takisrs\Biblionet\Models\Company[]
Get the array of Company objs
public getContributors() : \takisrs\Biblionet\Models\Contributor[]
Get the array of Contributor objs
public getCover() : string
Get the value of cover
public getCurrentPublishDate() : mixed
Get the value of currentPublishDate
public getDimensions() : string
Get the value of dimensions
public getEditionNo() : string
Get the value of editionNo
public getFirstPublishDate() : mixed
Get the value of firstPublishDate
public getFuturePublishDate() : mixed
Get the value of futurePublishDate
public getId() : int
Get the value of id
public getImage() : string
Get the value of image
public getIsbn() : string
Get the value of isbn
public getIsbn2() : string
Get the value of isbn2
public getIsbn3() : string
Get the value of isbn3
public getLanguage() : \takisrs\Biblionet\Models\Language
Get the value of language
public getLastUpdated() : \Datetime
Get the value of lastUpdated
public getMultiVolumeTitle() : string
Get the value of multiVolumeTitle
public getOriginalLanguage() : \takisrs\Biblionet\Models\Language
Get the value of originalLanguage
public getOriginalTitle() : string
Get the value of originalTitle
public getPageNo() : int
Get the value of pageNo
public getPlace() : \takisrs\Biblionet\Models\Place
Get the value of place
public getPrice() : float
Get the value of price (euros)
public getPublisher() : \takisrs\Biblionet\Models\Company
Get the value of publisher
public getSeries() : string
Get the value of series
public getSeriesNo() : string
Get mapped to SeriesNo
public getSpecifications() : string
Get the value of specifications
public getSubSeries() : string
Get mapped to SubSeries
public getSubSeriesNo() : string
Get mapped to SubSeriesNo
public getSubjects() : \takisrs\Biblionet\Models\Subject[]
Get the array of Subject objs
public getSubtitle() : string
Get the value of subtitle
public getSummary() : string
Get the value of summary
public getTitle() : string
Get the value of title
public getTranslatedLanguage() : \takisrs\Biblionet\Models\Language
Get the value of translatedLanguage
public getType() : string
Get the value of type
public getVat() : float
Get the value of vat (percentage)
public getVolumeCount() : string
Get the value of volumeCount
public getVolumeNo() : string
Get the value of volumeNo
public getWebAddress() : string
Get the value of webAddress
public getWeight() : int
Get the value of weight (grams)
public getWriter() : \takisrs\Biblionet\Models\Contributor
Get the value of writer
public setCompanies(array $data) : void
Init Book's companies
public setContributors(array $data) : void
Init Book's contributors
public setSubjects(array $data) : void
Init Book's subjects

Class: \takisrs\Biblionet\Models\Company

The model class of Company (ex. publisher)

Visibility Function
public __construct(int $id, string $name, int $typeId=1, string $typeName='Εκδότης', int $order) : void
Company constructor
public getId() : int
Get the id of the category
public getName() : string
Get the name of the category
public getOrder() : int
Get the order of the category
public getTypeId() : int
Get the type id of the category
public getTypeName() : string
Get the type name of the category

Class: \takisrs\Biblionet\Models\Contributor

The model class of Contributor (ex. writer)

Visibility Function
public __construct(int $id, string $name, int $typeId=1, string $typeName='Συγγραφέας', int $order) : void
Contributor constructor
public getId() : int
Get the id of the contributor
public getName() : string
Get the name of the contributor
public getOrder() : int
Get the order of the contributor
public getTypeId() : int
Get the type id of the contributor
public getTypeName() : string
Get the type name of the contributor

Class: \takisrs\Biblionet\Models\Subject

The model class of Subject

Visibility Function
public __construct(int $id, string $name, string $ddc, int $order) : void
Subject constructor
public getDdc() : string
Get the DDC of subject
public getId() : int
Get the id of subject
public getName() : string
Get the name of subject
public getOrder() : int
Get the order of subject

Class: \takisrs\Biblionet\Models\Place

The model class of Place

Visibility Function
public __construct(int $id, string $name) : void
Place constructor
public getId() : int
Get the id of the place
public getName() : string
Get the name of the place

Class: \takisrs\Biblionet\Models\Language

The model class of Language

Visibility Function
public __construct(int $id, string $name) : void
The language constructor
public getId() : int
Get the id of the language
public getName() : string
Get the name of the language

All versions of biblionet-api-wrapper with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package takisrs/biblionet-api-wrapper contains the following files

Loading the files please wait ....