PHPackages                             preprio/laravel-graphql-sdk - 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. preprio/laravel-graphql-sdk

ActiveLibrary

preprio/laravel-graphql-sdk
===========================

Prepr GraphQL wrapper for Laravel

1.1.2(4mo ago)01.2k2[2 PRs](https://github.com/preprio/laravel-graphql-sdk/pulls)MITPHPCI passing

Since May 22Pushed 4mo ago2 watchersCompare

[ Source](https://github.com/preprio/laravel-graphql-sdk)[ Packagist](https://packagist.org/packages/preprio/laravel-graphql-sdk)[ RSS](/packages/preprio-laravel-graphql-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)DependenciesVersions (9)Used By (0)

Laravel GraphQL SDK
===================

[](#laravel-graphql-sdk)

This Laravel package is a provider for the Prepr GraphQL API.

How to install
--------------

[](#how-to-install)

Install Package

```
composer require preprio/laravel-graphql-sdk

```

Added config in you're .env file and config/services.php

```
config/services.php

    'prepr' => [
        'endpoint' => env('PREPR_ENDPOINT'),
        'timeout' => env('PREPR_TIMEOUT'),
        'connect_timeout' => env('PREPR_CONNECT_TIMEOUT')
    ]

```

.env

```
PREPR_ENDPOINT={YOUR_API_ENDPOINT}

```

Query the API
-------------

[](#query-the-api)

Option with query file (create file in app/Queries with .graphql extension):

```
$response = Http::prepr([
    'query' => 'name-of-the-file',
    'variables' => [
        'id' => 123,
    ]
]);

```

Option without a query file:

```
$response = Http::prepr([
    'raw-query' => 'query here',
    'variables' => [
        'id' => 123,
    ]
]);

```

Option with headers

```
$response = Http::prepr([
    'query' => 'name-of-the-file',
    'variables' => [
        'id' => 123
    ],
    'headers' => [
        'Prepr-Customer-Id' => request()->get('customer_id',request()->session()->getId())
    ]
]);

```

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance75

Regular maintenance activity

Popularity19

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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.

###  Release Activity

Cadence

Every ~187 days

Recently: every ~234 days

Total

6

Last Release

148d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6bc0ab4569112b5f9957aeaa2b5722232aa13b4925512cdb4d1b9e8dd3e52f22?d=identicon)[Preprio](/maintainers/Preprio)

---

Top Contributors

[![tim-hanssen](https://avatars.githubusercontent.com/u/11192051?v=4)](https://github.com/tim-hanssen "tim-hanssen (8 commits)")[![tomswinkels](https://avatars.githubusercontent.com/u/9036151?v=4)](https://github.com/tomswinkels "tomswinkels (8 commits)")[![DavydeVries](https://avatars.githubusercontent.com/u/7860305?v=4)](https://github.com/DavydeVries "DavydeVries (1 commits)")

---

Tags

laravellaravel-macroslaravelprepr

### Embed Badge

![Health badge](/badges/preprio-laravel-graphql-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/preprio-laravel-graphql-sdk/health.svg)](https://phpackages.com/packages/preprio-laravel-graphql-sdk)
```

###  Alternatives

[rtconner/laravel-likeable

Trait for Laravel Eloquent models to allow easy implementation of a 'like' or 'favorite' or 'remember' feature.

394388.0k5](/packages/rtconner-laravel-likeable)[hemp/presenter

Easy Model Presenters in Laravel

247592.6k1](/packages/hemp-presenter)[slowlyo/owl-admin

基于 laravel、amis 开发的后台框架~

61214.2k26](/packages/slowlyo-owl-admin)

PHPackages © 2026

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