2017 © Pedro Peláez
 

library slim-alfred-renderer

Render Alfred XML into a PSR-7 Response object.

image

klein0r/slim-alfred-renderer

Render Alfred XML into a PSR-7 Response object.

  • Friday, January 15, 2016
  • by klein0r
  • Repository
  • 0 Watchers
  • 1 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 37 Forks
  • 0 Open issues
  • 14 Versions
  • 0 % Grown

The README.md

PHP Renderer

This is a renderer for rendering Alfred 2 XML into a PSR-7 Response object. It works well with Slim Framework 3., (*1)

Installation

Install with Composer:, (*2)

composer require klein0r/slim-alfred-renderer

Usage With Slim 3

use Slim\Views\ScriptFilterRenderer;

include "vendor/autoload.php";

$app = new Slim\App();
$container = $app->getContainer();
$container['alfredRenderer'] = new ScriptFilterRenderer();

$app->get('/hello/{name}', function ($request, $response, $args) {

    $data = [
        [
            'uid' => '35345345u2938475h',
            'arg' => 'argument1',
            'title' => 'thetitle',
            'subtitle' => 'thesubtitle',
            'icon' => 'icon.png',
            'valid' => 'yes'
        ]
    ];

    return $this->alfredRenderer->render($response, $data);
});

$app->run();

Exceptions

\RuntimeException - if template does not exist, (*3)

\InvalidArgumentException - if $data contains 'template', (*4)

The Versions

15/01 2016

dev-master

9999999-dev

Render Alfred XML into a PSR-7 Response object.

  Sources   Download

MIT

The Requires

 

The Development Requires

framework renderer slim alfred

15/01 2016

3.0.0

3.0.0.0

Render Alfred XML into a PSR-7 Response object.

  Sources   Download

MIT

The Requires

 

The Development Requires

framework renderer slim alfred

08/12 2015

2.0.6

2.0.6.0

Render PHP view scripts into a PSR-7 Response object.

  Sources   Download

MIT

The Requires

 

The Development Requires

framework template php renderer slim view phtml

13/11 2015

2.0.5

2.0.5.0

Render PHP view scripts into a PSR-7 Response object.

  Sources   Download

MIT

The Requires

 

The Development Requires

framework template php renderer slim view phtml

11/11 2015

2.0.4

2.0.4.0

Render PHP view scripts into a PSR-7 Response object.

  Sources   Download

MIT

The Requires

 

framework template php renderer slim view phtml

10/11 2015

2.0.3

2.0.3.0

Render PHP view scripts into a PSR-7 Response object.

  Sources   Download

MIT

The Requires

 

framework template php renderer slim view phtml

16/10 2015

2.0.2

2.0.2.0

Render PHP view scripts into a PSR-7 Response object.

  Sources   Download

MIT

The Requires

 

framework template php renderer slim view phtml

01/10 2015

2.0.1

2.0.1.0

  Sources   Download

MIT

The Requires

 

01/10 2015

2.0.0

2.0.0.0

  Sources   Download

MIT

The Requires

 

01/10 2015

2.0.0-RC1

2.0.0.0-RC1

  Sources   Download

MIT

The Requires

 

29/09 2015

1.0.3

1.0.3.0

  Sources   Download

MIT

The Requires

 

29/09 2015

1.0.2

1.0.2.0

  Sources   Download

MIT

The Requires

 

29/09 2015

1.0.1

1.0.1.0

  Sources   Download

MIT

The Requires

 

29/09 2015

1

1.0.0.0

  Sources   Download

MIT

The Requires