百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

soar-php

> 数据库
开源

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

196 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

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 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

PHPdebugbarmysqloptimizerrewriter

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类数据库
定价开源

> 相关工具

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