prune-mazui/zephir-ide-helper
Composer 安装命令:
composer require prune-mazui/zephir-ide-helper
包简介
Generate php code completion file from zephir file(.zep).
关键字:
README 文档
README
Generate php code completion file from zephir file(.zep).
The code completion file is valid in the IDE (ex. PHPStorm).
Example
Zephir Code
namespace PruneMazui\ZephirSample;
/**
* Sample class Greeting
*/
class Greeting
{
protected message = "hello world" { set, toString };
/**
* constructor
*
* @param string optional message
*/
public function __construct(string message = null)
{
if message !== null {
let this->message = message;
}
}
/**
* Output Message to stdout
*/
public function say()
{
echo this->message;
}
}
Generate PHP Code
<?php
namespace PruneMazui\ZephirSample
{
/**
* Sample class Greeting
*/
class Greeting
{
protected $message;
public function setMessage($message)
{}
public function __toString()
{}
/**
* constructor
*
* @param string optional message
*/
public function __construct(string $message = null)
{}
/**
* Output Message to stdout
*/
public function say()
{}
}
}
Requirements
- PHP >= 7.0
- Zephir Parser >= 1.1.0
Installation
composer require prune-mazui/zephir-ide-helper
Usage
vendor/bin/zephir-ide-helper [-option] target
Arguments
target
Specify the Zephir file or directory.
If you specify a directory, read the directory recursively and look for the Zephir file.
-option
-f(--file) ... Specify the PHP file name to output(Default: __zephir_ide_helper.php).
Licence
MIT
统计信息
- 总下载量: 50
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-11-21