Giter Club home page Giter Club logo

phpbrowserbox's Introduction

PHPBrowserBox

Table of contents:

Introduction

PHPBrowserBox is an open source project founded by Anthony Ogundipe in the year 2013 to provide a way for developing native desktop GUI applications using web technologies such as PHP, HTML5, JavaScript, MySQL, SQLite and Google Chrome.


bbwebkit

It is a an excellent software for converting web applications written with HTML/PHP web apps and PHP into desktop applications with little effort.

In a certain sense phpbrowserbox acts differently from a PHP to EXE compiler. It embeds a web browser, a multi-threaded web server and a PHP interpreter. All embedded into a single application, a portable folder that you can easily distribute to end users by packing it to zip archive or by making an installer for your application.

It has been tested with the following php versions : 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1 and 8.2 on Windows 7, 8, 10 and Windows 11, 64 bits architecture.

All popular PHP frameworks are supported, see the PHP frameworks support wiki page.

You can create a standalone executable for distribution with the help of the Inno Setup installer.

PHPBrowserBox is released under non-restrictive license, thus it is free for commercial use.

Lots of other useful information can be found on the Knowledge Base wiki page and on the PHPBrowserBox Website.

Installation

bbcpanel

Installation Requirements

The minimum requirements is Windows 7 x64.

Downloads

Support

Sponsors

PHPBrowserBox is seeking companies to sponsor further development of the project.

If your company would like to sponsor PHPBrowserBox development efforts then please contact Anthony.

Long term sponsorships are welcome and Anthony is open to ideas about the project. He would love to spend more time on developing this project, but he can't afford doing so in his free time.

phpbrowserbox's People

Contributors

dhtml avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

phpbrowserbox's Issues

Updating NW.js

This is PROBABLY NOT an issue as a problem in the project's code, but this is only way I can ask the question.

I've unpacked phpbrowserboxv6.2.exe to temporary directory.

Then I unpacked NW.js latest release: nwjs-v0.83.0-win-x64.zip
(Chromium 120, Nodejs 21.1 etc - https://nwjs.io/blog/v0.83.0/ )

.. and tried replacing files in \bin\bbwebkit\ and renaming nw.exe to bbwebkit.exe.

But running the application (phpbrowserbox.exe) shows application window (with content) for like 1 second or less, and then immedately closes.

Is bbwebkit.exe compiled from NW.js code, or is it just a file rename? Can we somehow update just the bbwebkit component?

We can already update PHP manually, MySQL and Apache generally don't change all that fast so I can live with older releases, so it just leaves browser component. If we could manually update in realtively easy way from NW.js that would be awesome.

Thanks for any info, and thanks for working on this project, I've only recently found it and started exploring its capabilities, but I already love it a lot! :-)

Edit: Answer to myself - issue is with some code in \bin\bbwebkit\src, when I remove background.js and point to my own index2.html in package.json it doesn't close and will run PHP code as well (if running index.php)

Edit no 2: If I do as explained above, then edit file bin\bbwebkit\src\index.html so it looks like this:

  • remove 3 scripts from body
  • replace showSplashScreen(); and loadserverUrl(); with simply
	<script>
		const win = nw.Window.get();
		win.show();
		window.location.href= "http://localhost";
	</script> 

... then I can run phpbrowserbox.exe and it works fine, doesn't close the window. I can even leave background.js in package.json. Otherwise some code in preloader.js or background.js closes the page/window.

I still don't see why it closes window with new NW.js binaries, and works normally with original ones from PHPBB 6.2

Edit no 6342 : :-) I found the real culprit. It was so obvious but I did not look...
In file \bin\bbwebkit\src\js\main.js

This code:

function showBrowser(visible) {
    setTimeout(function() {
        win.show();
    },500);
}

If I remove the setTimeout function and just leave win.show(); it works without any other changes. I thought maybe timeout was too small, tried few seconds, it still closes. Again, I don't know why the default app has no issues with this timeout, and updated NW.js closes. But the upgrade seems to be working, I will be testing more tomorrow.

If there's something else to do it in "more correct way" I'm willing to listen. Cheers!

HTTPS Configuration

Hello, I'm trying to configure HTTPS on the apache webserver but there is no way to make it works.
Do you have a configuration example ?
Thanks,
Renato

POST method change to GET method in exe file

I built this website with laravel framework. It run perfectly with php artisan serve. However, when i run in your php browser box, GET method are working good but POST method change to GET method for no reasons.

Screenshot 2024-06-26 at 2 56 23 PM Screenshot 2024-06-26 at 2 55 20 PM Screenshot 2024-06-26 at 2 55 59 PM

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.