extphp/dottp

A custom Guzzle wrapper

Maintainers

Package info

github.com/extphp/dottp

pkg:composer/extphp/dottp

Statistics

Installs: 11

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.0 2018-11-27 07:53 UTC

This package is auto-updated.

Last update: 2026-02-28 00:00:29 UTC


README

Build Status Latest Stable Version License Total Downloads

A basic wrapper around Guzzle that allows reading api responses using dot notation

Usage

<?php

use ExtPHP\Dottp\Dottp;

$client = new Dottp();
$response = $client->get('https://api.example.org/api/v1/foo');

echo $response->get('foo.bar');

// or you can use the very simple syntax
echo Dottp::get('https://api.example.org/api/v1/foo')->get('foo.bar');

Testing

php vendor/bin/phpunit