GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - thecodingmachine/graphqlite-bundle: A Symfony bundle for thecodingmachine/graphqlite.

BranchesTags
Open more actions menu

Latest commit

 

History

492 Commits
492 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
config-template
config-template
 
 
docs
docs
 
 
src
src
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.symfony.bundle.yaml
.symfony.bundle.yaml
 
 
README.md
README.md
 
 
composer.json
composer.json
 
 
phpstan.neon
phpstan.neon
 
 
phpunit.xml.dist
phpunit.xml.dist
 
 

Repository files navigation

Latest Stable Version License Build Status

GraphQLite bundle

Symfony bundle for GraphQLite: build a GraphQL API by adding PHP attributes (#[Query], #[Mutation], #[Type], #[Field]...) to your classes. The bundle exposes the /graphql endpoint and integrates GraphQLite with Symfony services, Security, Validator, file uploads and cache.

Documentation: docs/index.rst

Requirements

  • PHP 8.1+
  • Symfony 6.4, 7.x or 8.x
  • GraphQLite ^8

Quick start

  1. Install the bundle (Symfony Flex enables it and creates its configuration):

    composer require thecodingmachine/graphqlite-bundle
  2. Tell GraphQLite where your GraphQL classes live:

    # config/packages/graphqlite.yaml
    graphqlite:
        namespace:
            controllers: App\GraphQL\Controller\
            types:
                - App\Entity\
                - App\GraphQL\Input\
  3. Write your first query and call /graphql:

    // src/GraphQL/Controller/HelloController.php
    namespace App\GraphQL\Controller;
    
    use TheCodingMachine\GraphQLite\Annotations\Query;
    
    class HelloController
    {
        #[Query]
        public function hello(string $name = 'world'): string
        {
            return sprintf('Hello %s', $name);
        }
    }

Continue with the getting started tutorial.

Development

  • Tests: vendor/bin/simple-phpunit
  • Static analysis: composer phpstan
  • The code examples of docs/ are tested: they must stay identical to the classes of tests/DocsFixtures/ (see tests/DocsExamplesTest.php).

About

A Symfony bundle for thecodingmachine/graphqlite.

Resources

Readme
Activity
Custom properties

Stars

38 stars

Watchers

13 watching

Forks

43 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.