PHPackages                             mijingo/liefer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. mijingo/liefer

ActiveCraft-plugin[Templating &amp; Views](/categories/templating)

mijingo/liefer
==============

Consumes JSON and makes it available in your Twig templates.

0.0.2(8y ago)31.1kMITPHP

Since Dec 9Pushed 8y agoCompare

[ Source](https://github.com/Mijingo/liefer)[ Packagist](https://packagist.org/packages/mijingo/liefer)[ RSS](/packages/mijingo-liefer/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Liefer
======

[](#liefer)

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

Requirements
------------

[](#requirements)

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

Installation
------------

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

    ```
     cd /path/to/project

    ```
2. Then tell Composer to load the plugin:

    ```
     composer require mijingo/liefer

    ```
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Liefer.

Liefer Overview
---------------

[](#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.

Using Liefer
------------

[](#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.

Liefer Roadmap
--------------

[](#liefer-roadmap)

Some things to do, and ideas for potential features:

- Add caching support

About
-----

[](#about)

Brought to you by [Mijingo](https://mijingo.com)

JSON File by useiconic.com from the Noun Project

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~81 days

Total

2

Last Release

2995d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2708f0ff712285dea85d71758ed5eb0830298cec920bfc7fb49d089bc679de98?d=identicon)[mijingo](/maintainers/mijingo)

---

Top Contributors

[![ryanirelan](https://avatars.githubusercontent.com/u/2238?v=4)](https://github.com/ryanirelan "ryanirelan (7 commits)")

---

Tags

craftcraft3craftcms-plugincraftcms3jsoncmsCraftcraftcmscraft-pluginliefer

### Embed Badge

![Health badge](/badges/mijingo-liefer/health.svg)

```
[![Health](https://phpackages.com/badges/mijingo-liefer/health.svg)](https://phpackages.com/packages/mijingo-liefer)
```

###  Alternatives

[lewisjenkins/craft-dynamic-fields

Populate Craft fields with dynamic data using the power of Twig.

14667.0k](/packages/lewisjenkins-craft-dynamic-fields)[nystudio107/craft-minify

A simple plugin that allows you to minify blocks of HTML, CSS, and JS inline in Craft CMS templates.

37461.2k29](/packages/nystudio107-craft-minify)[jalendport/craft-preparse

A fieldtype that parses Twig when an element is saved and saves the result as plain text.

1086.4k](/packages/jalendport-craft-preparse)[craftpulse/craft-colour-swatches

Let clients choose from a predefined set of colours and utilise associated colour codes and class names in your templates.

3530.8k2](/packages/craftpulse-craft-colour-swatches)[verbb/footnotes

Adds a footnotes feature to CKEditor fields and Twig templates.

213.3k](/packages/verbb-footnotes)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
