Skip to content

Commit 09f60af

Browse files
committed
update links in readme to new org
moved repo from indieweb to microformats org
1 parent c35ed9a commit 09f60af

File tree

1 file changed

+43
-43
lines changed

1 file changed

+43
-43
lines changed

README.md

+43-43
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# php-mf2
22

3-
[![Build Status](https://travis-ci.org/indieweb/php-mf2.png?branch=master)](http://travis-ci.org/indieweb/php-mf2)
3+
[![Build Status](https://travis-ci.org/microformats/php-mf2.png?branch=master)](http://travis-ci.org/microformats/php-mf2)
44

55
php-mf2 is a pure, generic [microformats-2](http://microformats.org/wiki/microformats-2) parser. It makes HTML as easy to consume as JSON.
66

@@ -16,7 +16,7 @@ To install using Composer, run
1616
composer require mf2/mf2
1717
```
1818

19-
If you can’t or don’t want to use Composer, then php-mf2 can be installed the old way by downloading [`/Mf2/Parser.php`](https://raw.githubusercontent.com/indieweb/php-mf2/master/Mf2/Parser.php), adding it to your project and requiring it from files you want to call its functions from, like this:
19+
If you can’t or don’t want to use Composer, then php-mf2 can be installed the old way by downloading [`/Mf2/Parser.php`](https://raw.githubusercontent.com/microformats/php-mf2/master/Mf2/Parser.php), adding it to your project and requiring it from files you want to call its functions from, like this:
2020

2121
```php
2222
<?php
@@ -297,7 +297,7 @@ Note that this option is still considered experimental and in development, and t
297297

298298
### Generating output for JSON serialization with JSON-mode
299299

300-
Due to a quirk with the way PHP arrays work, there is an edge case ([reported](https://github.com/indieweb/php-mf2/issues/29) by Tom Morris) in which a document with no rel values, when serialised as JSON, results in an empty object as the rels value rather than an empty array. Replacing this in code with a stdClass breaks PHP iteration over the values.
300+
Due to a quirk with the way PHP arrays work, there is an edge case ([reported](https://github.com/microformats/php-mf2/issues/29) by Tom Morris) in which a document with no rel values, when serialised as JSON, results in an empty object as the rels value rather than an empty array. Replacing this in code with a stdClass breaks PHP iteration over the values.
301301

302302
As of version 0.2.6, the default behaviour is back to being PHP-friendly, so if you want to produce results specifically for serialisation as JSON (for example if you run a HTML -> JSON service, or want to run tests against JSON fixtures), enable JSON mode:
303303

@@ -313,7 +313,7 @@ php-mf2 has some support for parsing classic microformats markup. It’s enabled
313313
In previous versions of php-mf2 you could also add your own class mappings — officially this is no longer supported.
314314

315315
* If the built in mappings don’t successfully parse some classic microformats markup then raise an issue and we’ll fix it.
316-
* If you want to screen-scrape websites which don’t use mf2 into mf2 data structures, consider contributing to [php-mf2-shim](https://github.com/indieweb/php-mf2-shim)
316+
* If you want to screen-scrape websites which don’t use mf2 into mf2 data structures, consider contributing to [php-mf2-shim](https://github.com/microformats/php-mf2-shim)
317317
* If you *really* need to make one-off changes to the default mappings… It is possible. But you have to figure it out for yourself ;)
318318

319319
## Security
@@ -374,13 +374,13 @@ Other Updates:
374374

375375
Bugfixes:
376376

377-
* Ensure empty `properties` is an object `{}` rather than array `[]` ([#171](https://github.com/indieweb/php-mf2/issues/171))
378-
* Ensure the parser does not mutate the DOMDOcument passed in ([#174](https://github.com/indieweb/php-mf2/issues/174))
379-
* Fix for multiple class names in backcompat parsing ([#156](https://github.com/indieweb/php-mf2/issues/156))
377+
* Ensure empty `properties` is an object `{}` rather than array `[]` ([#171](https://github.com/microformats/php-mf2/issues/171))
378+
* Ensure the parser does not mutate the DOMDOcument passed in ([#174](https://github.com/microformats/php-mf2/issues/174))
379+
* Fix for multiple class names in backcompat parsing ([#156](https://github.com/microformats/php-mf2/issues/156))
380380

381381
Microformats Parsing Updates:
382382

383-
* New algorithm for plaintext values ([#168](https://github.com/indieweb/php-mf2/pull/168) and [parsing issue #15](https://github.com/microformats/microformats2-parsing/issues/15))
383+
* New algorithm for plaintext values ([#168](https://github.com/microformats/php-mf2/pull/168) and [parsing issue #15](https://github.com/microformats/microformats2-parsing/issues/15))
384384
* Always resolve URLs from `u-` properties even when not from a link element ([Parsing issue #10](https://github.com/microformats/microformats2-parsing/issues/10))
385385

386386
Other Updates:
@@ -406,24 +406,24 @@ composer require masterminds/html5
406406

407407
Fixes:
408408

409-
* [#165](https://github.com/indieweb/php-mf2/pull/165) - Prevents inadvertently adding whitespace to the html value
410-
* [#158](https://github.com/indieweb/php-mf2/issues/158) - Allows numbers in vendor prefixed names
411-
* [#160](https://github.com/indieweb/php-mf2/issues/160) - Ignores class names with consecutive dashes
412-
* [#159](https://github.com/indieweb/php-mf2/issues/159) - Remove duplicate values from type and rels arrays
413-
* [#162](https://github.com/indieweb/php-mf2/pull/162) - Improved rel attribute parsing
409+
* [#165](https://github.com/microformats/php-mf2/pull/165) - Prevents inadvertently adding whitespace to the html value
410+
* [#158](https://github.com/microformats/php-mf2/issues/158) - Allows numbers in vendor prefixed names
411+
* [#160](https://github.com/microformats/php-mf2/issues/160) - Ignores class names with consecutive dashes
412+
* [#159](https://github.com/microformats/php-mf2/issues/159) - Remove duplicate values from type and rels arrays
413+
* [#162](https://github.com/microformats/php-mf2/pull/162) - Improved rel attribute parsing
414414

415415
Backcompat:
416416

417-
* [#157](https://github.com/indieweb/php-mf2/issues/157) - Parse `rel=tag` as `p-category` for hEntry and hReview
417+
* [#157](https://github.com/microformats/php-mf2/issues/157) - Parse `rel=tag` as `p-category` for hEntry and hReview
418418

419419
#### v0.4.1
420420

421421
2018-03-15
422422

423423
Fixes:
424424

425-
* [#153](https://github.com/indieweb/php-mf2/issues/153) - Fixes parsed timestamps authored with a Z timezone offset
426-
* [#151](https://github.com/indieweb/php-mf2/issues/151) - Adds back "value" of nested microformats when no matching property exists
425+
* [#153](https://github.com/microformats/php-mf2/issues/153) - Fixes parsed timestamps authored with a Z timezone offset
426+
* [#151](https://github.com/microformats/php-mf2/issues/151) - Adds back "value" of nested microformats when no matching property exists
427427

428428

429429
#### v0.4.0
@@ -432,44 +432,44 @@ Fixes:
432432

433433
Breaking changes:
434434

435-
* [#125](https://github.com/indieweb/php-mf2/pull/125) - Add `rel-urls` to parsed result. Removes `alternates` by default but still available behind a feature flag.
436-
* [#142](https://github.com/indieweb/php-mf2/pull/142) - Reduce instances of implied `p-name`. See Microformats issue [#6](https://github.com/microformats/microformats2-parsing/issues/6). This means it is now possible for the parsed result to *not* have a `name` property, whereas before there was always a `name` property on an object. Make sure consuming code can handle an object without a name now.
435+
* [#125](https://github.com/microformats/php-mf2/pull/125) - Add `rel-urls` to parsed result. Removes `alternates` by default but still available behind a feature flag.
436+
* [#142](https://github.com/microformats/php-mf2/pull/142) - Reduce instances of implied `p-name`. See Microformats issue [#6](https://github.com/microformats/microformats2-parsing/issues/6). This means it is now possible for the parsed result to *not* have a `name` property, whereas before there was always a `name` property on an object. Make sure consuming code can handle an object without a name now.
437437

438438
Fixes:
439439

440-
* [#124](https://github.com/indieweb/php-mf2/pull/124) - Fix for experimental lang parsing
441-
* [#127](https://github.com/indieweb/php-mf2/issues/127) - Fix for parsing `h-*` class names containing invalid characters.
442-
* [#131](https://github.com/indieweb/php-mf2/pull/131) - Improved `dt-` parsing. Issues [#126](https://github.com/indieweb/php-mf2/issues/126) and [#115](https://github.com/indieweb/php-mf2/issues/115).
443-
* [#130](https://github.com/indieweb/php-mf2/issues/130) - Fix for implied properties with empty attributes.
444-
* [#135](https://github.com/indieweb/php-mf2/issues/135) - Trim leading and tailing whitespace from HTML value as well as text value.
445-
* [#137](https://github.com/indieweb/php-mf2/issues/137) - Fix backcompat hfeed parsing.
446-
* [#134](https://github.com/indieweb/php-mf2/issues/134) - Fix `rel=bookmark` backcompat parsing.
447-
* [#116](https://github.com/indieweb/php-mf2/issues/116) - Fix backcompat parsing for `summary` property in `hreview`
448-
* [#149](https://github.com/indieweb/php-mf2/issues/149) - Fix for datetime parsing, no longer tries to interpret the value and passes through instead
440+
* [#124](https://github.com/microformats/php-mf2/pull/124) - Fix for experimental lang parsing
441+
* [#127](https://github.com/microformats/php-mf2/issues/127) - Fix for parsing `h-*` class names containing invalid characters.
442+
* [#131](https://github.com/microformats/php-mf2/pull/131) - Improved `dt-` parsing. Issues [#126](https://github.com/microformats/php-mf2/issues/126) and [#115](https://github.com/microformats/php-mf2/issues/115).
443+
* [#130](https://github.com/microformats/php-mf2/issues/130) - Fix for implied properties with empty attributes.
444+
* [#135](https://github.com/microformats/php-mf2/issues/135) - Trim leading and tailing whitespace from HTML value as well as text value.
445+
* [#137](https://github.com/microformats/php-mf2/issues/137) - Fix backcompat hfeed parsing.
446+
* [#134](https://github.com/microformats/php-mf2/issues/134) - Fix `rel=bookmark` backcompat parsing.
447+
* [#116](https://github.com/microformats/php-mf2/issues/116) - Fix backcompat parsing for `summary` property in `hreview`
448+
* [#149](https://github.com/microformats/php-mf2/issues/149) - Fix for datetime parsing, no longer tries to interpret the value and passes through instead
449449

450450
#### v0.3.2
451451

452452
2017-05-27
453453

454454
* Fixed how the Microformats tests repo is loaded via composer
455455
* Moved experimental language parsing feature behind an opt-in flag
456-
* [#121](https://github.com/indieweb/php-mf2/pull/121) Fixed language detection to support parsing of HTML fragments
456+
* [#121](https://github.com/microformats/php-mf2/pull/121) Fixed language detection to support parsing of HTML fragments
457457

458458
#### v0.3.1
459459

460460
2017-05-24
461461

462-
* [#89](https://github.com/indieweb/php-mf2/issues/89) - Fixed parsing empty `img alt=""` attributes
463-
* [#91](https://github.com/indieweb/php-mf2/issues/91) - Ignore rel values from HTML tags that don't allow rel values
464-
* [#57](https://github.com/indieweb/php-mf2/issues/57) - Implement hAtom rel=bookmark backcompat
465-
* [#94](https://github.com/indieweb/php-mf2/pull/94) - Fixed HTML output when parsing e-* properties
466-
* [#97](https://github.com/indieweb/php-mf2/pull/97) - Experimental language parsing
467-
* [#88](https://github.com/indieweb/php-mf2/issues/88) - Fix for implied photo parsing
468-
* [#102](https://github.com/indieweb/php-mf2/pull/102) - Ignore classes with numbers or capital letters
469-
* [#111](https://github.com/indieweb/php-mf2/pull/111) - Improved backcompat parsing
470-
* [#106](https://github.com/indieweb/php-mf2/issues/106) - Send `Accept: text/html` header when using the `fetch` method
471-
* [#114](https://github.com/indieweb/php-mf2/issues/114) - Parse `poster` attribute for `video` tags
472-
* [#118](https://github.com/indieweb/php-mf2/issues/118) - Fixes parsing elements with missing attributes
462+
* [#89](https://github.com/microformats/php-mf2/issues/89) - Fixed parsing empty `img alt=""` attributes
463+
* [#91](https://github.com/microformats/php-mf2/issues/91) - Ignore rel values from HTML tags that don't allow rel values
464+
* [#57](https://github.com/microformats/php-mf2/issues/57) - Implement hAtom rel=bookmark backcompat
465+
* [#94](https://github.com/microformats/php-mf2/pull/94) - Fixed HTML output when parsing e-* properties
466+
* [#97](https://github.com/microformats/php-mf2/pull/97) - Experimental language parsing
467+
* [#88](https://github.com/microformats/php-mf2/issues/88) - Fix for implied photo parsing
468+
* [#102](https://github.com/microformats/php-mf2/pull/102) - Ignore classes with numbers or capital letters
469+
* [#111](https://github.com/microformats/php-mf2/pull/111) - Improved backcompat parsing
470+
* [#106](https://github.com/microformats/php-mf2/issues/106) - Send `Accept: text/html` header when using the `fetch` method
471+
* [#114](https://github.com/microformats/php-mf2/issues/114) - Parse `poster` attribute for `video` tags
472+
* [#118](https://github.com/microformats/php-mf2/issues/118) - Fixes parsing elements with missing attributes
473473
* Tests now use [microformats/tests](https://github.com/microformats/tests) repo
474474

475475
Many thanks to @gRegorLove for the major overhaul of the backcompat parsing!
@@ -490,8 +490,8 @@ Many thanks to @aaronpk, @diplix, @dissolve, @dymcx @gRegorLove, @jeena, @vegans
490490

491491
2015-07-12
492492

493-
* Merges pull requests [#65](https://github.com/indieweb/php-mf2/pull/65), [#66](https://github.com/indieweb/php-mf2/pull/66) and [#67](https://github.com/indieweb/php-mf2/pull/67).
494-
* Fixes issue [#64](https://github.com/indieweb/php-mf2/issues/64).
493+
* Merges pull requests [#65](https://github.com/microformats/php-mf2/pull/65), [#66](https://github.com/microformats/php-mf2/pull/66) and [#67](https://github.com/microformats/php-mf2/pull/67).
494+
* Fixes issue [#64](https://github.com/microformats/php-mf2/issues/64).
495495

496496
Many thanks to @aaronpk, @gRegorLove and @kylewm for contributions, @aaronpk and @kevinmarks for PR management and @tantek for issue reporting!
497497

@@ -503,7 +503,7 @@ Many thanks to @aaronpk, @gRegorLove and @kylewm for contributions, @aaronpk and
503503

504504
2015-04-29
505505

506-
* Merged [#58](https://github.com/indieweb/php-mf2/pull/58), fixing some parsing bugs and adding support for area element parsing. Thanks so much for your hard work and patience, <a class="h-card" href="http://ben.thatmustbe.me/">Ben</a>!
506+
* Merged [#58](https://github.com/microformats/php-mf2/pull/58), fixing some parsing bugs and adding support for area element parsing. Thanks so much for your hard work and patience, <a class="h-card" href="http://ben.thatmustbe.me/">Ben</a>!
507507

508508
#### v0.2.9
509509

@@ -577,7 +577,7 @@ Many thanks to @aaronpk, @gRegorLove and @kylewm for contributions, @aaronpk and
577577
#### v0.1.23
578578

579579
* Made some changes to the way back-compatibility with classic microformats are handled, ignoring classic property classnames inside mf2 roots and outside classic roots
580-
* Deprecated ability to add new classmaps, removed twitter classmap. Use [php-mf2-shim](http://github.com/indieweb/php-mf2-shim) instead, it’s better
580+
* Deprecated ability to add new classmaps, removed twitter classmap. Use [php-mf2-shim](http://github.com/microformats/php-mf2-shim) instead, it’s better
581581

582582
#### v0.1.22
583583

0 commit comments

Comments
 (0)