2017 © Pedro Peláez
 

craft-plugin liefer

Consumes JSON and makes it available in your Twig templates.

image

mijingo/liefer

Consumes JSON and makes it available in your Twig templates.

  • Wednesday, February 28, 2018
  • by mijingo
  • Repository
  • 0 Watchers
  • 3 Stars
  • 190 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 228 % Grown

The README.md

Liefer

A plugin for Craft CMS 3 that consumes Element API JSON and makes it available in your Twig templates., (*1)

Requirements

This plugin requires Craft CMS 3.0.0-RC1 or later and a valid JSON file generated by Craft's Element API., (*2)

Installation

To install the plugin, follow these instructions., (*3)

  1. Open your terminal and go to your Craft project:, (*4)

    cd /path/to/project
  2. Then tell Composer to load the plugin:, (*5)

    composer require mijingo/liefer
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Liefer., (*6)

Liefer Overview

Pass in a JSON URL or location (best is one generated by the Element API) and then output the data to your Twig template., (*7)

Using Liefer

{% set quotes = craft.liefer.get({url: 'https://something.com/quotes.json')} %}

{% for quote in quotes %}
  {{ quote.body }}
{% endfor %}

Enable caching on the Element API source., (*8)

Liefer Roadmap

Some things to do, and ideas for potential features:, (*9)

  • Add caching support

About

Brought to you by Mijingo, (*10)

JSON File by useiconic.com from the Noun Project, (*11)

The Versions

28/02 2018

dev-master

9999999-dev

Consumes JSON and makes it available in your Twig templates.

  Sources   Download

MIT

The Requires

 

cms craftcms craft-plugin craft liefer

28/02 2018

0.0.2

0.0.2.0

Consumes JSON and makes it available in your Twig templates.

  Sources   Download

MIT

The Requires

 

cms craftcms craft-plugin craft liefer

09/12 2017

0.0.1

0.0.1.0

Consumes JSON and makes it available in your Twig templates.

  Sources   Download

MIT

The Requires

 

cms craftcms craft-plugin craft liefer