Grav + Httpful
PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
twig
CHANGELOG.md
LICENSE
README.md
blueprints.yaml
httpfully.php
httpfully.yaml

README.md

Httpfully Plugin

The Httpfully plugin is for Grav CMS. It brings Httpful functions to Twig. Httpful a REST Friendly PHP HTTP Client Library

Installation

Installing the Httpfully plugin can be done in one of two ways. The GPM (Grav Package Manager) installation method enables you to quickly and easily install the plugin with a simple terminal command, while the manual method enables you to do so via a zip file.

GPM Installation (Preferred)

The simplest way to install this plugin is via the Grav Package Manager (GPM) through your system's terminal (also called the command line). From the root of your Grav install type:

bin/gpm install httpfully

This will install the Httpfully plugin into your /user/plugins directory within Grav. Its files can be found under /your/site/grav/user/plugins/httpfully.

Manual Installation

To install this plugin, just download the zip version of this repository and unzip it under /your/site/grav/user/plugins. Then, rename the folder to httpfully. You can find these files on GitHub or via GetGrav.org.

You should now have all the plugin files under

/your/site/grav/user/plugins/httpfully

Configuration

The config consists of the single enabled field, which turns the plugin off and on.

Usage

This plugin expose the following filters

  • httpfully_get_json(uri)

Credits

This plugin is a simple wrapper around the great Httpful library created by nategood and the Httpful contributors.