Wallogit.com
2017 © Pedro Peláez
A framework which has an ability to differentiate HTML and PHP.
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)
composer require sahil-gulati/phphump, (*2)
OR, (*3)
{
"require":{
"sahil-gulati/phphump": "1.0.2"
}
}
composer install, (*4)
<html> <head> <title>My Page</title> </head> <body> <div> <?php foreach($someVariable as $value) { echo "<p class='someClass'> $value </p>"; } ?> </div> </body> </html>
<html>
<head>
<title>My Page</title>
</head>
<body>
<div>
<p class='someClass' hump-loop="someVariable as value">
#[value]#
</p>
</div>
</body>
</html>
1. Attributes, (*5)
2. Tags, (*6)
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)