PHPackages                             guanguans/soar-php - 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. [Database &amp; ORM](/categories/database)
4. /
5. guanguans/soar-php

ActiveLibrary[Database &amp; ORM](/categories/database)

guanguans/soar-php
==================

SQL optimizer and rewriter(assisted SQL tuning). - SQL 优化器和重写器(辅助 SQL 调优)。

8.0.0(1mo ago)19619.7k↓22.2%235MITPHPPHP &gt;=8.2CI passing

Since Jul 4Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/guanguans/soar-php)[ Packagist](https://packagist.org/packages/guanguans/soar-php)[ Docs](https://github.com/guanguans/soar-php)[ Fund](https://guanguans.github.io/sponsors)[ RSS](/packages/guanguans-soar-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (108)Versions (116)Used By (5)

soar-php
========

[](#soar-php)

Note

SQL optimizer and rewriter(assisted SQL tuning) based on Xiaomi's [soar](https://github.com/XiaoMi/soar) development. - 基于小米的 [soar](https://github.com/XiaoMi/soar) 开发的 SQL 优化器和重写器(辅助 SQL 调优)。

[![tests](https://github.com/guanguans/soar-php/actions/workflows/tests.yml/badge.svg)](https://github.com/guanguans/soar-php/actions/workflows/tests.yml)[![php-cs-fixer](https://github.com/guanguans/soar-php/actions/workflows/php-cs-fixer.yml/badge.svg)](https://github.com/guanguans/soar-php/actions/workflows/php-cs-fixer.yml)[![codecov](https://camo.githubusercontent.com/1baf808c4180d6fba323e4b84aea8c01afde27e0db4b1a8826341e03cb3dcdd0/68747470733a2f2f636f6465636f762e696f2f67682f6775616e6775616e732f736f61722d7068702f67726170682f62616467652e7376673f746f6b656e3d3052746753476f6d344b)](https://codecov.io/gh/guanguans/soar-php)[![Latest Stable Version](https://camo.githubusercontent.com/49d9f5efc06e877c656fa094ef7f8e2f95fbb861a6e6b6f67d1cf713b192761b/68747470733a2f2f706f7365722e707567782e6f72672f6775616e6775616e732f736f61722d7068702f76)](https://packagist.org/packages/guanguans/soar-php)[![GitHub release (with filter)](https://camo.githubusercontent.com/ae21f790d0be43a9f8a4a209f785b63c1dac005051a8852ca485045340de903b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6775616e6775616e732f736f61722d706870)](https://github.com/guanguans/soar-php/releases)[![Total Downloads](https://camo.githubusercontent.com/8465bc6d1dc1642941f37e8e6f3eb34470b4532605f1e1c5abd3128d53072465/68747470733a2f2f706f7365722e707567782e6f72672f6775616e6775616e732f736f61722d7068702f646f776e6c6f616473)](https://packagist.org/packages/guanguans/soar-php)[![License](https://camo.githubusercontent.com/0bf3021be5a7a9912fc037eb674a89478bd9418e1490e3610058ebae16275eb1/68747470733a2f2f706f7365722e707567782e6f72672f6775616e6775616e732f736f61722d7068702f6c6963656e7365)](https://packagist.org/packages/guanguans/soar-php)

Requirement
-----------

[](#requirement)

- PHP &gt;= 8.2

Used in the framework
---------------------

[](#used-in-the-framework)

- Laravel - [laravel-soar](https://github.com/guanguans/laravel-soar)、[laravel-web-soar](https://github.com/huangdijia/laravel-web-soar)
- ThinkPHP - [think-soar](https://github.com/guanguans/think-soar)
- Hyperf - [hyperf-soar](https://github.com/wilbur-oo/hyperf-soar)
- Webman - [webman-soar](https://github.com/Tinywan/webman-soar)
- Yii2
- Symfony
- Slim

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

[](#installation)

```
composer require guanguans/soar-php --ansi -v
```

Usage
-----

[](#usage)

**Quick start**```
