PHPackages                             loca/jsonclient - 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. loca/jsonclient

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

loca/jsonclient
===============

Simple Json client plugin for Craft3 CMS. The plugin provides a simple Twig extension which allows you to fetch a Json url and return it to your Twig template.

035PHP

Since Dec 15Pushed 8y agoCompare

[ Source](https://github.com/xuanvan229/craft3-jsonclient)[ Packagist](https://packagist.org/packages/loca/jsonclient)[ RSS](/packages/loca-jsonclient/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

Json Client plugin for Craft CMS 3.x
====================================

[](#json-client-plugin-for-craft-cms-3x)

Simple Json client plugin for Craft3 CMS. The plugin provides a simple Twig extension which allows you to fetch a Json url and use the result in your Twig template.

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

[](#requirements)

- Craft 3.0 (beta 20)+
- PHP 7.0+

Using the plugin
----------------

[](#using-the-plugin)

1. Install it using composer or the plugin store.
2. You can use it from your template

### Using the plugin in your twig template

[](#using-the-plugin-in-your-twig-template)

```
    {# Get a random Fact form chucknorris.io #}
    {% set jsonData = fetchJson({
    'url': 'https://api.chucknorris.io/jokes/random'
    }) %}

    Fact of the day
    {{ jsonData.value }}

```

Installing using composer
-------------------------

[](#installing-using-composer)

1. Go to the project craft folder in the terminal and run

    ```
    composer require dolphiq/craft3-jsonclient

    ```
2. Install plugin in the Craft Control Panel under Settings &gt; Plugins

Roadmap
-------

[](#roadmap)

- Create filters for xss scripts
- Create more helper functions to parse the Json
- Support multiple methods not only get
- Provide a way to add the parameters separated from the uri

### Contributors &amp; Developers

[](#contributors--developers)

Johan Zandstra - Brought to you by [Dolphiq](https://dolphiq.nl)

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22408713?v=4)[Hong Xuan](/maintainers/xuanvan229)[@xuanvan229](https://github.com/xuanvan229)

---

Top Contributors

[![xuanvan229](https://avatars.githubusercontent.com/u/22408713?v=4)](https://github.com/xuanvan229 "xuanvan229 (16 commits)")[![johanzandstra](https://avatars.githubusercontent.com/u/4737521?v=4)](https://github.com/johanzandstra "johanzandstra (4 commits)")

### Embed Badge

![Health badge](/badges/loca-jsonclient/health.svg)

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

###  Alternatives

[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3861.2M](/packages/limenius-react-bundle)[area17/laravel-auto-head-tags

Laravel Auto Head Tags helps you build the list of head elements for your app

4616.0k](/packages/area17-laravel-auto-head-tags)[jelix/wikirenderer

WikiRenderer is a library to generate HTML or anything else from wiki content.

1712.2k1](/packages/jelix-wikirenderer)[webkinder/sproutset

A Composer package for handling responsive images in Roots Bedrock + Sage + Blade projects.

281.8k](/packages/webkinder-sproutset)

PHPackages © 2026

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