Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

soar-php

> 数据库
Open source

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

196 stars0 likes0 views
WebsiteGitHub

About

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

soar-php

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

Requirement

  • PHP >= 8.2

Used in the framework

  • Laravel - laravel-soar、laravel-web-soar
  • ThinkPHP - think-soar
  • Hyperf - hyperf-soar
  • Webman - webman-soar
  • Yii2
  • Symfony
  • Slim

Installation

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

Usage

Quick start

…

SQL Scores(Fingerprint、Score、Explain、Heuristic suggestions、Index suggestions)

…
…

:warning: When running in a unix OS non-cli environment, may throw Fatal error: ...Exit Code: 2(Misuse of shell builtins)...

Configure sudo password

…

Or configure sudoers

On higher versions of macOS, it is possible that the fingerprint authentication window will pop up. You can configure sudoers to run soar command without password.

  1. Edit Configuration file of sudoers:
bash
sudo visudo
  1. Add rule [{user name} ALL=(ALL) NOPASSWD: {soar binary(You can find it from the exception message.)}]:
bash
guanguans ALL=(ALL) NOPASSWD: /Users/guanguans/Documents/develop/soar-php/bin/soar.darwin-arm64

Composer scripts

bash
composer benchmark
composer checks:required
composer php-cs-fixer:fix
composer soar-php:example-run
composer soar-php:example-serve
composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

  • guanguans
  • All Contributors

Contributors ✨

Thanks goes to these wonderful people (emoji key):

kamly

Leslie Lau

D.J.Hwang

海彬

imcm

This project follows the all-contributors specification. Contributions of any kind welcome!

License

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

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

PHPdebugbarmysqloptimizerrewriter

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库