Skip to content

PHP-OPEN-HUB/swoole-ide-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swoole IDE Helper

Latest Stable Version Packagist

Add IDE helper for the swoole extension, forked from swoole/ide-helper

nizerin/swoole-ide-helper keep the same version of swoole

Diff With swoole/ide-helper

Different from the source repository: variable types are added to most method parameters for easy reference.

Old:

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

Now:

/**
 * @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){}

Install

You can add it by composer:

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

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

Build

You can regenerate it locally. Of course, you must ensure that the swoole extension is already installed.

php dump.php

LICENSE

See LICENSE

About

IDE helper for PHP framework and Swoole

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages