2017 © Pedro Peláez
 

library phphump

A framework which has an ability to differentiate HTML and PHP.

image

sahil-gulati/phphump

A framework which has an ability to differentiate HTML and PHP.

  • Monday, October 2, 2017
  • by Sahil-Gulati
  • Repository
  • 3 Watchers
  • 7 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

PHPHump

This framework is designed and authored, with an aim to separate PHP and HTML. Usually it is a messy task to understand PHP and HTML in combined state. This framework allows you to have a clean environment, while working on code base whether it is production and staging. It support no. of features like dynamic templating, dynamic assigning, variable definition, html switching etc., (*1)

Installation

composer require sahil-gulati/phphump, (*2)

OR, (*3)

{
    "require":{
        "sahil-gulati/phphump": "1.0.2"
    }
}

composer install, (*4)

Traditional way


<html> <head> <title>My Page</title> </head> <body> <div> <?php foreach($someVariable as $value) { echo "<p class='someClass'> $value </p>"; } ?> </div> </body> </html>

Hump style

<html>
  <head>
    <title>My Page</title>
  </head>
  <body>
    <div>
    <p class='someClass' hump-loop="someVariable as value"> 
      #[value]# 
    </p>
    </div>
  </body>
  </html>

Modules

1. Attributes, (*5)

  1. Hump-If
  2. Hump-Loop
  3. Hump-Attribute
  4. Hump-While

2. Tags, (*6)

  1. HumpAssign
  2. HumpTemplate
  3. HumpRequire
  4. HumpSwitch

Contributors

  1. @SahilGulati

Feedback

Your feedback at my implementation will be highly appreciated. For any further requirements, support and issues while implementation, You can directly drop me an email at sahil.gulati1991@outlook.com and I will be back to you. :), (*7)

The Versions

02/10 2017

dev-master

9999999-dev

A framework which has an ability to differentiate HTML and PHP.

  Sources   Download

The Requires

  • php >=5.4

 

by Sahil Gulati

02/10 2017

1.0.2

1.0.2.0

A framework which has an ability to differentiate HTML and PHP.

  Sources   Download

The Requires

  • php >=5.4

 

by Sahil Gulati

16/09 2017

1.0.1

1.0.1.0

A framework which has an ability to differentiate HTML and PHP.

  Sources   Download

The Requires

  • php >=5.4

 

by Sahil Gulati

16/06 2017

1.0.0

1.0.0.0

A framework which has an ability to differentiate HTML and PHP.

  Sources   Download

The Requires

  • php >=5.4

 

by Sahil Gulati