Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any luck with wrapping all functions in pecl extension? #11

Open
crazywhalecc opened this issue Feb 21, 2024 · 1 comment
Open

Any luck with wrapping all functions in pecl extension? #11

crazywhalecc opened this issue Feb 21, 2024 · 1 comment

Comments

@crazywhalecc
Copy link

crazywhalecc commented Feb 21, 2024

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.

@nazmulpcc
Copy link

@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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants