Download the PHP package tylerfiekens/graphqlite-laravel without Composer

On this page you can find all versions of the php package tylerfiekens/graphqlite-laravel. 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 graphqlite-laravel

Latest Stable Version Latest Unstable Version License Build Status

Laravel GraphQLite bindings

GraphQLite integration package for Laravel.

This package is based on the work of the friendly folks over at TheCodingMachine.

Installation

Publish the configuration file

Usage

The package will automatically register the routes for the GraphQL endpoint. You can access the GraphQL endpoint at /graphql.

By default, the package will look for your GraphQL types in the App\GraphQL\Types namespace, and your queries and mutations in the App\GraphQL\Queries and App\GraphQL\Mutations namespaces respectively. You can change these settings in the config/graphqlite.php configuration file.

Types

To create a new type, you can just create a new class in the App\GraphQL\Types namespace. The only requirement is that the class must have a #[Type] annotation, which is used to register the type in the schema.

To add fields to the type, you can create public methods with a #[Field] annotation. The method name will be used as the field name.

That's it! The type will be automatically registered in the schema.

Queries

Now let's create a query to fetch an example object.

By default, the package will look for queries in the App\GraphQL\Queries namespace.

Queries are created in the same way as types, but with a #[Query] annotation instead of a #[Type] annotation.

The query will be automatically registered in the schema. You can now query it in your GraphQL client.

Mutations

Now let's create a mutation to create a new example object.

By default, the package will look for mutations in the App\GraphQL\Mutations namespace.

Mutations are created in the same way as queries, but with a #[Mutation] annotation instead of a #[Query] annotation.

The mutation will be automatically registered in the schema. You can now call it in your GraphQL client.


All versions of graphqlite-laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
thecodingmachine/graphqlite Version ^v7.0.0
illuminate/console Version ^11
illuminate/container Version ^11
illuminate/support Version ^11
illuminate/cache Version ^11
symfony/psr-http-message-bridge Version ^6
laminas/laminas-diactoros Version ^3.5
symfony/cache Version ^6
psr/container Version ^2.0.2
ecodev/graphql-upload Version ^7.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 tylerfiekens/graphqlite-laravel contains the following files

Loading the files please wait ...