2017 © Pedro Peláez
 

library zephir-ide-helper

Generate php code completion file from zephir file(.zep).

image

prune-mazui/zephir-ide-helper

Generate php code completion file from zephir file(.zep).

  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 50 % Grown

The README.md

zephir-ide-helper

Build Status Coverage Status, (*1)

Generate php code completion file from zephir file(.zep)., (*2)

The code completion file is valid in the IDE (ex. PHPStorm)., (*3)

Example

Zephir Code, (*4)

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, (*5)

<?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

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., (*6)

-option

  • -f(--file) ... Specify the PHP file name to output(Default: __zephir_ide_helper.php).

Licence

MIT, (*7)

The Versions

21/11 2017

dev-master

9999999-dev https://github.com/PruneMazui/zephir-ide-helper

Generate php code completion file from zephir file(.zep).

  Sources   Download

MIT

The Requires

 

The Development Requires

php ide zephir code-generator

21/11 2017

dev-develop

dev-develop https://github.com/PruneMazui/zephir-ide-helper

Generate php code completion file from zephir file(.zep).

  Sources   Download

MIT

The Requires

 

The Development Requires

php ide zephir code-generator

15/11 2017

1.2

1.2.0.0 https://github.com/PruneMazui/zephir-ide-helper

Make zephir code (.zep) to PHP code completion File.

  Sources   Download

MIT

The Requires

 

The Development Requires

ide zephir intellisense

15/11 2017

1.1

1.1.0.0 https://github.com/PruneMazui/zephir-ide-helper

Make zephir code (.zep) to PHP code completion File.

  Sources   Download

MIT

The Requires

 

The Development Requires

ide zephir intellisense

14/11 2017

1.0

1.0.0.0 https://github.com/PruneMazui/zephir-ide-helper

Make zephir code (.zep) to PHP code completion File.

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

ide zephir intellisense