Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a go with extSkel #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions Book/php7/extensions_design/extension_skeleton.rst
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,36 @@ you may define any others functions and change the concrete body as you want.

.. note:: Remember that the new ext_skel is no longer support proto files.


A go with extSkel
*****************

Another alternative to generate a PHP extension skeleton is by using the third-party
`extSkel <https://github.com/7snovic/extSkel>`_ package

it's retrieve the concept of the proto files but this time the proto file will be
written in PHP and the package will do the rest of job.

the available options are:

.. code-block:: shell

php extSkel --proto="path/to/file" [--extension=extname] [--dest-dir=path]
[--credits="author name"] [--dump-header] [--fast-zpp]

--proto=file File contains prototypes of functions to create
--extension=extname Module is the name of your extension
--dest-dir=path Path to the extension directory
--credits=author Credits string to be added to headers
--help This message
--dump-header Append header string to your extension
--fast-zpp Use FastZPP API instead of zpp functions

you can find out more about the package and the the basic usage at
`github <https://github.com/7snovic/extSkel>`_.



Publishing API
**************

Expand Down