summaryrefslogtreecommitdiff
path: root/ext/ext_skel.php
Commit message (Collapse)AuthorAgeFilesLines
* Apply tidy formattingNikita Popov2020-02-031-190/+190
| | | | Mostly reindent PHP scripts to spaces.
* Update array access syntax deprecatedAlex Porto dos Santos2019-10-171-2/+2
| | | | | | Update array access syntax deprecated in line 175 and 204 Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/alex/php/hello/ext_skel.php on line 175 Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/alex/php/hello/ext_skel.php on line 204
* [ci skip] Migrate Coding standards docs to MarkdownPeter Kokot2019-05-181-1/+1
|
* Add extensions naming conventions to ext_skel.phpPeter Kokot2019-05-141-0/+7
| | | | | | - first character is a letter - followed by any number of letters, numbers, or underscores - prefferred are lower case letters
* Integrate README.EXT_SKEL to help optionPeter Kokot2019-03-131-21/+89
| | | | | | | - Sync help output using heredoc - Add extension building instructions - Building with phpize is preferred option. Mention also tests - Refactor print_success()
* Update and fix remaining year ranges (2019)Peter Kokot2019-02-081-2/+1
| | | | | | This patch follows previous license year ranges updates. With new approach source code files now have simplified headers with license information without year ranges.
* Remove local variablesPeter Kokot2019-02-031-14/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes the so called local variables defined per file basis for certain editors to properly show tab width, and similar settings. These are mainly used by Vim and Emacs editors yet with recent changes the once working definitions don't work anymore in Vim without custom plugins or additional configuration. Neither are these settings synced across the PHP code base. A simpler and better approach is EditorConfig and fixing code using some code style fixing tools in the future instead. This patch also removes the so called modelines for Vim. Modelines allow Vim editor specifically to set some editor configuration such as syntax highlighting, indentation style and tab width to be set in the first line or the last 5 lines per file basis. Since the php test files have syntax highlighting already set in most editors properly and EditorConfig takes care of the indentation settings, this patch removes these as well for the Vim 6.0 and newer versions. With the removal of local variables for certain editors such as Emacs and Vim, the footer is also probably not needed anymore when creating extensions using ext_skel.php script. Additionally, Vim modelines for setting php syntax and some editor settings has been removed from some *.phpt files. All these are mostly not relevant for phpt files neither work properly in the middle of the file.
* Remove yearly range from copyright noticeZeev Suraski2019-01-301-1/+1
|
* [ci skip] Fix typoGabriel Caruso2018-07-291-1/+1
|
* fix ext_skel continueHongbo2018-07-181-1/+1
| | | | "continue" inside switch is ambiguous, should be "continue 2".
* Enhance the ext_skel.php script filePeter Kokot2018-05-261-11/+10
| | | | | | | | | | - File is now executable - Shebang added on top - Normal UTF-8 encoding instead of UTF-8 with BOM - trailing whitespaces trimmed as a CS fix - Closing PHP tag removed in favor of readability, avoiding possible issues with whitespaces, and to comply with current CS from the PHP ecosystem - PSRs etc.
* improve extension skeleton generatorPedro Magalhães2018-02-221-4/+2
|
* Fixed typoKalle Sommer Nielsen2018-01-051-2/+2
|
* year++Xinchen Hui2018-01-021-1/+1
|
* Fix ext_skel's help, the arguments passed are using a space, not an equal ↵Kalle Sommer Nielsen2017-07-231-5/+5
| | | | sign for values
* Redesigned ext_skel to be written entirely in PHP with no dependencies, this ↵Kalle Sommer Nielsen2017-07-231-0/+365
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | means it will now run on Windows without Cygwin and other nonsense. It no longer includes a way to generate XML documentation (the PHP documentation utilities already got tools for that in svn under phpdoc/doc-base) and it no longer support function stubs. $ php ext_skel.php --help php ext_skel.php --ext=<name> [--experimental] [--author=<name>] [--dir=<path>] [--std] [--onlyunix] [--onlywindows] [--help] --ext=<name> The name of the extension defined as <name> --experimental Passed if this extension is experimental, this creates the EXPERIMENTAL file in the root of the extension --author=<name> Your name, this is used if --header is passed and for the CREDITS file --dir=<path> Path to the directory for where extension should be created. Defaults to the directory of where this script lives --std If passed, the standard header and vim rules footer used in extensions that is included in the core, will be used --onlyunix Only generate configure scripts for Unix --onlywindows Only generate configure scripts for Windows --help This help Example usage: $ php ext_skel.php --ext test --std --experimental $ php ext_skel.php --ext kalle --author "Kalle Sommer Nielsen" $ php ext_skel.php --ext phpfi --dir "/home/kalle/dev/" --onlyunix
* Rename script.Frank M. Kromann2003-01-311-44/+0
| | | | | Add check for CLI version
* Wrapper script to use ext_skel on Win32Frank M. Kromann2003-01-311-0/+44