behindsolution / laravel-query-gate
Generic HTTP gateway for Laravel Eloquent queries.
Installs: 60
Dependents: 0
Suggesters: 0
Security: 0
Stars: 46
Watchers: 4
Forks: 3
Open Issues: 0
pkg:composer/behindsolution/laravel-query-gate
Requires
- php: ^8.2
- illuminate/database: ^10.0|^11.0|^12.0
- illuminate/http: ^10.0|^11.0|^12.0
- illuminate/pagination: ^10.0|^11.0|^12.0
- illuminate/pipeline: ^10.0|^11.0|^12.0
- illuminate/routing: ^10.0|^11.0|^12.0
- illuminate/support: ^10.0|^11.0|^12.0
Requires (Dev)
- orchestra/testbench: ^8.0|^9.0|^10.0
- phpunit/phpunit: ^10.5|^11.0
- dev-main
- v1.6.3
- v1.6.2
- v1.6.1
- v1.6.0
- v1.5.6
- v1.5.5
- v1.5.4
- v1.5.3
- v1.5.2
- v1.5.1
- v1.5.0
- v1.4.0
- v1.3.9
- v1.3.7
- v1.3.6
- v1.3.5
- v1.3.4
- v1.3.0
- v1.2.0
- v1.1.15
- v1.1.14
- v1.1.13
- v1.1.11
- v1.1.10
- v1.1.9
- v1.1.8
- v1.1.7
- v1.1.6
- v1.1.5
- v1.1.4
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.7
- v1.0.6
- v1.0.5
- v1.0.4
- dev-feature/types
- dev-feature/detail
This package is auto-updated.
Last update: 2026-02-08 15:19:22 UTC
README
A lightweight, declarative API builder for Laravel with API versioning, frontend SDK, and zero boilerplate.
Why Query Gate?
| Feature | Query Gate | Laravel Orion |
|---|---|---|
| API Versioning | ✅ Built-in | ❌ |
| Open API | ✅ | ❌ |
| Laravel 10+ | ✅ | ❌ |
| Zero Config | ✅ | ⚠️ |
Quick Start
use BehindSolution\LaravelQueryGate\Traits\HasQueryGate; class User extends Model { use HasQueryGate; public static function queryGate(): QueryGate { return QueryGate::make() ->filters(['name' => 'string', 'email' => 'email']) ->allowedFilters(['name' => ['like'], 'email' => ['eq']]) ->sorts(['name', 'created_at']); } }
# That's it! Your API is ready: GET /query/users?filter[name][like]=John&sort=-created_at
Ecosystem
🤝 Contributing
Contributions are welcome! Please see CONTRIBUTING.md for details.
📄 License
MIT