Download the PHP package mathsgod/light-graphql without Composer

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

Light GraphQL

A lightweight GraphQL server library for PHP 8.3+, built on top of thecodingmachine/graphqlite.

Requirements

Installation

Dependencies

Package Purpose
thecodingmachine/graphqlite GraphQL schema generation via PHP attributes
league/container Dependency injection container
symfony/cache Schema caching
ecodev/graphql-upload File upload support (multipart/form-data)
laminas/laminas-diactoros PSR-7 HTTP request/response

Usage

Define a Controller

Use #[Query] and #[Mutation] attributes from GraphQLite to define your GraphQL fields:

Execute a Query Directly

Handle a PSR-7 Request

Server implements Psr\Http\Server\RequestHandlerInterface and supports both application/json and multipart/form-data (file uploads):

Constructor Options

Debug Mode

When debug: true, error responses include the exception message and stack trace in the extensions field:

Error Responses

All responses follow the standard GraphQL error format and always return HTTP 200:

API

Method Description
getSchemaFactory(): SchemaFactory Returns the GraphQLite SchemaFactory for adding namespaces
getContainer(): ContainerInterface Returns the DI container
getCache(): CacheInterface Returns the PSR-16 cache instance
executeQuery(?string $query, array $variables, ?string $operationName): ExecutionResult Execute a GraphQL query directly
handle(ServerRequestInterface $request): ResponseInterface Handle a PSR-7 HTTP request
executeGraphQLRequest(ServerRequestInterface $request): ResponseInterface Process a pre-parsed PSR-7 request (used internally by handle())

All versions of light-graphql with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
league/container Version ^5.2
thecodingmachine/graphqlite Version ^8.0
symfony/cache Version ^7.4
mathsgod/graphqlite-mixed-type Version ^2.3
ecodev/graphql-upload Version ^8.0
laminas/laminas-diactoros Version ^3.5
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 mathsgod/light-graphql contains the following files

Loading the files please wait ...