PHPackages                             daniel-de-wit/lighthouse-paperclip - 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. daniel-de-wit/lighthouse-paperclip

ActiveLibrary

daniel-de-wit/lighthouse-paperclip
==================================

Lighthouse GraphQL Directives for Paperclip attachment support

v5.0.0(3y ago)136.2k↓22.5%1[1 PRs](https://github.com/daniel-de-wit/lighthouse-paperclip/pulls)MITPHPPHP ^8.1

Since Nov 24Pushed 2y ago1 watchersCompare

[ Source](https://github.com/daniel-de-wit/lighthouse-paperclip)[ Packagist](https://packagist.org/packages/daniel-de-wit/lighthouse-paperclip)[ Docs](https://github.com/daniel-de-wit/lighthouse-paperclip)[ RSS](/packages/daniel-de-wit-lighthouse-paperclip/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (10)Versions (13)Used By (0)

Lighthouse Paperclip
====================

[](#lighthouse-paperclip)

[![Latest Version on Packagist](https://camo.githubusercontent.com/ef1415ff444f6e6fa597f1e6c27255525aee07c8edf74d7dca6413c080583464/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64616e69656c2d64652d7769742f6c69676874686f7573652d7061706572636c69702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/daniel-de-wit/lighthouse-paperclip)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/c85ecf3a8639e3efbb13b1e6f455c0d80aa90e2ef7f280de4f14543cec554bcc/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f64616e69656c2d64652d7769742f6c69676874686f7573652d7061706572636c69702f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/daniel-de-wit/lighthouse-paperclip)[![Coverage Status](https://camo.githubusercontent.com/d606b605bd71355266f82a5bdf1359e39e4ae7b2dfb4f55f7ee0f068d3352ae0/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f64616e69656c2d64652d7769742f6c69676874686f7573652d7061706572636c69702f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/daniel-de-wit/lighthouse-paperclip?branch=master)[![Total Downloads](https://camo.githubusercontent.com/b5fcd87140165a13ae43d039807b4e4cf87056c4ef80ca0bb6eb96e3e6cf81e4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64616e69656c2d64652d7769742f6c69676874686f7573652d7061706572636c69702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/daniel-de-wit/lighthouse-paperclip)

This package will add two directives that will support working with [czim/laravel-paperclip](https://github.com/czim/laravel-paperclip).

[![](lighthouse-paperclip-demo.gif)](lighthouse-paperclip-demo.gif)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require daniel-de-wit/lighthouse-paperclip
```

Usage
-----

[](#usage)

Apply the `@attachment` directive to get an url for the attachment.

```
type Blog {
    image: String @attachment
}
```

Apply the `@variant` to automatically generate an enum for available variant resizes.

```
type Blog {
    image(variant: _ @variant): String @attachment
}
```

### Testing

[](#testing)

```
composer test
```

Development (docker)
--------------------

[](#development-docker)

```
make setup
```

```
make test
```

PHP CLI

```
make app
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Daniel de Wit](https://github.com/daniel-de-wit)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 82.6% 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.

###  Release Activity

Cadence

Every ~85 days

Recently: every ~152 days

Total

11

Last Release

1148d ago

Major Versions

v1.0.1 → v2.0.02021-01-05

v2.1.1 → v3.0.02021-07-20

v3.2.1 → v4.0.02022-11-18

v4.0.0 → v5.0.02023-03-28

PHP version history (3 changes)v1.0.0PHP ^7.4

v2.1.0PHP ^7.4|^8.0

v4.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/280a3fc65bcb018cdda3598076ca8040dbe6786970b2317d14d6f5f61d50a6c5?d=identicon)[daniel-de-wit](/maintainers/daniel-de-wit)

---

Top Contributors

[![daniel-de-wit](https://avatars.githubusercontent.com/u/3015394?v=4)](https://github.com/daniel-de-wit "daniel-de-wit (19 commits)")[![Miljoen](https://avatars.githubusercontent.com/u/31883285?v=4)](https://github.com/Miljoen "Miljoen (3 commits)")[![wimski](https://avatars.githubusercontent.com/u/12373573?v=4)](https://github.com/wimski "wimski (1 commits)")

---

Tags

lighthouselaravel-paperclipdaniel-de-witlighthouse-paperclip

###  Code Quality

TestsPHPUnit

Static AnalysisRector

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/daniel-de-wit-lighthouse-paperclip/health.svg)

```
[![Health](https://phpackages.com/badges/daniel-de-wit-lighthouse-paperclip/health.svg)](https://phpackages.com/packages/daniel-de-wit-lighthouse-paperclip)
```

###  Alternatives

[joselfonseca/lighthouse-graphql-passport-auth

Add GraphQL types and mutations for login and recover password functionalities

234769.9k1](/packages/joselfonseca-lighthouse-graphql-passport-auth)[daniel-de-wit/lighthouse-sanctum

Laravel Sanctum support for Laravel Lighthouse.

61115.9k](/packages/daniel-de-wit-lighthouse-sanctum)[yakovenko/laravel-lighthouse-graphql-multi-schema

A Laravel package that provides multi-schema support for Lighthouse GraphQL.

1562.5k](/packages/yakovenko-laravel-lighthouse-graphql-multi-schema)[stayallive/lighthouse-graphql-hive

Performance monitoring Lighthouse with GraphQL Hive.

2223.3k](/packages/stayallive-lighthouse-graphql-hive)

PHPackages © 2026

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