On Tue, Mar 10, 2009 at 18:10, Kristina Chodorow <krist...@10gen.com> wrote: > I'm using and updating the C code. The C code just has basic functions, > like "connect to the database" or "query the database." Since I find writing > in PHP a bit quicker than writing in C, I wrote more complex functions in > PHP, but they still call the C functions to actually interact with the > database. > > I haven't created a PEAR package because PEAR requires the extension to be > written in just PHP, and the PHP I wrote isn't standalone, it requires the C > code to work. > > Should I create two projects (one PECL, one PEAR)? That doesn't seem to > make sense, though, as the PHP needs the C to run and the C is annoying to > use without the PHP.
That is _exactly_ the purpose of PEAR. Abstract "annoying" tasks to packages. Be it a wrapper for C extensions (there are *lot* of that kind of packages there) or logic. PECL is for C code. PEAR is for PHP code. -Hannes