Download the PHP package indieweb/wordpress-mf2-feed without Composer

On this page you can find all versions of the php package indieweb/wordpress-mf2-feed. 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 wordpress-mf2-feed

MF2 Feeds

Add Microformats2 Feeds for WordPress

Description

MF2 Feed adds a machine readable version of your posts, in the same way WordPress already offers RSS feeds. Other sites and services (readers, Webmention endpoints, IndieWeb tools) can read your content as structured data, no matter which theme you use.

Just install and activate the plugin. There are no settings.

After activation every URL of your site gets two additional feeds:

Examples

A live example: https://notiz.blog/2013/06/18/the-rise-of-the-indieweb/ and the matching mf2 and jf2 feeds.

The plugin also adds rel="alternate" links to the <head> of every page, so tools can discover the feeds on their own. And it supports content negotiation: a client that requests a post with the Accept: application/mf2+json (or application/jf2+json) header gets the JSON directly instead of the HTML.

Why?

Microformats2 are a key building block of the IndieWeb. But it is very hard (if not impossible) to get them into all WordPress themes. There are a few community themes that support Microformats2, but you should be able to use the theme you like. After a lot of discussions and some different plugin approaches, this plugin provides an alternate (rel="alternate") representation instead of changing the HTML of your theme.

The URL design is inspired by p3k of @aaronpk.

FAQ

What are Microformats2?

Microformats are a simple way to mark up structured information in HTML using classes. WordPress uses some classic Microformats out of the box. Microformats2 supersedes the classic ones. You can read more on microformats.org.

What is JF2?

JF2 is a simpler JSON format based on Microformats2. It is easier to consume in code, so most tools prefer it.

Do I need a special theme?

No. The feeds are generated from the post data, not from the HTML of your theme. That is the whole point of the plugin.

Are there any settings?

No. Install, activate, done.

The feed URLs return a 404

The plugin registers new rewrite rules on activation. If the URLs do not work, go to Settings > Permalinks and click Save Changes once. This flushes the rewrite rules.

Can I change the feed output?

Yes, for developers there are a few filters: mf2_feed_array and jf2_feed_array for the whole feed, mf2_entry_array and jf2_entry_array for a single entry, and mf2_feed_content_type / jf2_feed_content_type for the content type.

Where can I get help?

The plugin is developed on GitHub at indieweb/wordpress-mf2-feed. Please file support issues there.

Installation

From the plugin directory

  1. Go to Plugins > Add New in your WordPress admin.
  2. Search for "mf2-feed".
  3. Click Install Now and then Activate.

Manual installation

  1. Download the plugin from the WordPress directory or from GitHub.
  2. Upload the mf2-feed folder to wp-content/plugins/ on your server.
  3. Go to Plugins and click Activate.

Changelog

Project actively developed on Github at indieweb/wordpress-mf2-feed. Please file support issues there.

3.2.0

3.1.1

3.1.0

3.0.0

2.1.0

2.0.1

2.0.0

1.0.0


All versions of wordpress-mf2-feed with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
composer/installers Version ~1.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 indieweb/wordpress-mf2-feed contains the following files

Loading the files please wait ...