2017 © Pedro Peláez
 

library link-factory

Simple link factory independent of presenter.

image

nextras/link-factory

Simple link factory independent of presenter.

  • Tuesday, September 8, 2015
  • by JanTvrdik
  • Repository
  • 7 Watchers
  • 24 Stars
  • 18,912 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 2 Open issues
  • 6 Versions
  • 2 % Grown

The README.md

Nextras LinkFactory

====================, (*1)

This repository is deprecated.
The same functionality is provided by Nette Framework itself.
Use LinkGenerator in nette/application.
, (*2)

====================, (*3)

Build Status Downloads this Month Stable version HHVM Status, (*4)

Installation

Add to your composer.json:, (*5)

"require": {
    "nextras/link-factory": "~1.0"
}

Example

use Nextras\Application\LinkFactory;

class Example
{
    /** @var LinkFactory */
    private $linkFactory;

    public function __construct(LinkFactory $linkFactory)
    {
        $this->linkFactory = $linkFactory;
    }

    public function doSomething()
    {
        // relative link with optional fragment (#comments) and parameters
        $link = $this->linkFactory->link('Products:view#comments', ['id' => 123]);

        // absolute link starts with '//'
        $link = $this->linkFactory->link('//Homepage:default');
    }
}

The Versions

08/09 2015

dev-master

9999999-dev

Simple link factory independent of presenter.

  Sources   Download

MIT

The Requires

 

The Development Requires

08/09 2015

v1.1.0

1.1.0.0

Simple link factory independent of presenter.

  Sources   Download

MIT

The Requires

 

The Development Requires

08/09 2015

v1.0.3

1.0.3.0

Simple link factory independent of presenter.

  Sources   Download

MIT

The Requires

 

The Development Requires

04/01 2015

v1.0.2

1.0.2.0

Simple link factory independent of presenter.

  Sources   Download

MIT

The Requires

 

The Development Requires

16/10 2014

v1.0.1

1.0.1.0

Simple link factory independent of presenter.

  Sources   Download

MIT

The Requires

 

The Development Requires

21/08 2014

v1.0.0

1.0.0.0

Simple link factory independent of presenter.

  Sources   Download

MIT

The Requires

 

The Development Requires