graphqlite) ideal for projects requiring a low-overhead API layer without the complexity of Apollo or GraphQL Yoga. Fits well in Symfony-based microservices or internal tools where GraphQL is needed but REST is sufficient for most use cases.@IsGranted attributes) or custom middleware.thecodingmachine/graphqlite docs (which may also be sparse). Onboarding complexity for teams unfamiliar with GraphQLite’s attribute-based schema definition.overblog/graphql-bundle, webonyx/graphql-php) with higher adoption?thecodingmachine/graphqlite (~10MB) and Symfony bundle (~500KB). Minimal bloat for small projects.graphqlite via Composer:
composer require thecodingmachine/graphqlite-bundle
UserType) with basic queries.#[Deprecated] attribute.@IsGranted).#[Type(name: "User")]).#[Type]
class User {
#[Field]
public function id(): int { ... }
#[Field]
public function name(): string { ... }
}
id, name).#[Resolver]
public function orders(User $user): array {
return $user->getOrders();
}
# config/services.yaml
App\GraphQL\Query\UserQuery:
tags: ['graphql.query']
query {
user(id: 1) {
id
name
orders { id }
}
}
# config/routes.yaml
graphql:
path: /graphql
controller: graphqlite.controller
graphqlite updates. Pin versions strictly in composer.json.graphqlite maintainers (thecodingmachine).How can I help you explore Laravel packages today?