All Projects → thecodingmachine → Graphqlite

thecodingmachine / Graphqlite

Use PHP Annotations to declare your GraphQL API

Projects that are alternatives of or similar to Graphqlite

Graphql Typescript
Define and build GraphQL Schemas using typed classes
Stars: ✭ 67 (-81.89%)
Mutual labels:  graphql, annotations
Core
The server component of API Platform: hypermedia and GraphQL APIs in minutes
Stars: ✭ 2,004 (+441.62%)
Mutual labels:  graphql, symfony
Requent
A GraphQL like interface to map a request to eloquent query with data transformation for Laravel.
Stars: ✭ 78 (-78.92%)
Mutual labels:  graphql, laravel
Cms
Statamic 3: The Core Composer Package
Stars: ✭ 965 (+160.81%)
Mutual labels:  graphql, laravel
Cors
🔮Supported(Laravel/Lumen/PSR-15/Swoft/Slim/ThinkPHP) - PHP CORS (Cross-origin resource sharing) middleware.
Stars: ✭ 266 (-28.11%)
Mutual labels:  laravel, symfony
Laravel Vuejs.com
Laravel and VueJs Blog, using Laravel nova, GraphQL, NuxtJs, Apollo and ...more
Stars: ✭ 54 (-85.41%)
Mutual labels:  graphql, laravel
Laravel Graphql
Facebook GraphQL for Laravel 5. It supports Relay, eloquent models, validation and GraphiQL.
Stars: ✭ 1,793 (+384.59%)
Mutual labels:  graphql, laravel
Api Platform
Create REST and GraphQL APIs, scaffold Jamstack webapps, stream changes in real-time.
Stars: ✭ 7,144 (+1830.81%)
Mutual labels:  graphql, symfony
Unite Cms
Really flexible headless CMS, built on top of Symfony and GraphQL.
Stars: ✭ 242 (-34.59%)
Mutual labels:  graphql, symfony
Lighthouse
A framework for serving GraphQL from Laravel
Stars: ✭ 2,685 (+625.68%)
Mutual labels:  graphql, laravel
Ecommerce
A powerful and lightweight eCommerce platform using ReactJs, Graphql, PHP, and Mysql.
Stars: ✭ 28 (-92.43%)
Mutual labels:  graphql, symfony
Weeshop
优雅易用的微信小程序商城,PHP商城。 基于Laravel的基因,来自Symfony的底层技术,来自Drupal Commerce的核心技术,由Drupal中国开源社区维护。QQ群:714023327
Stars: ✭ 337 (-8.92%)
Mutual labels:  laravel, symfony
Api Example
WIP: Just sample app with API
Stars: ✭ 12 (-96.76%)
Mutual labels:  graphql, symfony
Laravel Graphql
GraphQL implementation with power of Laravel
Stars: ✭ 56 (-84.86%)
Mutual labels:  graphql, laravel
Lighthouse Utils
An add-on to Lighthouse to auto-generate CRUD actions from types https://github.com/nuwave/lighthouse
Stars: ✭ 26 (-92.97%)
Mutual labels:  graphql, laravel
Laqul
A complete starter kit that allows you create amazing apps that look native thanks to the Quasar Framework. Powered by an API developed in Laravel Framework using the easy GraphQL queries language. And ready to use the Google Firebase features.
Stars: ✭ 110 (-70.27%)
Mutual labels:  graphql, laravel
Laravel Vue Boilerplate
🐘 A Laravel 6 SPA boilerplate with a users CRUD using Vue.js 2.6, GraphQL, Bootstrap 4, TypeScript, Sass, and Pug.
Stars: ✭ 472 (+27.57%)
Mutual labels:  graphql, laravel
Graphqlbundle
This bundle provides tools to build a complete GraphQL server in your Symfony App.
Stars: ✭ 628 (+69.73%)
Mutual labels:  graphql, symfony
Kreta
Modern project management solution
Stars: ✭ 177 (-52.16%)
Mutual labels:  graphql, symfony
Endoflife.date
Informative site with EoL dates of everything
Stars: ✭ 296 (-20%)
Mutual labels:  laravel, symfony

GraphQLite logo

GraphQLite

GraphQL in PHP made easy.

Documentation · Contributing


A library that allows you to write your GraphQL queries in simple-to-write controllers.

Features

  • Create a complete GraphQL API by simply annotating your PHP classes
  • Framework agnostic, but Symfony bundle available!
  • Comes with batteries included 🔋: queries, mutations, mapping of arrays / iterators, file uploads, extendable types and more!

Basic example

First, declare a query in your controller:

class ProductController
{
    /**
     * @Query()
     */
    public function product(string $id): Product
    {
        // Some code that looks for a product and returns it.
    }
}

Then, annotate the Product class to declare what fields are exposed to the GraphQL API:

/**
 * @Type()
 */
class Product
{
    /**
     * @Field()
     */
    public function getName(): string
    {
        return $this->name;
    }
    // ...
}

That's it, you're good to go 🎉! Query and enjoy!

{
  product(id: 42) {
    name
  }
}

Want to learn more? Head to the documentation!

Badges

Latest Stable Version Total Downloads Latest Unstable Version License Continuous Integration codecov

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].