PHPackages                             seankndy/fluent-sonar-api - 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. seankndy/fluent-sonar-api

ActiveLibrary[API Development](/categories/api)

seankndy/fluent-sonar-api
=========================

A Sonar Software (https://sonar.software) API client with a fluent interface.

v3.9.2(3mo ago)31.4k↑950%MITPHPPHP &gt;=7.4

Since Oct 7Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/seankndy/fluent-sonar-api)[ Packagist](https://packagist.org/packages/seankndy/fluent-sonar-api)[ RSS](/packages/seankndy-fluent-sonar-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (7)Versions (32)Used By (0)

fluent-sonar-api
================

[](#fluent-sonar-api)

This is a Sonar Software () v2 GraphQL PHP API client with a fluent interface. It aims to make your common fetch queries and mutations simple and somewhat Laravel Eloquent-like.

The key benefits of using this library is the fluent interface for a nice DX and the returned resources are real PHP objects allowing static analyzers to assist in preventing bugs and your IDE can do code completions.

Installation
============

[](#installation)

You can install the package via composer:

```
composer require seankndy/fluent-sonar-api

```

Queries
=======

[](#queries)

Queries are done by calling the top level object name as a method and then chaining your filters, sorts, and relations to load. The method name should be in camel-case and plural, for example to query network sites then the method name would be `networkSites()`. Basic Accounts example:

```
