princeh / judger_php
Judger Binder for PHP
v1.0
2020-03-24 05:00 UTC
Requires
- php: >=7.3
- ext-json: *
- ext-swoole: >=4.4
Requires (Dev)
- phpunit/phpunit: ^9
This package is auto-updated.
Last update: 2025-02-24 15:39:48 UTC
README
Judger Binder for PHP.
Installing
$ composer require princeh/judger_php -vvv
Usage
此拓展基于青岛开源的沙盒 必须要装swoole 且运行在协程环境下 最好hook shell_exec在底层会自动进行协程的调度
\Swoole\Coroutine\Co::set(['hook_flags' => SWOOLE_HOOK_BLOCKING_FUNCTION]);
Contributing
You can contribute in one of three ways:
- File bug reports using the issue tracker.
- Answer questions or fix bugs on the issue tracker.
- Contribute new features or update the wiki.
The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.
License
MIT