Clever html engine
Procedural block-structured programming with the PHP2HTML
library gives you easy central maintenance of your UI-code.
The PHP2HTML library are used in PHP applications to produce dynamic HTML/CSS/JS code with advanced features.
Library consists of a collection of functions that produce both standard HTML elements and special usefull variants.
With this library you can program a complete program, both backstage and frontstage, source code in PHP.
From your compact block-structured source code, the generator produces the necessary html code in a >5:1 ratio
In other words, you only have to write code that takes up 20% of the final code...
The PHP2HTML system has built-in integration with several powerful open-source projects, Font-awesome, Tablesorter, Jquery, tinyMCE, which makes it easy to take advantage of these.
| Integrated advantages of the system: | |
| Translation | Advanced translation system for your entire program interface |
| Icons | Option for font-awesome icons anywhere |
| User Advice | Tooltip, placeholder and pop-up user tip (hint/title) for all html elements |
| Context Menu | Popup menu-system activated on mouse Rightclick |
| Cards | Compact adaptive layout with collapsible cards |
| Tables | Advanced sortible tables based on Mottie Table Sorter system |
| HTML editor | TinyMCE integrated library |
| Library Location | Optional use of libraries locally or on the web (CDN) |
| Adaptive | Narrow cards suitable for adaptive fit |
| Date Lookup | Easily enter dates with the browser's date picker interface |
| Validation | Checks browser input validation |
| PHP 8.5+ | Compatible with latest PHP |
| Block oriented | Provides compact and clearer code... |
PHP is the language for producing server-side backend programming.
With PHP2HTML you can also produce client-side frontend programming in PHP.
Thus, you can now program your entire project in PHP.
Code and Time-saving when you are familiar with the system
Don't reinvent the Wheel, use PHP2HTML…
// php: htm_Input(labl:'@Amount', icon:'fas fa-euro', vrnt:'dec2', hint:'@Demo of htm_Input Field variant dec2: number with 2 decimal', name:'dec2', valu:0, wdth:'150px', algn:'center', unit:'<$ ');
// HTML: <div class="inpField" id="inpBox" style="margin: auto; width: 150px; display: inline-block;"> <input type= "text" id="dec2" name="dec2" value="$ 0,00" class="boxStyle" style="text-align: center; font-size: 14px; font-weight: 600; " oninvalid="this.setCustomValidity('Wrong or missing data in htm_Input(Dec2) ! ')" oninput="setCustomValidity('')" placeholder="Enter..." pattern="^\d*\.?((25)|(50)|(5)|(75)|(0)|(00))?$" /> <abbr class= "hint"> <label for="dec2" style="font-size: 12px; "> <div style="white-space: nowrap; margin-left: auto;"> Amount </div> </label> <data-hint style="top: 45px; left: 2px;"> Demo of htm_Input Field Variant dec2: number with 2 decimal <br>Unit: <$ </data-hint> </abbr> </div>
htm_Card_(capt:'@CARDS:', icon:'fas fa-info', hint:'', form:'', acti:'', clas:'cardW720', wdth:'', styl:'background-color: white;', attr:''
labl:'@Save', icon:'', hint:'', name:'', form:'', subm:true, attr:'', akey:'', kind:'save', simu:false)