# ext_skel replacement

- Thread: https://externals.io/message/45217
- Original archive: https://news-web.php.net/php.internals/45217
- Started by Greg Beaver on 2009-08-05T03:38:48+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #45217 — Greg Beaver — 2009-08-05T03:38:48+00:00

URL: https://externals.io/message/45217#45217

Hi,

I just committed an enhancement to pyrus designed for PHP extension
authors (pecl and core), details in this commit:

http://svn.php.net/viewvc/pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/PackageFile/Commands.php?r1=286823&r2=286822&pathrev=286823

Basically, it's a single command that mirrors ext_skel without some of
the rarely needed junk, and strips doc generation as an option since
that is now done by far better external tools.  The command generates
ZEND_ARG_INFO and understands PHP 6 parameter parsing when passing in
protos for function stub generation.  It also knows about classes, and
automatically generates a stub for any class if the function name is
specified as Classname::funcname in the proto.

This is not intended to be as smart as PECL_Gen, but should be
everything a new extension generation will need for current PHP
developers.  It's also all-PHP and automatically sets up the stuff
needed for package.xml and generates a package.xml, so it can be used
for new PECL extensions.

I point this out because when pyrus has its first alpha (any day(TM)),
it will have this feature, and I'd love for you all to test/break/fix it.

Thanks,
Greg
