PHPackages                             adaiasmagdiel/g1-client - 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. [API Development](/categories/api)
4. /
5. adaiasmagdiel/g1-client

ActiveLibrary[API Development](/categories/api)

adaiasmagdiel/g1-client
=======================

An unofficial PHP Client to retrieve news from the G1 website.

v1.0.0(6mo ago)022GPL-3.0-onlyPHP

Since Nov 10Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/AdaiasMagdiel/g1-client)[ Packagist](https://packagist.org/packages/adaiasmagdiel/g1-client)[ RSS](/packages/adaiasmagdiel-g1-client/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (3)Versions (6)Used By (0)

G1 News Client for PHP
======================

[](#g1-news-client-for-php)

An **unofficial PHP client** to retrieve news data from the [G1 website](https://g1.globo.com/), a property of [Globo Comunicação e Participações S.A.](https://grupoglobo.globo.com/).

This project is intended **strictly for educational and study purposes**. It has **no commercial intent** and does **not claim ownership** of any content retrieved from G1.

The goal is to provide a **simple, structured, and developer-friendly way** to access Brazilian news metadata programmatically.

---

Features
--------

[](#features)

- Fetch latest news headlines from G1
- Filter news by Brazilian state (UF)
- Pagination support
- Structured responses via typed objects
- Optional filesystem cache with configurable TTL

> **Note**This is not an official API and may break if G1 changes its internal structure.

---

Installation
------------

[](#installation)

Install via Composer:

```
composer require adaiasmagdiel/g1-client
```

---

Basic Usage
-----------

[](#basic-usage)

```
