Download the PHP package victormgomes/laravel-query-engine without Composer

On this page you can find all versions of the php package victormgomes/laravel-query-engine. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-query-engine

Laravel Query Engine

Automatically generates dynamic API parameters, strict validation, and optimized queries based on Eloquent Models.

Package Status

Latest Version on Packagist Total Downloads License

PHP Versions Laravel Versions

Tests Status Code Style Status Code Quality Status

Why Use It?

Stop writing repetitive boilerplate for every index endpoint. laravel-query-engine acts as a seamless bridge between your HTTP requests and Eloquent.

It empowers a single RESTful controller to handle dynamic, infinitely complex API queries. It automatically handles all the heavy lifting—validation, type casting, and query construction—while respecting your model's native configuration.

You get the extreme flexibility of GraphQL, but with the simplicity and performance of standard Laravel REST APIs.

Features

How It Works

Pass dynamic query parameters via the URL using standard arrays or JSON.

The Request:

What the package executes under the hood:


Installation

  1. Install the package via Composer:

  2. Publish the configuration file:

Quick Start

Step 1: Auto-generate validation rules

Annotate your FormRequest with #[MapQueryEngine(Model::class)].

It generates the validation rules based on the model schema.

Step 2: Build the query

The package automatically adds powerful new methods directly to all your Eloquent models. You can call these anywhere in your application (such as a Controller or a Service class) by simply passing the validated request:

This returns a LengthAwarePaginator with all valid filters, sorts, includes, and pagination automatically applied.


Documentation

For a deep dive into the features, please read the Official Documentation.


Credits

Support Us

If you find this package useful in your day-to-day development, please consider sponsoring my work or leaving a ⭐ on the repository. Your support directly helps keep this project actively maintained and free!


Community & Guidelines


License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-query-engine with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^12.0 || ^13.0
illuminate/support Version ^12.0 || ^13.0
illuminate/database Version ^12.0 || ^13.0
illuminate/http Version ^12.0 || ^13.0
illuminate/pagination Version ^12.0 || ^13.0
illuminate/validation Version ^12.0 || ^13.0
illuminate/console Version ^12.0 || ^13.0
nesbot/carbon Version ^3.0
symfony/finder Version ^7.0 || ^8.0
ext-filter Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package victormgomes/laravel-query-engine contains the following files

Loading the files please wait ...