2017 © Pedro Peláez
 

library php_pjaxr

PJAXR implementation for PHP

image

iekadou/php_pjaxr

PJAXR implementation for PHP

  • Friday, April 3, 2015
  • by iekadou
  • Repository
  • 1 Watchers
  • 1 Stars
  • 33 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

php-pjaxr

How to install php-pjaxr?

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

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

    {
        "require": {
            "iekadou/php_pjaxr": ">=0.1.1",
        }
    }
    
  2. Set the current Pjaxr namespace in your View or anywhere before your templates get rendered:, (*3)

    use Iekadou\Pjaxr\Pjaxr as Pjaxr;
    ...
    Pjaxr::set_current_namespace('Pjaxr.Home');
    

How do i use php-pjaxr?

This example seems to show a huge overhead, actually only the if-else tags make it that big., (*4)

// View:
if (!Pjaxr::matches('Pjaxr')) {
    // Do everything you need only for the whole site.
}
if (!Pjaxr::matches('Pjaxr.Home')) {
    // Do everything you need to handle the home page.
}

// Head-Template:
if (!Pjaxr::matches('Pjaxr')) {
    <html>
    <head>
    // Scripts and Stylesheets could be loaded here, no need to reload them when changing the page
    <script...
    <link...

    <pjaxr-head>


    </pjaxr-head>

        
...
...
<pjaxr-body> </div> ...//site content could still be here <footer></footer> </div> </body> </pjaxr-body>

If this seems to be too complex for you, try twig in combination with twig-pjaxr for templating., (*5)

What do you need for php-pjaxr?

  1. PHP >= 5.3.29
  2. jquery-pjaxr

Projects using php-pjaxr

  1. pjaxr.io

If you are using twig-pjaxr, please contact me, and tell me in which projects you are using it. Thank you!, (*6)

Happy speeding up your php project!, (*7)

For further information read php-pjaxr on iekadou.com, (*8)

The Versions

03/04 2015

dev-master

9999999-dev http://iekadou.com

PJAXR implementation for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

templating

03/04 2015

v0.1.2

0.1.2.0 http://iekadou.com

PJAXR implementation for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

templating

01/04 2015

v0.1.1

0.1.1.0 http://iekadou.com

PJAXR implementation for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.29

 

templating

30/03 2015

v0.1.0

0.1.0.0 http://iekadou.com

PJAXR implementation for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.29

 

templating