Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Graphqlite Laravel

Graphqlite Laravel Laravel Package

thecodingmachine/graphqlite-laravel

Seamlessly integrates GraphQLite with Laravel, letting you define GraphQL queries and mutations using PHP attributes, type-hinted classes, and dependency injection. Includes configuration, service provider wiring, and Laravel-friendly setup for building typed GraphQL APIs.

View on GitHub
Deep Wiki
Context7

A Laravel service provider package to help you get started with GraphQLite in Laravel.

Frequently asked questions about Graphqlite Laravel
How do I install thecodingmachine/graphqlite-laravel in a Laravel application?
Install it with Composer as thecodingmachine/graphqlite-laravel and confirm Laravel package auto-discovery registers the service provider. You will also need GraphQLite itself and any configuration publishing the package provides. Pin exact versions during a pilot and verify the provider boots against your Laravel and PHP versions.
Which Laravel, PHP, and GraphQLite versions does this package support?
The package is a small adapter, and its supported versions depend on its Composer constraints and CI coverage. The last release noted in the assessment is May 2023, so verify current Laravel, PHP, and GraphQLite compatibility before adoption. Run a time-boxed compatibility spike rather than assuming compatibility from the package name alone.
Does graphqlite-laravel replace GraphQLite or only integrate it with Laravel?
It is a thin Laravel service provider that wires GraphQLite into a Laravel application; it does not replace GraphQLite or provide a full GraphQL platform. Schema design, authorization, caching, query-complexity controls, and error formatting remain your responsibility or come from other packages. Treat it as a convenience adapter between Laravel's container and GraphQLite.
How do I register GraphQLite controllers and resolvers in Laravel's container?
The package provides Laravel service-provider wiring so GraphQLite can resolve type-hinted classes through the container. Resolver registration should follow GraphQLite's attribute and controller conventions within your application namespaces. Confirm that attribute discovery works with your autoloading strategy and that Laravel dependencies are injectable.
Can I enforce Laravel policies and gates in GraphQLite resolvers?
Laravel policies and gates can be enforced from your resolver code, but the package itself is not an authorization layer. You need to apply authorization consistently at resolver boundaries and avoid exposing fields or mutations that bypass policy checks. Test both token or session authentication and policy-based authorization during the compatibility spike.
Does this package handle GraphQL routing, middleware, authentication, and error formatting?
The package is primarily service-provider wiring and Laravel-friendly configuration; routing, middleware, authentication, and error formatting may need to be set up in your application or by GraphQLite itself. Review the package source and README to confirm exactly what it owns before relying on it. Do not assume it provides production-grade endpoint hardening, introspection controls, or query-complexity limits.
Is graphqlite-laravel actively maintained and safe for production use?
The assessment notes only 18 stars and a last release in May 2023, so it should be treated as a convenience adapter rather than a strategically supported framework component. The core GraphQLite library may be healthy, but this wrapper adds a fragile integration layer. Use a bounded pilot, pin versions, and keep a fallback plan before production adoption.
What are the alternatives to graphqlite-laravel for a Laravel GraphQL API?
If you have already chosen GraphQLite, the main alternative is depending directly on GraphQLite and writing a small in-house Laravel service provider. For greenfield GraphQL APIs, evaluate Laravel GraphQL stacks such as Lighthouse, which have larger communities and stronger long-term support. Compare maintenance, authorization, caching, and query-complexity features before choosing.
How should I test GraphQL queries and mutations when using this package?
Test through Laravel's HTTP layer by posting GraphQL queries to your endpoint and asserting the JSON response. Also add resolver-level tests for authorization, dependency injection, and schema boot failures. Include tests for introspection exposure, N+1 query behavior, and error formatting in staging or CI.
What is the fallback if graphqlite-laravel is abandoned or incompatible with a newer Laravel release?
Because the integration surface is small, the fallback is to extract its service-provider logic into application code and depend directly on GraphQLite. Keep the GraphQL endpoint behind a feature flag and pin exact versions so an upgrade cannot break production unexpectedly. Plan for community issues or an internal fork rather than guaranteed vendor support.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo
bernskioldmedia/laravel-harvest
bernskiold/laravel-data-scrubber
bernskiold/laravel-currency-converter
bernskiold/laravel-campaign-monitor
bernskioldmedia/laravel-autotranslate
siberfx/telegram-bot
roy-sandip/laravel-view-extended
gregsphotography/site-builder-core
roy-sandip/laravel-view
anodyne/blade-fluentui-icons
webx-ui/module-catalog-collections