Download the PHP package indieweb/rel-me without Composer
On this page you can find all versions of the php package indieweb/rel-me. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download indieweb/rel-me
More information about indieweb/rel-me
Files in indieweb/rel-me
Download indieweb/rel-me
More information about indieweb/rel-me
Files in indieweb/rel-me
Vendor indieweb
Package rel-me
Short Description Functions for discovering, consuming and verifying rel-me microformat
License MIT
Package rel-me
Short Description Functions for discovering, consuming and verifying rel-me microformat
License MIT
Please rate this library. Is it a good library?
Informations about the package rel-me
rel-me
A set of PHP functions for discovering, consuming and verifying the rel-me microformat. This is mainly useful for implementing RelMeAuth.
Usage
Install using Composer with ./composer.phar require indieweb/rel-me:dev-master
Resolve and test a profile URL
Find all rel=me
links on a page
Test whether or not a backlinking rel=me
URL can be securely considered to link
Utility Functions
string $url = IndieWeb\unparseUrl(array $parsedUrl)
takes the output of coreparse_url()
and makes it into a URL againstring $url = IndieWeb\normaliseUrl($url)
normalises a URL by parsing, then unparsing itlist(string $body, array $headers, array $info) = IndieWeb\httpGet($url)
performs a basic HTTP GET on a URLstring $nextUrl | null = IndieWeb\followOneRedirect($url)
fetches a URL and returns the redirect URL if it’s a redirect, elsenull
bool $match = IndieWeb\urlsMatchOtherThanScheme($url1, $url2)
compares two URLs and returns whether or not they are the same, ignoring differences in their scheme
Testing
Run the test suite with ./vendor/bin/phpunit
There’s also an experimental HTML+microformats test suite which can be run with ./tests/html-test-runner.php
Version History
0.1.1 2022-10-08
- Update dependencies, including php-mf2 v0.5.0
- Update CI to Github Actions
0.1.0 2014-01-04
- Initial extraction from indiewebify.me, conversion into a composer package
All versions of rel-me with dependencies
PHP Build Version
Package Version
The package indieweb/rel-me contains the following files
Loading the files please wait ....