Download the PHP package garlic/graphql-wrapper without Composer

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

Garlic GraphQL wrapper

This bundle allow microservices communicate to each other using GraphQL query builder

Installation

Just a couple things are necessary for this bundle works.

Add garlic/bus bundle to your composer.json

GraphQL way to get result from service (several services)

Important: If you want to use GraphQL wrapper you have to install garlicservices/graphql-bundle on all the services you requiested in your queries. To install bundle on application just type in console the command showed below

Easy way to use GraphQl query

Simple example of querying data from remote microservice

``

Querying internal related objects

Example of querying data from related objects

Searching on internal related objects

Example of searching data on included objects

Querying external related objects (stitchOne)

Example of query stitching to one another by using stitchOne() method (stitched result will be included as an object)

Querying external related list of objects (stitchMany)

Example of stitching queries to one another by using stitchMany() method (stitched result will be included as list of objects)

Querying stitching by using internally included objects

Example of stitching queries with fields from internally included objects

Passing request headers

You could pass any headers you want just by using addHeader method on created query:

GraphQL mutations

Mutation is the way to change service data by sending some kinds of query. What this queries are and how they could created read below.

Create new data with GraphQL mutation

Example of creating new data row on remote microservice. Method "set" put new fields data in a query and method "select" contains fields that will be returned after query done.

Update data with GraphQL mutation

Delete data with GraphQL mutation

Making async batch request with parallel processing

Query stitching in Mutation

Query stitching works the same way as in query mode. Just try, it's amazing!

Example of Create Mutation with next stitching to the query.

You can use stitching with query and mutation and vise-versa. Even several mutation can be stitched to one another.

Enjoy


All versions of graphql-wrapper with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
garlic/bus Version 1.*
jms/serializer-bundle Version ^2.0
dflydev/dot-access-data Version ^2.0
ext-json Version *
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 garlic/graphql-wrapper contains the following files

Loading the files please wait ....