Download the PHP package dolphiq/jsonclient without Composer
On this page you can find all versions of the php package dolphiq/jsonclient. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download dolphiq/jsonclient
More information about dolphiq/jsonclient
Files in dolphiq/jsonclient
Download dolphiq/jsonclient
More information about dolphiq/jsonclient
Files in dolphiq/jsonclient
Vendor dolphiq
Package jsonclient
Short Description 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.
License MIT
Package jsonclient
Short Description 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.
License MIT
Please rate this library. Is it a good library?
Informations about the package jsonclient
Json Client plugin for Craft CMS 3.1.x
Currently the project is DISCONTINUED. However, feel free to fork it and continue its development!
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
- Craft 3.1+
- PHP 7.0+
Using the plugin
- Install it using composer or the plugin store.
- Do composer.json updates - see "Installing using composer"
- You can use it from your 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'
}) %}
{% if (jsonData) %}
<h1>Fact of the day</h1>
{{ jsonData.value }}
{% endif %}
Installing using composer
-
Go to the project craft folder in the terminal and run
composer require dolphiq/jsonclient
- Install plugin in the Craft Control Panel under Settings > Plugins
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 & Developers
- Johan Zandstra - [email protected]
- Knut Erik Berg-Hansen
- Mike Pierce
Brought to you by Dolphiq
All versions of jsonclient with dependencies
PHP Build Version
Package Version
Requires
craftcms/cms Version
^3.0.0
The package dolphiq/jsonclient contains the following files
Loading the files please wait ....