#2 PHP bindings

closed
nobody
None
5
2008-02-14
2004-11-20
Arnout Engelen
No

PHP currently seems to lack proper iCalendar libraries.
Since there already is a LibicalWrap.i for the Python
bindings, it's not very hard to make a libical .so that
can be accessed from PHP. Would be a valuable building
block in the practical adoption of the iCalendar
standard (imho).

I'm attaching a Makefile how I whipped together the
.so, and a small example of how to use the resulting
library. Obviously this is not good enough for in the
official distribution, but it'll probably give you an
idea of how to make a PHP binding.

Note that older versions of SWIG contain a bug that
make the resulting .so segfault when trying to pass a
component to a function. SWIG 1.3.22 certainly doesn't
have this problem, not sure when exactly it was fixed.

Discussion

  • Arnout Engelen
    Arnout Engelen
    2004-11-20

    example how to generate .so

     
    Attachments
  • Arnout Engelen
    Arnout Engelen
    2004-11-20

    example how to use the resulting lib

     
    Attachments
  • dothebart
    dothebart
    2008-02-14

    Logged In: YES
    user_id=1416849
    Originator: NO

    added to the libical repo. if somebody wants to finish this work, it will be hooked into configure.

     
  • dothebart
    dothebart
    2008-02-14

    • status: open --> closed