PHP Interface Preprocessor is a software that provides easy-to-use methods to create user interfaces in PHP. It simplifies the process of creating UIs, making it more efficient and convenient for developers.
Abstraction is one of the core features of Ippfp, enabling elements to be accessed like data structures with values and various attributes. This makes Ippfp a construction kit for building software quickly. Another notable purpose is the automatic generation by software.
You can select one of the available packages to display, which include HTML, PDF, GTK, and ncurses. Furthermore, the library provides various elements such as buttons, checkboxes, images, labels, and tables that can be used to create your user interface.
Ippfp puts the elements together in a frame, creating a HTML page or appropriate windows for GTK and ncurses. The data of elements will be stored in session variables, so you don't need to worry about the details of formats like HTML tags or GTK classes.
Navigating within a program is easy with the button element, and the grid or table elements are the right choices for arranging elements. Elements are created with the "create"-functions which are members of the Ippfp main instance and return objects respective to the goal.
To make them visible, they will be grouped in a "view" and given to the Ippfp main instance for processing. This flexible approach allows existing elements to be used in several views and included by reference, not by copy.
For example, creating a text element is straightforward with the following code:
$myText = $ippfp->createText("default", 20, "my_text");
...
echo $myText->getValue();
Organizing your code into PHP functions is crucial, and integrating your views into these functions makes your code more efficient.
The latest release of Ippfp includes several improvements such as switching from HTML to XHTML, adding a simple debug function, and fixing some bugs in XHTML and PDF. Additionally, PDF supports tables and grids that can extend over a big number of pages and contain big text, passing the "tabellentest".
Overall, Ippfp is a powerful library that simplifies the creation of user interfaces in PHP and lets you focus on building your software.
Version 0.2.10: N/A