Download the PHP package zestic/pest-plugin-graphql without Composer

On this page you can find all versions of the php package zestic/pest-plugin-graphql. 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 pest-plugin-graphql

Pest GraphQL Plugin

Test your GraphQL API in style, with Pest!

Installation

Simply install through Composer!

In your .env file, set the testing url

To organize your tests, create an Api directory in your tests directory.

Make sure your namespace is set up correctly in the composer.json file.

Finally, in your Pest.php file add the following line:

What's Added?

Expectations

And more on the way!

schema(string|Schema $document)

Create a new expectation with a GraphQL\Type\Schema instance as the underlying value.

You can also provide an alternative schema path or document contents, like so.

isValidSdl()

Assert that the schema is valid and written to the GraphQL specification.

toHaveDirective(string $directive)

Assert that the given directive definition exists with the schema document.

toHaveEnum(string $enum)

Assert that the given enum definition exists with the schema document.

toHaveInput(string $input)

Assert that the given input definition exists with the schema document.

toHaveInterface(string $interface)

Assert that the given interface definition exists with the schema document.

toHaveScalar(string $scalar)

Assert that the given scalar definition exists with the schema document.

toHaveType(string $type)

Assert that the given (object) type has been defined within the schema document.

toHaveUnion(string $union)

Assert that the given union definition exists with the schema document.

toBeGraphQlResponse()

Assert that an underlying (PSR-7) response value is a compliant with the GraphQL specification.

toHavePath(string $path, $value = null)

Assert that the underlying GraphQL response contains data at the given path. Optionally provide a value to be checked as well!

toHaveData(array $data)

Assert that the underlying response GraphQL data is canonically equal to the expected data.

toHaveErrors(array $errors)

Assert that the underlying response GraphQL errors are canonically equal to the expected set of errors.


This repository was based off of the Pest Plugin Template.

Pest was created by Nuno Maduro under the Sponsorware license. It got open-sourced and is now licensed under the MIT license.


All versions of pest-plugin-graphql with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
pestphp/pest Version ^2.0
pestphp/pest-plugin Version ^2.0.1
psr/http-message Version ^1.0
webonyx/graphql-php Version >=15
zestic/graphql-simple-client Version ^0.1.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 zestic/pest-plugin-graphql contains the following files

Loading the files please wait ....