sahil-gulati / phphump
A framework which has an ability to differentiate HTML and PHP.
Requires
- php: >=5.4
This package is auto-updated.
Last update: 2025-01-08 03:30:17 UTC
README
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.
Installation
composer require sahil-gulati/phphump
OR
{ "require":{ "sahil-gulati/phphump": "1.0.2" } }
composer install
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
2. Tags
Contributors
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. :)