2017 © Pedro Peláez
 

library php_lare

Lare implementation for PHP

image

lare_team/php_lare

Lare implementation for PHP

  • Saturday, June 18, 2016
  • by iekadou
  • Repository
  • 2 Watchers
  • 0 Stars
  • 43 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

php-lare

How to install php-lare?

There are just two steps needed to install php-lare:, (*1)

  1. Add php-lare to your composer.json:, (*2)

    {
        "require": {
            "lare_team/php_lare": ">=1.0.0",
        }
    }
    
  2. 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');
    

How do i use php-lare?

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?

  1. PHP >= 5.3.29
  2. lare.js

Projects using php-lare

  1. iekadou.com

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)

The Versions

18/06 2016

dev-master

9999999-dev http://iekadou.com

Lare implementation for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

templating

26/06 2015

v1.0.0

1.0.0.0 http://iekadou.com

Lare implementation for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

templating