Download the PHP package lukeyouell/craft-fetch without Composer
On this page you can find all versions of the php package lukeyouell/craft-fetch. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download lukeyouell/craft-fetch
More information about lukeyouell/craft-fetch
Files in lukeyouell/craft-fetch
Download lukeyouell/craft-fetch
More information about lukeyouell/craft-fetch
Files in lukeyouell/craft-fetch
Vendor lukeyouell
Package craft-fetch
Short Description Utilise the Guzzle HTTP client from within your Craft templates.
License MIT
Package craft-fetch
Short Description Utilise the Guzzle HTTP client from within your Craft templates.
License MIT
Please rate this library. Is it a good library?
Informations about the package craft-fetch
Fetch plugin for Craft CMS 3.x
Utilise the Guzzle HTTP client from within your Craft templates.
Requirements
This plugin requires Craft CMS 3.0.0 or later.
Installation
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require jalendport/craft-fetch
- In the Control Panel, go to Settings → Plugins and click the “Install” button for Fetch.
Using Fetch
This plugin is built to work with the standard Guzzle request options
Parameters
Parameter | Example value |
---|---|
client |
{ base_uri : 'https://gtmetrix.com', timeout : 10 } |
method |
'POST' |
destination |
'api/0.1/test' |
options |
{ auth : ['username', 'password'] } |
Example Usage
Request
Response (successful)
You can fetch the string response by adding an additional parameter of false
like so:
Response (error)
Fetch Roadmap
Some things to do, and ideas for potential features:
Brought to you by Luke Youell
All versions of craft-fetch with dependencies
PHP Build Version
Package Version
Requires
craftcms/cms Version
^4.0.0
The package lukeyouell/craft-fetch contains the following files
Loading the files please wait ....