php-gtk3
php-gtk3 copied to clipboard
GTK3 extension for PHP
help wanted
- Complile for Windows
- Compile for Mac
- Better code for Mac integration
- Create docker
- Improvement of Makefile
Read how to Compile on MAC (old, and not intense tested. maybe some errors occur)
php-gtk3-tests
Repositório para alguns testes com bind php-gtk3
Repositoty to do some tests with php-gtk3 bind
Downloads
Você pode baixar o PHP com a extensão GTK no formato AppImage na página de releases
You can find all PHP + GTK extension in AppImage package on releases page
Para rodar programas no formato AppImage, você precisa do fuse
Do you need
fuse
to run AppImage bundle apps
Basta baixar o ultimo release, faze-lo executavel e rodar seus scripts PHP
Just download the last release, make it executable and run your PHP scripts
:$ sudo apt-get install fuse
:$ chmod +x php-gtk3-x86_64-0.10-beta.AppImage
:$ sudo ln -s ~/Downloads/php-gtk3-x86_64-0.10-beta.AppImage /usr/bin/php-gtk
:$ php-gtk myapp.php
Compile
Você precisará das libs para desenvolvimento php-dev e tambem libgtk-3-dev, ou em algumas distribuições linux gnome-devel. No debian e ubuntu:
You will need php-dev and libgtk-3-dev, or in some cases gnome-devel. On Debian and ubuntu:
:$ sudo apt-get install build-essential gnome-devel php-dev libgladeui-dev libgtksourceview-3.0-dev libwnck-3-dev
Será necessário compilar o PHP-CPP
You will need compile PHP-CPP first
:$ git clone https://github.com/CopernicaMarketingSoftware/PHP-CPP.git
:$ make
:$ make install
Talvez algum erro ocorra no thoweble.h, então verifique se esse issue está corrigido
Maybe occur some errors on thoweble.h, so confirm that issue are fixed
Agora basta baixar e compilar o php-gtk3
After that, just download php-gtk3 and compile it
:$ git clone https://github.com/scorninpc/php-gtk3.git
:$ cd php-gtk3
:$ make
:$ php -dextension=./php-gtk3.so test.php
Depois disso é só começar a testar e começar a ajudar no desenvolvimento do bind (desabilite LIBWNCK por enquanto):
After that, just start test and start to help to dev this bind [disale LIBWNCK for now]
Some images of progress
Why PHP-CPP
Alem de tornar o trabalho mais rapido, a sintax e a forma de programar se assemelha muito ao PHP. Assim, mais pessoas podem contribuir com o projeto. Outro ponto forte, talvez o mais importante, do motivo do uso do PHP-CPP, são as atualizações do Zend.h. Na migração do PHP5 para o PHP7 por exemplo, todo bind foi perdido
In addition to making work faster, syntax and how to program closely resemble PHP, so more people can contribute to the project. Another strong point, perhaps the most important are the updates of Zend.h. In the migration from PHP5 to PHP7 for example, every bind was lost
Where to find me
- Here (from project)
- [email protected] (personal)
- https://twitter.com/ScornInPC (social media)
- [email protected] (php-gtk group)
for all: I'm sorry for my bad English