PHPackages                             graphlr/prepr-api-laravel - 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. graphlr/prepr-api-laravel

Abandoned → [preprio/laravel-sdk](/?search=preprio%2Flaravel-sdk)ArchivedLibrary[API Development](/categories/api)

graphlr/prepr-api-laravel
=========================

Prepr API wrapper for Laravel

v1.7.0(5y ago)25.5k1MITPHPPHP &gt;=5.6.4

Since Sep 24Pushed 5y ago2 watchersCompare

[ Source](https://github.com/preprio/prepr-api-laravel)[ Packagist](https://packagist.org/packages/graphlr/prepr-api-laravel)[ RSS](/packages/graphlr-prepr-api-laravel/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (2)Versions (22)Used By (0)

Laravel Prepr API Wrapper
=========================

[](#laravel-prepr-api-wrapper)

This Laravel package is a wrapper for the [Prepr](https://prepr.io) API.

Compatible with Laravel v5x, v6x, v7x, v8x.

#### Installation

[](#installation)

You can install the package via composer:

```
composer require graphlr/prepr-api-laravel
```

#### Environment variables

[](#environment-variables)

```
PREPR_URL=https://api.eu1.prepr.io/
PREPR_TOKEN=ToKeN
PREPR_CACHE=true
PREPR_CACHE_TIME=1800

```

#### Override variables

[](#override-variables)

For all the requests

```
config(['prepr.url' => 'https://api.eu1.prepr.io/']);
config(['prepr.token' => 'ToKeN']);
```

The authorization can also be set for one specific request `->url('url')->authorization('token')`.

#### Examples

[](#examples)

```
use Graphlr\Prepr\Prepr;
```

##### Get All

[](#get-all)

```
$apiRequest = (new Prepr)
    ->path('tags')
    ->query([
        'fields' => 'example'
    ])
    ->get();

if($apiRequest->getStatusCode() == 200) {
    dump($apiRequest->getResponse());
}
```

##### Get Single

[](#get-single)

```
$apiRequest = (new Prepr)
    ->path('tags/{id}',[
        'id' => 1
    ]),
    ->query([
        'fields' => 'example'
    ])
    ->get();

if($apiRequest->getStatusCode() == 200) {
    dump($apiRequest->getResponse());
}
```

##### Post

[](#post)

```
$apiRequest = (new Prepr)
    ->path('tags')
    ->params([
        'body' => 'Example'
    ])
    ->post();

if($apiRequest->getStatusCode() == 201) {
    dump($apiRequest->getResponse());
}
```

##### Put

[](#put)

```
$apiRequest = (new Prepr)
    ->path('tags')
    ->params([
        'body' => 'Example'
    ])
    ->put();

if($apiRequest->getStatusCode() == 200) {
    dump($apiRequest->getResponse());
}
```

##### Delete

[](#delete)

```
$apiRequest = (new Prepr)
    ->path('tags/{id}',[
        'id' => 1
    ])
    ->delete();

if($apiRequest->getStatusCode() == 204) {
    // Deleted.
}
```

##### A/B testing

[](#ab-testing)

```
$apiRequest = (new Prepr)
    ->path('tags/{id}',[
        'id' => 1
    ]),
    ->query([
        'fields' => 'example'
    ])
    ->userId(session()->getId())
    ->get();

if($apiRequest->getStatusCode() == 200) {
    dump($apiRequest->getResponse());
}
```

##### Multipart/Chunk upload

[](#multipartchunk-upload)

```
$apiRequest = (new Prepr)
    ->path('assets')
    ->params([
      'body' => 'Example',
    ])
    ->file('/path/to/file.txt') // For laravel storage: storage_path('app/file.ext')
    ->post();

if($apiRequest->getStatusCode() == 200) {
    dump($apiRequest->getResponse());
}
```

##### Autopaging

[](#autopaging)

```
$apiRequest = (new Prepr)
    ->path('publications')
    ->query([
        'limit' => 200 // optional
    ])
    ->autoPaging();

if($apiRequest->getStatusCode() == 200) {
    dump($apiRequest->getResponse());
}
```

#### Debug

[](#debug)

For debug you can use `getRawResponse()`

#### Documentation

[](#documentation)

[For all the details and full documentation check out the Prepr Developer docs](https://developers.prepr.io/docs)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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 ~27 days

Recently: every ~39 days

Total

20

Last Release

1911d ago

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/8c7879f8b7109d27d5214a360cd3787063814323878e9070308e258ecd3d620d?d=identicon)[ts-media](/maintainers/ts-media)

---

Top Contributors

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

---

Tags

laravelphpsdklaravelpreprpreprforradio

### Embed Badge

![Health badge](/badges/graphlr-prepr-api-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/graphlr-prepr-api-laravel/health.svg)](https://phpackages.com/packages/graphlr-prepr-api-laravel)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[statamic/cms

The Statamic CMS Core Package

4.8k3.2M720](/packages/statamic-cms)[irazasyed/telegram-bot-sdk

The Unofficial Telegram Bot API PHP SDK

3.3k4.5M84](/packages/irazasyed-telegram-bot-sdk)[flat3/lodata

OData v4.01 Producer for Laravel

96320.9k](/packages/flat3-lodata)[laravel-freelancer-nl/laravel-index-now

Alert search engines of content changes.

5212.1k](/packages/laravel-freelancer-nl-laravel-index-now)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

762.6k](/packages/scriptdevelop-whatsapp-manager)

PHPackages © 2026

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