2017 © Pedro Peláez
 

library php-ide-stub-generator

PHP stub file generator

image

ndakotabe/php-ide-stub-generator

PHP stub file generator

  • Tuesday, December 13, 2016
  • by NDakotaBE
  • Repository
  • 2 Watchers
  • 0 Stars
  • 420 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 12 Versions
  • 0 % Grown

The README.md

PHP Ide Stub File Generator

Simple stub file generator for development environments., (*1)

Base idea: https://gist.github.com/ralphschindler/4757829, (*2)

Examples

See the "examples" directory!!!, (*3)

Ignoring certain methods / properties in Classes

You can now add the possibility to ignore a certain method, by providing the generator with the appropriate data., (*4)

If the ignoreTag passed allong is in the DocBlock, the generator will ignore the function and skip it in generation., (*5)

$generator = new Z\IdeStubGenerator\Strategy\PSR0();

OR, (*6)

$generator = new Z\IdeStubGenerator\Strategy\OneFile();

If you call the $generator->setTagToIgnore(); function it'll ignore the given tag e.g.:, (*7)

$generator->setTagToIgnore('@ignore');

Z\IdeStubGenerator\Strategy\PSR0

$generator = new Z\IdeStubGenerator\Strategy\PSR0();
$generator->setBaseDir(...); // required
// $generator->setFunctionsStubFileName('functions.stub.php'); // optional. Default: 'functions.php'
// $generator->setConstantsStubFileName('constants.stub.php'); // optional. Default: 'constants.php'

// $generator->setClasses(array('class_name', ...)); // optional
// $generator->setFunctions(array('function_name', ...)); // optional
// $generator->setConstants(array('constant_name'=>constant_value, ...)); // optional
$generator->generate();

Z\IdeStubGenerator\Strategy\OneFile

$generator = new Z\IdeStubGenerator\Strategy\OneFile();
$generator->setFilePath(...); // required

// $generator->setClasses(array('class_name', ...)); // optional
// $generator->setFunctions(array('function_name', ...)); // optional
// $generator->setConstants(array('constant_name'=>constant_value, ...)); // optional
$generator->generate();

License

ISC License (ISC), (*8)

Copyright (c) 2014, Rácz Tibor Zoltán racztiborzoltan+github@gmail.com, (*9)

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies., (*10)

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE., (*11)

Personal notes

  • Sorry for my bad english in the source code! :)

The Versions

13/12 2016

dev-master

9999999-dev

PHP stub file generator

  Sources   Download

ISC

The Requires

 

The Development Requires

by Rácz Tibor Zoltán
by Mike Swan

13/12 2016

2.0.5

2.0.5.0

PHP stub file generator

  Sources   Download

ISC

The Requires

 

The Development Requires

by Rácz Tibor Zoltán
by Mike Swan

13/12 2016

2.0.4

2.0.4.0

PHP stub file generator

  Sources   Download

ISC

The Requires

 

The Development Requires

by Rácz Tibor Zoltán
by Mike Swan

30/09 2016

2.0.3

2.0.3.0

PHP stub file generator

  Sources   Download

ISC

The Requires

 

The Development Requires

by Rácz Tibor Zoltán
by Mike Swan

26/08 2016

2.0.2

2.0.2.0

PHP stub file generator

  Sources   Download

ISC

The Requires

 

The Development Requires

by Rácz Tibor Zoltán
by Mike Swan

26/08 2016

2.0.1

2.0.1.0

PHP stub file generator

  Sources   Download

ISC

The Requires

 

The Development Requires

by Rácz Tibor Zoltán
by Mike Swan

23/05 2015

2.0.0

2.0.0.0

PHP stub file generator

  Sources   Download

ISC

The Requires

 

The Development Requires

by Rácz Tibor Zoltán

09/05 2015
09/05 2015
11/07 2014
17/03 2014
16/03 2014