PHPackages                             rakibdevs/laravel-query-extra - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. rakibdevs/laravel-query-extra

AbandonedArchivedLibrary

rakibdevs/laravel-query-extra
=============================

Run complex SQL queries from API requests such as update different conditional records in a single query

81PHP

Since May 21Pushed 4y ago1 watchersCompare

[ Source](https://github.com/RakibDevs/laravel-query-extra)[ Packagist](https://packagist.org/packages/rakibdevs/laravel-query-extra)[ RSS](/packages/rakibdevs-laravel-query-extra/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

✔ Contribute to improve the package! Thanks in advance.

Laravel Query Extra
-------------------

[](#laravel-query-extra)

[![GitHub stars](https://camo.githubusercontent.com/2c4272bce73f37a48679b4778f4230de672bdb7b5b2bec08583139feba86e20b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f72616b6962646576732f6c61726176656c2d71756572792d6578747261)](https://github.com/rakibdevs/laravel-query-extra/stargazers)[![GitHub forks](https://camo.githubusercontent.com/d90d12b374eabc2b97ee5886acf8c2fdc547622ca634fe444fce691883bc5ba5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f72616b6962646576732f6c61726176656c2d71756572792d6578747261)](https://github.com/rakibdevs/laravel-query-extra/network)[![GitHub issues](https://camo.githubusercontent.com/9ba31d9d89c81b5609342a58b83a449e362ba203abb6d04a566d9dc777bcd25c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f72616b6962646576732f6c61726176656c2d71756572792d6578747261)](https://github.com/rakibdevs/laravel-query-extra/issues)[![GitHub license](https://camo.githubusercontent.com/6fa26031ad8cd39a75d02a4563a02a9a0abca247bc7da6a23058b49be55bead8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f72616b6962646576732f6c61726176656c2d71756572792d6578747261)](https://github.com/rakibdevs/laravel-query-extra/blob/master/LICENSE)

Run complex SQL queries from API requests such as update different conditional records in a single query.

Installation
------------

[](#installation)

Install the package through [Composer](http://getcomposer.org). On the command line:

```
composer require rakibdevs/laravel-query-extra

```

Configuration
-------------

[](#configuration)

If Laravel &gt; 7, no need to add provider

Add the following to your `providers` array in `config/app.php`:

```
'providers' => [
    // ...
    RakibDevs\QueryExtra\QueryExtraServiceProvider::class,
];
```

Usage
-----

[](#usage)

Suppose we need to update `categories` table when cat\_id 3 then cat\_name will be 'Category 3' and cat\_id 4 then cat\_name will be 'Category 4' and so on...

To update multiple records in a single query,

```
$arrr = array(
	    array(
		'data' => array(
		    'cat_name' => 'Category 3', // column name
	            'status' => 1 		// column name
		),
		'keyval' => 3 	// column value for whereKey() condition
	    ),
	    array(
		'data' => array(
		    'cat_name' => 'Category 2', // column name
	            'status' => 1 		// column name
		),
		'keyval' => 2 	// column value for whereKey() condition
	    ),
	    array(
	        .......................
	        .......................
	);
```

```
use RakibDevs\QueryExtra\QueryExtra;

(new QueryExtra)
    ->table('categories') // add table name
    ->whereKey('cat_id')  // key which apply the condition
    ->bulkup($arrr);      // updated array
```

Note: 'data' of all items must have same columns.

License
-------

[](#license)

Laravel Open Weather API is licensed under [The MIT License (MIT)](LICENSE).

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/3d789cf937c914cb8a2ce0c513840be4c4558007bb36433509496587d1989fdb?d=identicon)[rakibdevs](/maintainers/rakibdevs)

---

Top Contributors

[![rakibdevs](https://avatars.githubusercontent.com/u/44586913?v=4)](https://github.com/rakibdevs "rakibdevs (16 commits)")

### Embed Badge

![Health badge](/badges/rakibdevs-laravel-query-extra/health.svg)

```
[![Health](https://phpackages.com/badges/rakibdevs-laravel-query-extra/health.svg)](https://phpackages.com/packages/rakibdevs-laravel-query-extra)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
