bilalatli/php-sorting
Composer 安装命令:
composer require bilalatli/php-sorting
包简介
PHP Sorting Algorithms
关键字:
README 文档
README
- Shell Sort
- Bubble Sort
- Counting Sort
- Heap Sort
- Insert Sort
- Selection Sort
- Comb Sort
- Quick Sort
- Merge Sort
- Gnome Sort
- Cocktail Sort
- OddEven Sort
- Bubble Sort With Flag
- Combined Bubble Sort
- Stupid Sort
Installation
composer require bilalatli/php-sorting
Benchmarking
- Set Active/Passive Benchmark ;
// Set Active
Sorting::setBenchmark(true): void;
// Set Passive [Default]
Sorting::setBenchmark(false): void;
- Get Benchmark Mode is Active or Passive ;
Sorting::isBenchmarkActive(): bool;
- Get Benchmark Status ;
Sorting::getBenchmark(): BALib\Sorting\Benchmark;
Unit Test
Try to run
vendor/bin/phpunit tests/SortingTests
Cli Benchmark [Development]
php examples/cli-test.php {itemCount: 5000 Default}
PHP Version php ^7.*
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-07-15