Download the PHP package lastdragon-ru/lara-asp-graphql-printer without Composer

On this page you can find all versions of the php package lastdragon-ru/lara-asp-graphql-printer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package lara-asp-graphql-printer

GraphQL Printer

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) and even check which types/directives are used in the Schema/Query.

[include:artisan]: <lara-asp-documentator:requirements "{$directory}">

Requirements

Requirement Constraint Supported by
PHP ^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

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:

The $printer->print($type) is:

The $printer->export($type) is:

Customization

Please see:

Filtering

[!NOTE]

By default, built-in/internal type/directives are not printed, if you want/need them, you should allow them by type/directive definitions filters.

The Printer allows filter out types and directives. This may be useful to exclude them from the schema completely. Filtering also works for queries. Please note that types filtering will work only if the schema is known (the schema is required to determine the type of argument nodes). For some AST node types, their type may also be required.

The $printer->print($schema) is:

The $printer->print($query) is:

Laravel/Lighthouse

It is highly recommended to use lara-asp-graphql package to use the Printer within the Laravel/Lighthouse application.

Testing Assertions

assertGraphQLExportableEquals

Exports and compares two GraphQL schemas/types/nodes/etc.

Read more.

assertGraphQLPrintableEquals

Prints and compares two GraphQL schemas/types/nodes/etc.

Read more.

Upgrading

Please follow Upgrade Guide.

Contributing

This package is the part of Awesome Set of Packages for Laravel. Please use the main repository to report issues, send pull requests, or ask questions.


All versions of lara-asp-graphql-printer with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3|^8.4
ext-mbstring Version *
symfony/polyfill-php84 Version ^1.31
webonyx/graphql-php Version ^15.4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package lastdragon-ru/lara-asp-graphql-printer contains the following files

Loading the files please wait ....