PHPackages                             kappo/graphql-php - 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. kappo/graphql-php

ActiveLibrary[API Development](/categories/api)

kappo/graphql-php
=================

Consume Graphql from Php with Curl

15PHP

Since Jan 15Pushed 6y ago1 watchersCompare

[ Source](https://github.com/pleivakpo/graphql-php)[ Packagist](https://packagist.org/packages/kappo/graphql-php)[ RSS](/packages/kappo-graphql-php/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Graphql Php
===========

[](#graphql-php)

Composer library for consume GraphQL from Php with Curl, by Kappo Bike.

Install by composer
-------------------

[](#install-by-composer)

```
    composer require kappo/graphql-php
```

Query Example
-------------

[](#query-example)

Create this path with the file getMaster.graphql

```
/inc/queries/getMaster.graphql

```

Se usa el string de formateo para poder incorporar los parametros dinamicamente.

Está compuesto de cero o más directivas: caracteres ordinarios (excluyendo %) que son copiados directamente al resultado, y especificaciones de conversión, donde cada una de las cuales da lugar a extraer su propio parámetro. Esto se aplica tanto para sprintf() como para printf(). \[  \]

```
    query {
        listMaster %s {
            items{
                name
                createdAt
            }
        }
    }
```

Create a class on Master.php extends from Kappo\\Graphql

```
use Kappo\Graphql;

class Master extends Graphql
{

    public function __construct(){
        parent::__construct("[YOUR_ENDPOINT]","[YOUR_APYKEY]");
    }

    public function get(){

        $result = $this->gql_exec(array(
            'type' => 'query'
            ,'file' => file_get_contents(__DIR__.'/inc/queries/getMaster.graphql',true)
            ,'params' => array(
                'filter' => array(
                    "reference:" => "{eq:".$this->String("app")."}",
                    "stage:"     => "{eq:".$this->String("qa")."}",
                    "isActive:"  => "{eq:".$this->String("Yes")."}"
                )
            )
        ));

        print_r($result);

    }
}

$master = new Master();
$master->Get();
```

Test php file with

```
    php Master.php
```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 94.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a57e9913fec7f26c0ec232358f351b7e80682e9fa2504d006b201c401ad0ea36?d=identicon)[Pablo Leiva](/maintainers/Pablo%20Leiva)

---

Top Contributors

[![PelcMediaOficial](https://avatars.githubusercontent.com/u/22623924?v=4)](https://github.com/PelcMediaOficial "PelcMediaOficial (18 commits)")[![pleivakpo](https://avatars.githubusercontent.com/u/53799372?v=4)](https://github.com/pleivakpo "pleivakpo (1 commits)")

### Embed Badge

![Health badge](/badges/kappo-graphql-php/health.svg)

```
[![Health](https://phpackages.com/badges/kappo-graphql-php/health.svg)](https://phpackages.com/packages/kappo-graphql-php)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
