PHP code example of tourze / twig-html-helpers

1. Go to this page and download the library: Download tourze/twig-html-helpers 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/ */

    

tourze / twig-html-helpers example snippets

check_box_tag($name, $value = '1', $default = false, $options = array())
hidden_field_tag($name, $default = null, $options = array())
html_tag($name, $options=array())
label_tag($name, $text = null, $options = array())
labelled_text_field_tag($name, $default = null, $options = array())
password_field_tag($name = 'password', $default = null, $options = array())
radio_button_tag($name, $value, $default = false, $options = array())
select_tag($name, $options, $default = null, $html_options = array())
submit_tag($value = 'Submit', $options = array())
text_area_tag($name, $default = null, $options = array())
text_field_tag($name, $default = null, $options = array())