# extension module for data acquisition

- Thread: https://externals.io/message/13952
- Original archive: https://news-web.php.net/php.internals/13952
- Started by Jan Zwiegers on 2004-11-29T08:22:59+00:00
- Messages: 4
- 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

---

## #13952 — Jan Zwiegers — 2004-11-29T08:22:59+00:00

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

Hi there

I work for a company called Eagle Technology and we manufacture a wide 
range of data acquisition devices; USB, PCI, PC/104 plus etc.
Our main API is called EDR Enhanced and is available for both Win32 and 
Linux.
I'm looking at developing a PHP extension for EDR Enhanced.

Can anyone possibly tell what is the best route to develop this module 
and test it. I'm refering to code samples, documentation etc.
I would really appreciate this.

Many thanks,
Jan Zwiegers
---
Chief Software Engineer
Eagle Technology
Cape Town, South Africa

---

## #13953 — Sara Golemon — 2004-11-29T17:38:29+00:00

URL: https://externals.io/message/13952#13953 · In reply to: #13952

Jan-

  For code samples you can look at any number of extensions available in the
PECL repository ( http://pecl.php.net ).  For more direct assistance, the
best mailing list would be pecl-dev@lists.php.net .

  Do you plan to release your extension to the public as an open source
extension?  Or would your company rather keep the extension closed source
and package it with their product?  Either approach is fine, but if you plan
to release it as an OSS extension then the PECL repository can offer hosting
space for the source code, and package downloads (Note: LGPL licensing is
strongly discouraged and GPL licensing is outright disallowed on all
packages hosted in PECL -- BSD or PHP license is preferred).

-Sara


"Jan Zwiegers" <jan@eagle.co.za> wrote in message
news:41AADC63.60907@eagle.co.za...
> Hi there
>
> I work for a company called Eagle Technology and we manufacture a wide
> range of data acquisition devices; USB, PCI, PC/104 plus etc.
> Our main API is called EDR Enhanced and is available for both Win32 and
> Linux.
> I'm looking at developing a PHP extension for EDR Enhanced.
>
> Can anyone possibly tell what is the best route to develop this module
> and test it. I'm refering to code samples, documentation etc.
> I would really appreciate this.
>
> Many thanks,
> Jan Zwiegers
> ---
> Chief Software Engineer
> Eagle Technology
> Cape Town, South Africa

---

## #13954 — Marcus Boerger — 2004-11-29T20:39:50+00:00

URL: https://externals.io/message/13952#13954 · In reply to: #13952

Hello Jan,

Monday, November 29, 2004, 9:22:59 AM, you wrote:

> Hi there

> I work for a company called Eagle Technology and we manufacture a wide 
> range of data acquisition devices; USB, PCI, PC/104 plus etc.
> Our main API is called EDR Enhanced and is available for both Win32 and 
> Linux.
> I'm looking at developing a PHP extension for EDR Enhanced.

> Can anyone possibly tell what is the best route to develop this module 
> and test it. I'm refering to code samples, documentation etc.
> I would really appreciate this.

All we can say is just look at the code of other extensions - unfortunatley
it seems there is only documentation living on two legs available otherwise.
However it is relativley easy for an experienced c programmer.

Best regards,
 Marcus                            mailto:helly@php.net

---

## #13956 — Hartmut Holzgraefe — 2004-11-30T01:03:48+00:00

URL: https://externals.io/message/13952#13956 · In reply to: #13954

Marcus Boerger wrote:
> All we can say is just look at the code of other extensions - unfortunatley
> it seems there is only documentation living on two legs available otherwise.
> However it is relativley easy for an experienced c programmer.

Well, some of us have tried to do brain dumps.

George Schlossnagle has dedicated part of his "Advanced PHP Programming"
book to extension writing (http://www.amazon.com/exec/obidos/ASIN/0672325616)

and i have created sort of a code generator called PECL_Gen

  http://pecl.php.net/package-info.php?package=PECL_Gen

  Warning: you have to remove one line from the package.xml file
  before you can install it. It is the line that mentions "void.c"
  I needed to add it to make the upload process accept the package
  for now.

Documentation is included in the manual.html file within the
package, there are also some conference slides on this

   http://talks.php.net/show/PECL_Gen

-- 
Hartmut Holzgraefe  <hartmut@php.net
