Git Product home page Git Product logo

php-ide-extensions-helper's Introduction

PHP IDE Extensions Helper

This project can build PHP files to be used to generate fake PHP files containing the definitions of constants, interfaces, classes, traits and functions provided by PHP extensions.

The bin/extract command will generate or update an XML file that contains the definition of the PHP code. You can run it multiple times against the same XML file, using different environment (for instance, adding a new PHP extension, running it under a different OS like Windows or POSIX, ...). Use the --help option to get help.

The extract command can also be executed inside a Docker image. To do that, simply call bin/extract-docker. Use the --help option to get help.

The bin/generate command will actually generate the fake PHP files, reading the XML files generated by bin/extract. Use the --help option to get help.

Sample Usage

Linux/Mac/POSIX

# Generate the XML data files
./bin/extract
# Generate the XML data files using the 7.2 Docker image
./bin/extract-docker 7.2
# Generate the PHP fake files
./bin/generate

Windows

Simply replace forward slashes(/) with the backward slashes(\) 😉

php-ide-extensions-helper's People

Contributors

mlocati avatar

Stargazers

Anton A. avatar Karl Dilkington avatar

Watchers

James Cloos avatar  avatar Michał Niewrzał avatar  avatar

php-ide-extensions-helper's Issues

Missing @param tag

Hi,

I had just a moment to take a look but for me it looks very interesting :) I hope I will have time to play with your stubs in near future. Great work! :)

I found small issue :) Params are missing @param tag.

Missing class properties from Reflection

The following classes, inspected with Reflection, currently don't report properties:

This seems a problem of PHP itself.
For instance:

$reflectionClass = new ReflectionClass('DateInterval');
var_dump($reflectionClass->getProperties());

outputs

array(0) {
}

For all the other classes, everything seems to work. For example:

$reflectionClass = new ReflectionClass('RegexIterator');
var_dump($reflectionClass->getProperties());

outputs

array(1) {
    [0] => object(ReflectionProperty)#2 (2) {...}
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.