nizerin/swoole-ide-helper

PHP框架和Swoole的IDE辅助工具

1.0.0 2019-10-08 08:22 UTC

This package is auto-updated.

Last update: 2024-09-10 14:06:17 UTC


README

Latest Stable Version Packagist

swoole扩展添加IDE辅助工具,从swoole/ide-helper分支而来

nizerin/swoole-ide-helper保持与swoole相同的版本

与swoole/ide-helper的差异

与源代码库不同:大多数方法参数添加了变量类型,便于参考。

旧:

/**
 * @param $fd
 * @param $data
 * @param $opcode
 * @param $finish
 * @return mixed
 */
public function push($fd, $data, $opcode = null, $finish = null){}

现在:

/**
 * @param int $fd
 * @param mixed $data
 * @param int $opcode
 * @param bool $finish
 * @return mixed
 */
public function push(int $fd, $data, int $opcode = null, bool $finish = null){}

安装

您可以通过composer添加它

composer require --dev nizerin/swoole-ide-helper

# use latest code
composer require --dev nizerin/swoole-ide-helper@dev-master

构建

您可以在本地重新生成它。当然,您必须确保已经安装了swoole扩展。

php dump.php

授权协议

查看授权协议