Download the PHP package garlic/graphql without Composer

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

Garlic GraphQL bundle

This bundle allow to communicate microservices via graphql to each other. It should be installed on both endpoints for proper message encode/decode flow.

This bundle based on youshido-php/GraphQLBundle, so special thanks to this guys for the excellent work! We've just made a couple updates ;)

Configuration

There are necessary things make this bundle works:

Add bundle to the Symfony project

Initialize GraphQL schema(create schema, query and mutation fields)

Create graphql type (command able to get fields from existing Entity)

The command suggest you to create full CRUD mutations and queries, just type "y" to do so. There would be created CRUD-classes with related functionality. Last thing you need to make this bundle working is to update your service.yaml

Make your first graphql query or mutation

Now you can review and update newly created files!

It's time to run your first query! Try to send your query to mydomain.com/graphql

Usage

Example steps to use bundle after init

  1. Create Entity (for example Apartments)
  2. Create GraphQL type by using command above (for example name it Apartment), type "y" to make CRUD mutations automatically.
  3. Try to execute a query

Using related types

  1. Let's create new Entity (for example Address) and connect it to Apartments by using many to one relation.
  2. Create GraphQL type "Address" similar to step one
  3. Add newly created type to Apartment type as new Address()
  4. Try to find Apartment with address fields (for example id)

or directly by Address "where" query (for example id)

GraphiQL extension

You can write queries in interactive editor with integrated documentation about schemas, queries and mutation. To run this editor just run graphiql extension. Type to access to extension - mydomain.com/graphql/explorer Extension is accessible only in development mode of Symfony application.

Enjoy!


All versions of graphql with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
youshido/graphql-bundle Version ^1.4
symfony/validator Version ^4.2
symfony/maker-bundle Version ^1.12
symfony/orm-pack Version ^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 garlic/graphql contains the following files

Loading the files please wait ....