Download the PHP package ck/php-marcspec without Composer
On this page you can find all versions of the php package ck/php-marcspec. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package php-marcspec
PHP-MARCspec
PHP MARCspec parser and validator.
For currently supported version of MARCspec - A common MARC record path language see http://marcspec.github.io/ .
Installation
Installation can be done by using composer. Just run
PHP-MARCspec requires PHP 7.4 or later.
Usage
ArrayAccess vs. Methods
MARCspec can be accessed like an immutable array with the following offsets or with its correponding methods (see source code for documentation of all methods).
Instances of MARCspec
| offset | method get | method set | type |
|---|---|---|---|
| field | getField | setField | Field |
| subfields | getSubfields | addSubfields | array[Subfield] |
| [subfield tag] | getSubfield | array[Subfield] | |
| indicator | getIndicator | setIndicator | Indicator |
Instances of Field
| offset | method get | method set | type |
|---|---|---|---|
| tag | getTag | string | |
| charStart | getCharStart | setCharStart | int |
| charEnd | getCharEnd | setCharEnd | int |
| charLength | getCharLength | int | |
| indexStart | getIndexStart | setIndexStart | int |
| indexEnd | getIndexEnd | setIndexEnd | int |
| indexLength | getIndexLength | int | |
| subSpecs | getSubSpecs | addSubSpecs | array[SubSpec]|array[array[SubSpec]] |
Instances of Subfield
| offset | method get | method set | type |
|---|---|---|---|
| tag | getTag | string | |
| charStart | getCharStart | setCharStart | int |
| charEnd | getCharEnd | setCharEnd | int |
| charLength | getCharLength | int | |
| indexStart | getIndexStart | setIndexStart | int |
| indexEnd | getIndexEnd | setIndexEnd | int |
| indexLength | getIndexLength | int | |
| subSpecs | getSubSpecs | addSubSpecs | array[SubSpec]|array[array[SubSpec]] |
Instances of Indicator
| offset | method get | method set | type |
|---|---|---|---|
| position | getPos | string | |
| subSpecs | getSubSpecs | addSubSpecs | array[SubSpec]|array[array[SubSpec]] |
Instances of ComparisonString
| offset | method get | type |
|---|---|---|
| raw | getRaw | string |
| comparable | getComprable | string |
Instances of SubSpec
| offset | method get | type |
|---|---|---|
| leftSubTerm | getLeftSubTerm | MARCspec|ComparisonString |
| operator | getOperator | string |
| rightSubTerm | getRightSubTerm | MARCspec|ComparisonString |
All versions of php-marcspec with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.6
The package ck/php-marcspec contains the following files
Loading the files please wait ...