Skip to content

Commit 7349599

Browse files
committed
Update README.md
1 parent 98eec3b commit 7349599

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ composer require scriptotek/marc dev-master
2222
## Reading records
2323

2424
Records are loaded into a `Collection` object using
25-
`Collection::fromFile` or `Collection::fromString`,
25+
`Collection::frrcle` or `Collection::fromStringString`,
2626
which autodetects if the data is Binary MARC or XML:
2727

2828
```php
@@ -61,7 +61,7 @@ syntax provided by the [php-marc-spec package](https://github.com/MARCspec/php-m
6161
```php
6262
use Scriptotek\Marc\Collection;
6363

64-
$collection = Collection::from($someMarcDataOrFile);
64+
$collection = Collection::fromFile($someMarcFile);
6565

6666
foreach ($collection->records as $record) {
6767
echo $record->get('250$a');
@@ -94,7 +94,7 @@ for presentation purpose, like so:
9494
```php
9595
use Scriptotek\Marc\Record;
9696

97-
$record = Record::from('<?xml version="1.0" encoding="UTF-8" ?>
97+
$record = Record::fromString('<?xml version="1.0" encoding="UTF-8" ?>
9898
<record xmlns="""http://www.loc.gov/MARC21/slim">
9999
<leader>99999cam a2299999 u 4500</leader>
100100
<controlfield tag="001">98218834x</controlfield>

0 commit comments

Comments
 (0)