1. Go to this page and download the library: Download phpwine/optimizedhtml library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
// New in v2.0 soon Hooks
echo wine(h1,'Hello World', [ id => 'wine_id'], $hooks = [
['top_your_hook_name_add_html_top',[ $one = 2, $two = 4] ],
['bottom_your_hook_name_add_html_bottom',[ $one = 'A', $two = 'B']]
]
);
// You can now | Using key "string" top_ OR bottom_ followed by your hook name ...
// ex. [ bottom_your_hook_name_add_html_bottom, [ $argu_1, .... ] ]
$hooks = [
['bottom_your_hook_name_add_html_bottom',[ $one = 'A', $two = 'B']] /* this will display in the bottom element html */
]
PHP
@since v1.4.0 OptimizedHtml
$this->wine::child => [
/* ['div', $this->wine::value=>[ $this->wine->value((new Branding),'component_top_logo_header')]], this still works anyway */
['div', $this->wine::value=>[ $this->wine->value(MenuList::class,'component_top_right_menu', $this->links ) ]]
]
]);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.