daylerees / scientist
一个受Github自家的Scientist启发的PHP实验库。
2.1.2
2023-02-02 21:35 UTC
Requires
- php: >=7.3
Requires (Dev)
- phing/phing: ^2.13
- php-parallel-lint/php-parallel-lint: ^1.3
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: ^2.9
This package is not auto-updated.
Last update: 2024-09-14 06:29:36 UTC
README
Scientist
一个受Github自家的Scientist启发的PHP实验库。
简介
Scientist是一个PHP实验框架,允许你在不承担风险或中断的情况下,在实时环境中重构和改进现有代码。
简单地定义一个实验,然后坐下来等待结果。
<?php // We need a Laboratory to do science. $experiment = (new Scientist\Laboratory) // Define an experiment with a name. ->experiment('experiment title') // Set a callback containing our control code. ->control($controlCallback) // Set a callback containing our trial code. ->trial('trial name', $trialCallback); // Run the experiment, receiving the control return value. $value = $experiment->run();
用户贡献的资源
Scientist的用户贡献了各种资源以增强应用程序的功能。
日志
日志允许将实验数据发送到数据存储库以供以后检查。
- PSR-3 / Monolog by Nikko Bautista - 将实验写入任何PSR-3兼容的日志记录器。
桥梁
桥梁允许Scientist与其他框架和库无缝使用。
- Laravel by Dayle Rees - 使用Laravel PHP框架与Scientist一起使用。
- Symfony by Dan Hanly - 使用Symfony PHP框架与Scientist一起使用。
- Silex by Mauro Moreno - 使用Silex微框架与Scientist一起使用。
匹配器
匹配器允许匹配复杂类型。
接口
接口允许以清晰的方式查看实验数据。
- 目前还没有。 你想构建一个吗?