Download the PHP package player259/graphql-bundle without Composer

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

Player259GraphQLBundle

About

The Player259GraphQLBundle integrates webonyx/graphql-php library into symfony applications.

CI Status

Usage documentation.

Features

Installation

The Player259GraphQLBundle requires PHP 7.1+ and Symfony 4.4+.

You can install the bundle using Symfony Flex:

$ composer require player259/graphql-bundle

If you're not using Flex, then add the bundle to your config/bundles.php:

Import routing file:

Or assign endpoint to specific url:

By default bundle registers /graphql endpoint.

Configuration

Default configuration in config/packages/player259_graphql.yaml.

With debug option set to true response errors will contain debugMessage and trace.

logger parameter is a service name to log exceptions.
If it's prefixed with ? it will not throw exception if no such service exists.

Example

To create your first GraphQL API (with default Symfony 5 installation and no configuration):

  1. Create class which extends webonyx ObjectType with name Query
  2. Add at least one field and resolver
  3. Make a request to /graphql url

Documentation

Usage examples can be found in documentation.

Not yet implemented

Pass execution rules, disabling introspection, query depth and complexity.

Dispatching events to override server parameters such as promiseAdapter, error formatters and handlers.

Allow to merge non-root types to get more flexibility.

Maybe custom type config property resolveMethod to call specific method or another service.

Another option is annotations, something like @GraphQL\Resolve("App\GraphQL\QueryType", "users") so it could be attached to any service with public method. There will be no autowiring but it can be useful in some cases.

License

Released under the MIT License, see LICENSE.


All versions of graphql-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1.3|^8.0
ext-json Version *
nyholm/psr7 Version ^1.2
psr/log Version ^1|^2
symfony/config Version ^4.4|^5.0
symfony/dependency-injection Version ^4.4|^5.0
symfony/http-kernel Version ^4.4|^5.0
symfony/property-access Version ^4.4|^5.0
symfony/psr-http-message-bridge Version ^2.0
webonyx/graphql-php Version ^0.12.6|^0.13.0|^14.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 player259/graphql-bundle contains the following files

Loading the files please wait ....