Download the PHP package monkeyscloud/monkeyslegion-graphql without Composer

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

MonkeysLegion-GraphQL

Code-first GraphQL server for the MonkeysLegion framework — PHP 8.4 attributes, PSR-15, DataLoader, subscriptions, and security out of the box.

Requirements

Installation

The GraphQLProvider is auto-registered via composer.json extra.

Quick Start

1. Define a Type

2. Define a Query

3. Define a Mutation

4. Configure

Features

Attributes

Attribute Target Purpose
#[Type] Class GraphQL object type
#[Field] Method/Property Object type field
#[Query] Class Root query field
#[Mutation] Class Root mutation field
#[Subscription] Class Subscription field
#[Arg] Parameter Argument metadata
#[InputType] Class Input object type
#[Enum] Backed enum Enum type
#[InterfaceType] Class/Interface Interface type
#[UnionType] Class Union type
#[Middleware] Class/Method Per-field middleware

Custom Scalars

Security

DataLoader (N+1 Prevention)

Relay Pagination

Subscriptions

Supports graphql-ws protocol with in-memory and Redis PubSub backends.

File Uploads

Follows the GraphQL multipart request spec:

CLI Commands

Command Description
php ml graphql:schema:dump Dump schema as SDL
php ml graphql:schema:validate Validate schema
php ml graphql:cache:warm Warm schema cache
php ml graphql:cache:clear Clear schema cache
php ml graphql:introspect Dump introspection JSON

Entity Integration

When monkeyslegion-entity is installed, you can auto-map your entities to GraphQL types without writing boilerplate type classes.

Entity Example

Auto-Map Entities to GraphQL Types

Auto-Generated CRUD Resolvers

Use EntityResolver to expose entities without manual resolver classes:

Full Example: Entity-Backed Schema

Route Registration

GraphQLProvider automatically registers routes with monkeyslegion-router when the application boots.

Default Routes

Method Path Handler Description
POST /graphql GraphQLMiddleware Queries & mutations
GET /graphql GraphQLMiddleware Simple GET queries
GET /graphiql GraphiQLMiddleware Interactive IDE (dev)

Configuration

How Route Registration Works

The GraphQLProvider::register() method is called automatically during application bootstrap (via the monkeyslegion extra in composer.json). Here's what happens:

Custom Route Middleware

Stack your own middleware (auth, CORS, rate-limiting) alongside GraphQL:

Testing the Endpoint

Facade

License

MIT — see LICENSE for details.


All versions of monkeyslegion-graphql with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
webonyx/graphql-php Version ^15.32
psr/http-message Version ^2.0
psr/http-server-middleware Version ^1.0
psr/simple-cache Version ^3.0
psr/container Version ^2.0
nyholm/psr7 Version ^1.8
monkeyscloud/monkeyslegion-core Version ^2.0
monkeyscloud/monkeyslegion-di Version ^2.0
monkeyscloud/monkeyslegion-router Version ^2.0
monkeyscloud/monkeyslegion-mlc Version ^2.0
monkeyscloud/monkeyslegion-cli Version ^2.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 monkeyscloud/monkeyslegion-graphql contains the following files

Loading the files please wait ...