dev-master
9999999-dev http://iekadou.comLare implementation for PHP
MIT
The Requires
- php >=5.3.3
by Jonas Braun
templating
v1.0.0
1.0.0.0 http://iekadou.comLare implementation for PHP
MIT
The Requires
- php >=5.3.3
by Jonas Braun
templating
Wallogit.com
2017 © Pedro Peláez
Lare implementation for PHP
There are just two steps needed to install php-lare:, (*1)
Add php-lare to your composer.json:, (*2)
{
"require": {
"lare_team/php_lare": ">=1.0.0",
}
}
Set the current Lare namespace in your View or anywhere before your templates get rendered:, (*3)
use Lare_Team\Lare\Lare as Lare;
...
Lare::set_current_namespace('Current.Lare.Namespace');
This example seems to show a huge overhead, actually only the if-else tags make it that big., (*4)
// View:
if (!Lare::matches('Lare')) {
// Do everything you need only for the whole site.
}
if (!Lare::matches('Lare.Home')) {
// Do everything you need to handle the home page.
}
// Head-Template:
if (!Lare::matches('Lare')) {
<html>
<head>
// Scripts and Stylesheets could be loaded here, no need to reload them when changing the page
<script...
<link...
<lare-head>
</lare-head>
...
...
<lare-body>
</div>
...//site content could still be here
<footer></footer>
</div>
</body>
</lare-body>
If this seems to be too complex for you, try twig in combination with twig-lare for templating., (*5)
What do you need for php-lare?
Projects using php-lare
If you are using php-lare, please contact us, and tell us in which projects you are using it. Thank you!, (*6)
Happy speeding up your php project!, (*7)
For further information read php-lare on iekadou.com, (*8)
Lare implementation for PHP
MIT
templating
Lare implementation for PHP
MIT
templating