PHP code example of theframework / helpers
1. Go to this page and download the library: Download theframework/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/ */
theframework / helpers example snippets
//this is index.php path: myphpsite/index.php
//notice that including autoload.php path using composer is not the same as downloading the package.
include_once("vendors/autoload.php");//if installed with composer
//or
include_once("theframework/helpers/autoload.php");//if downloaded from http://helpers.theframework.es/versions/
//or
include_once("<anyfolder-you-create>/autoload.php");//downloaded from https://github.com/eacevedof/prj_theframework_helpers/releases
use TheFramework\Helpers\HelperInputText;
$oInput = new HelperInputText();
$oInput->set_name("txtMiFirstInput");
$oInput->set_value("Hello World");
$oInput->add_class("form-control");
$oInput->is_readonly();
$oInput->
myphpsite/
vendor/
composer/
theframework/
helpers/
autoload.php
...
autoload.php
composer.json
composer.lock
index.php --> your index file