PHPackages                             lastdragon-ru/lara-asp-graphql-printer - 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. lastdragon-ru/lara-asp-graphql-printer

Abandoned → [lastdragon-ru/graphql-printer](/?search=lastdragon-ru%2Fgraphql-printer)Library[API Development](/categories/api)

lastdragon-ru/lara-asp-graphql-printer
======================================

The Awesome Set of Packages for Laravel - The GraphQL Printer.

9.3.1(10mo ago)181.2k↑215.6%MITPHPPHP ^8.3|^8.4

Since Mar 20Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/LastDragon-ru/lara-asp-graphql-printer)[ Packagist](https://packagist.org/packages/lastdragon-ru/lara-asp-graphql-printer)[ Docs](https://github.com/LastDragon-ru/lara-asp)[ RSS](/packages/lastdragon-ru-lara-asp-graphql-printer/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependencies (8)Versions (47)Used By (0)

GraphQL Printer
===============

[](#graphql-printer)

Warning

Package is abandoned, please use [`lastdragon-ru/graphql-printer`](https://github.com/LastDragon-ru/graphql-printer) instead.

Independent (from Laravel and Lighthouse) package that allow you to print GraphQL Schema and Queries in highly customized way eg you can choose indent size, print only used/wanted/all types, print only one type, print used/wanted/all directives ([it is not possible with standard printer](https://github.com/webonyx/graphql-php/issues/552)) and even check which types/directives are used in the Schema/Query.

Requirements
============

[](#requirements)

RequirementConstraintSupported byPHP`^8.4``HEAD ⋯ 8.0.0``^8.3``HEAD ⋯ 5.0.0``^8.2``7.2.0 ⋯ 3.0.0``^8.1``6.4.2 ⋯ 3.0.0``^8.0``4.6.0 ⋯ 3.0.0``webonyx/graphql-php``^15.4.0``HEAD ⋯ 4.2.1``^15.2.4``4.2.0 ⋯ 4.0.0``^14.11.9``3.0.0`Installation
============

[](#installation)

```
composer require lastdragon-ru/graphql-printer
```

Usage
=====

[](#usage)

There are two primary methods: `Printer::print()` and `Printer::export()`. The `print()` will print the current type only, meanwhile `export()` will print the current type and all used types/directives:

```
