2017 © Pedro Peláez
 

library helpers

Library that helps you to create html elements using OOP

image

theframework/helpers

Library that helps you to create html elements using OOP

  • Sunday, February 25, 2018
  • by eacevedof
  • Repository
  • 1 Watchers
  • 0 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 7 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

The Framework Helpers Version 0.1.0

PHP view helpers for rendering html elements using objects, (*1)

Installing with composer

    composer require theframework/helpers

Let's suppose you have your root folder "myphpsite" with an index.php file in it:, (*2)

    PCALEX@MSI MINGW64 /d/temp/myphpsite

    $ composer require theframework/helpers

    Using version ^0.0.2 for theframework/helpers
    ./composer.json has been created
    Loading composer repositories with package information
    Updating dependencies (including require-dev)
    Package operations: 1 install, 0 updates, 0 removals
      - Installing theframework/helpers (0.0.2): Loading from cache
    Writing lock file
    Generating autoload files

    PCALEX@MSI MINGW64 /d/temp/myphpsite

Once it is installed with composer this structure is created:, (*3)

    myphpsite/
        vendor/
            composer/
            theframework/
                helpers/
                    autoload.php
                    ...
            autoload.php
        composer.json
        composer.lock

        index.php  --> your index file

Including autoload.php

The autoload.php file enables you to instantiate classes (in this case, helpers) using namespaces paths (the use operator) in place of using require,include,require_once,include_once operators, (*4)

<?php
//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->required();
$oInput->set_maxlength(35);
$oInput->show();

The Versions

25/02 2018

dev-master

9999999-dev https://github.com/eacevedof/prj_theframework_helpers

Library that helps you to create html elements using OOP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

helpers view helpers html elements

25/02 2018

0.1.0

0.1.0.0 https://github.com/eacevedof/prj_theframework_helpers

Library that helps you to create html elements using OOP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

helpers view helpers html elements

27/09 2017

dev-site_1.0.0

dev-site_1.0.0 https://github.com/eacevedof/prj_theframework_helpers

Library for helping to create html elements using objects

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

helpers view helpers oop php html elements

19/05 2017

0.0.2

0.0.2.0 https://github.com/eacevedof/prj_theframework_helpers

Library that helps you to create html elements using OOP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

helpers view helpers html elements