2017 © Pedro Peláez
 

library interlink

Interlink parser

image

linkorb/interlink

Interlink parser

  • Saturday, February 28, 2015
  • by joostfaassen
  • Repository
  • 3 Watchers
  • 1 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Interlink: Advanced hyperlinking across services

Interlink let's you define custom link handlers for wiki links., (*1)

Some example:, (*2)

Translate [[wikipedia:Hello world]] into:, (*3)

<a href="http://www.wikipedia.org/Hello_world" target="_blank">
    Hello world
</a>

Translate [[wikihow:Grow an Orange Tree]] into:, (*4)

<a href="http://www.wikihow.com/Grow-an-Orange-Tree">
    Grow an Orange Tree
</a>

Translate [[mozilla-bugzilla:441207]] into:, (*5)

<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=441207">
    Printing selection causes blank page with header/footer only
</a>

Translate [[mytaskdb:14]] into:, (*6)

<a href="https://intranet.example.web/task/14">
    Redesign widgets to optimize alignment with KPI's
</a>

Using Interlink, you define Handlers for link prefixes (Like above: 'wikihow', or 'mytaskdb'). The handler can then automatically translate the link into a working bit of HTML using one of the available Renderers., (*7)

You can even create your own Renderer if the provided ones are not sufficient., (*8)

You can also pass a LabelResolver to your handler to translate the code or id into a userfriendly text. For example, look up a task title in the database using PDO, based on the id in the link. Or make a REST API call to a webservice to convert a bugid into a readable summary., (*9)

Simply add the following to your require or require-dev section in your composer.json and run composer update:, (*10)

"require": {
  "linkorb/interlink": "~1.0"
}

Examples:

Please refer to the examples/ directory for some simple and advanced examples., (*11)

License

MIT (see LICENSE.md), (*12)

Brought to you by the LinkORB Engineering team


Check out our other projects at linkorb.com/engineering., (*13)

Btw, we're hiring!, (*14)

The Versions

28/02 2015

dev-master

9999999-dev

Interlink parser

  Sources   Download

MIT

The Development Requires

parser link wiki interlink interwiki intermap

28/02 2015

v1.0.0

1.0.0.0

Interlink parser

  Sources   Download

MIT

The Development Requires

parser link wiki interlink interwiki intermap