# Writing an Extension

- Thread: https://externals.io/message/15143
- Original archive: https://news-web.php.net/php.internals/15143
- Started by Arjun Jain on 2005-02-22T06:33:47+00:00
- Messages: 3
- 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

---

## #15143 — Arjun Jain — 2005-02-22T06:33:47+00:00

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

Hello everyone,

I am not sure if this is the right place to ask this but let me anyways.

We need to write a PHP extension for the PI API (http://www.picorp.com).
I have been googling and reding up stuff over the net for the last 3 days
but alas not to much help.

Other than ext_skel and PECL_Gen, are there any other options? What
should I use? And also for the previous two, these does not seem to much
information available.

Can someone please throw some light on the subject?

TIA

Regards,
Arjun

---

## #15144 — Michael Wallner — 2005-02-22T08:38:38+00:00

URL: https://externals.io/message/15143#15144 · In reply to: #15143

Hi Arjun Jain, you wrote:

> We need to write a PHP extension for the PI API (http://www.picorp.com).

> Other than ext_skel and PECL_Gen, are there any other options? What
> should I use? And also for the previous two, these does not seem to much
> information available.
>
> Can someone please throw some light on the subject?

`./ext_skel --ext-name=pi` should give you a reasonable skeleton to
start with.  The Zend-API section of the PHP manual provides some
rough basics.  Unfortunatly the best resources are lxr.php.net and
ext and pecl sources.

Good luck,
--
Michael - < mike(@)php.net

---

## #15145 — Pierre-Alain Joye — 2005-02-22T09:07:40+00:00

URL: https://externals.io/message/15143#15145 · In reply to: #15144

On Tue, 22 Feb 2005 09:38:38 +0100
mike@php.net (Michael Wallner) wrote:

> Hi Arjun Jain, you wrote:
> 
> > […]
> 
> > […]
> 
> `./ext_skel --ext-name=pi` should give you a reasonable skeleton

In my opinion (and Hartmut's one :)) http://pecl.php.net/PECL_Gen is
far more up to date to generate skeleton or a full extension.

--Pierre
