An open API service indexing awesome lists of open source software.

https://github.com/easysoft/phpsciter

The php extension of sciter. You can use it to build cross platform GUI app by php.
https://github.com/easysoft/phpsciter

php phpgui sciter

Last synced: about 2 months ago
JSON representation

The php extension of sciter. You can use it to build cross platform GUI app by php.

Awesome Lists containing this project

README

        

English | [中文](./README.md)

### About PHPSciter
PHPSciter is a PHP extension to bind the [Sciter](http://www.sciter.com/) framework which is a cross platform GUI framework.

### Install Sciter
Download the [sciter-sdk][]

1. Put Sciter's dynamic library directly into the same location as the PHP executable files.
2. Extract the sciter runtime library from [sciter-sdk][] to system PATH

The runtime libraries lives in `bin` `bin.gtk` `bin.osx` with suffix like `dll` `so` or `dylib`

* Windows: simply copying `bin\64\sciter.dll` to `c:\windows\system32` is just enough
* Linux:
- `cd lib/sciter/linux`
- `tar zxvf libsciter-gtk-lnx.tar.gz`
- `echo $PWD >> libsciter.conf`
- `sudo cp libsciter.conf /etc/ld.so.conf.d/`
- `sudo ldconfig`
- `ldconfig -p | grep sciter` should print libsciter-gtk-64.so location
* OSX:
- `cd lib/sciter/mac`
- `export DYLD_LIBRARY_PATH=$PWD`

#### Windows

- Please put "phpsciter.dll" to php.exe/extension folder

#### Ubuntu 16.04
```
apt-get install build-essential pkg-config
apt install libgtk-3-dev

git clone https://github.com/longyan/phpsciter.git
cd phpsciter
phpize
./configure
make
make install

php examples/phpsciter-load-frame/index.phpt
```

#### Mac OS
```
git clone https://github.com/longyan/phpsciter.git
cd phpsciter
phpize
./configure
make
make install

php examples/phpsciter-load-frame/index.phpt
```

#### Notice!

- If you used "make clean function", you have to do configuration again.

#### Debug

- 如何进行Sciter软件方面的调试?

- 需要将sciter-sdk下面的inspector 拷贝到 与php.exe 同级目录下,点击Dom inspector

![](./cover/sciter-inspector.jpg)