https://github.com/jgmdev/php-webkitgtk
A php extension that wraps the webkitgtk library.
https://github.com/jgmdev/php-webkitgtk
extension gtk3 php webkit webkitgtk
Last synced: 9 months ago
JSON representation
A php extension that wraps the webkitgtk library.
- Host: GitHub
- URL: https://github.com/jgmdev/php-webkitgtk
- Owner: jgmdev
- License: other
- Created: 2019-07-01T23:53:51.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-05T19:32:11.000Z (over 6 years ago)
- Last Synced: 2025-04-03T08:04:59.755Z (11 months ago)
- Topics: extension, gtk3, php, webkit, webkitgtk
- Language: C
- Size: 26.4 KB
- Stars: 7
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP-WEBKITGTK
A php extension that wraps the [webkitgtk](https://webkitgtk.org/) library and
allows you to start a new web browser instance from your php scripts. For now
it doesn't offer much but a window where you can load your webui using the php
built-in webserver or anything else.
A lot of stuff needs to be done and implemented but for now it gives you a web
browser where you can load your PHP/HTML/CSS/JS Apps!
## Example
```php
$view = new WebKitGtk\WebView("The initial Window Title");
$view->loadURI("http://localhost:8080");
$view->show();
```
# Installation
For now the extension only works on Linux since I don't know the whole process
needed to compile gtk and webkitgtk library on anything else...
## Steps to install
```sh
git clone https://github.com/jgmdev/php-webkitgtk
cd php-webkitgtk
phpize
./configure
make
sudo make install
```
# Credits
I used [krakjoe ui](https://github.com/krakjoe/ui) repository as the boiler
plate to start developing this extension, thanks to him!