Tutorial :Curses for PHP on Windows



Question:

Is there a Windows equivalent of ncurses for PHP?

I've created a CLI script and want to display various statistics (currently processed record, completion percentage etc.) in a nice way, without outputting loads and heaps of text to the cmd.exe window.

The ncurses extension doesn't work on Windows.


Solution:1

ncurses only works for unix-like environments so you can use cygwin but [Link outdated] looks promising. Check it out and let me know!

(Edit Apr 2016: removed the link as it's out of date and clicking on it takes you down a nasty path.)


Solution:2

There is pdcurses which I believe works in a windows console window. The aren't any PHP bindings so you would need to build your own.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »