Download the PHP package rohit-chouhan/theguardian-api-php without Composer
On this page you can find all versions of the php package rohit-chouhan/theguardian-api-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rohit-chouhan/theguardian-api-php
More information about rohit-chouhan/theguardian-api-php
Files in rohit-chouhan/theguardian-api-php
Package theguardian-api-php
Short Description PHP API Client for The Guardian News.
License MIT
Homepage https://gitlab.com/rohit-chouhan/theguardian-api-php
Informations about the package theguardian-api-php

PHP API Client for The Guardian News.
Requirements
- PHP 5.6.0 or greater
The documentation for the Guardian News API can found here, In order to connect you will need an api key, which you can be generate from here
Usage
To use this client api, first download this gihutb files, and start using.
methods
methods | descriptions |
---|---|
$theguardian->get_articles() | Content |
$theguardian->get_article(id ) |
Single Item |
$theguardian->get_tags() | Tags |
$theguardian->get_sections() | Sections |
$theguardian->get_editions() | Editions |
📌 get_articles() Content
A Content module can be utilized as an interface for the content endpoint provided by the Guardian.
📌 get_article() Single Item
📌 get_tags() Tags
Tags are returned by the tags endpoint. We manually categorize all Guardian content based on these tags, which number more than 50,000.
📌 get_sections() Sections
Using this section module, the Guardian's sections endpoint can be accessed. The guardian's data can be accessed through this link. For example, business, sports, and technology are examples of query parameters (q).
📌 get_editions() Editions
All editions in the API are returned by the editions endpoint. An edition is a front main page on the Guardian site. There are currently editions of the Guardian available for the United Kingdom(uk), the United States(us) and Australia(au).
Developer
This API Client created by Rohit Chouhan