php-webview icon indicating copy to clipboard operation
php-webview copied to clipboard

Any luck with wrapping all functions in pecl extension?

Open crazywhalecc opened this issue 1 year ago • 1 comments

I'm currently trying to integrate webview into static-php-cli (Windows and Mac only) for building a single file desktop application . FFI is very flexible, but is there any simple way to write all the functions wrapper of webview.h as PHP extension functions?

I tried ext_skel.php and through my beginner-level C experience, completely unable to get it to work (on macOS, I tried dynamically linking with the WebKit framework). I also tried this extension but it appears to have been discontinued and contains older methods.

If you understand how to write PHP extensions or dynamically link system libraries and write automake checks, I'm happy to learn.

crazywhalecc avatar Feb 21 '24 06:02 crazywhalecc

@crazywhalecc I've been working on a pecl extension, basic things are working but still needs a few improvements. Having a single file executable for this would be cool!

nazmulpcc avatar Mar 15 '24 10:03 nazmulpcc