Professional PHP

PHP Programming, Web Development, PHP Advocacy and PHP Best Practices.
« Rephlux and PHP memory usage with a PEAR surpise
PEAR: Its a Vision Thing »

PEAR Templates

June 4th, 2004

Aaron Wormus blogs on PEAR Template trouble. The PEAR community seems to be having a significant debate over the proposal to include the template engine Savant into PEAR.

This proposal represents an identity crisis for PEAR. Joshua Eichorn recognizes the issue:

Either we have 1 engine and multiple api’s and fix mistakes of the past or we allow competition, this double standard just doesn’t cut it.

Lukas Smith recognizes the issue as well:

So in conclusion if we accept yet another template engine API into PEAR we might as well forget what PEAR currently stands for.

This proposal highlights the cognitive dissonance between the goal of having only one package for a purpose and the reality of already having multiple templating packages in PEAR.

Yet, there are many styles of templates representing different viewpoints and needs. Perhaps this is responsible for the amazing proliferation of template engines in PHP. Can PEAR hope to cover all of these needs with a one size fits all approach? (or even a 5 sizes fit all approach)

Alan Knowles added some Savant features to Flexy and defends fortress PEAR:

Flexy now does _everything_ that Savant does.. - you are basically proposing a competative package, that’s only competative feature, is realistically, that provide a marginally different API…

But Paul Jones, the author of Savant responds by vowing to press forward with the political process:

That is as it may be … however, I am going to continue the proposal and let it come to a vote.

I do not know what this means in terms of PEARs political process. If Savant wins its vote, does this mean that the doors to PEAR are open and that competition is allowed?

Will there be a grand unification of PEAR template engines? Or will the status quo be preserved, confirming the landgrab theory?

categories PHP
tags pear, templates

Related Posts

  • un-PEAR-ing
  • Installing PEAR Based Applications
  • PEAR: Its a Vision Thing
  • PEAR Channels
  • pear config-set preferred_state beta
You can leave a response, or trackback from your own site.

4 Responses to “PEAR Templates”

  1. #1 Harry Fuecks responds...
    June 5th, 2004 at 1:52 am

    PEAR is becoming PHP’s perpetual SOAP opera. It’s interesting that scraps like this seem to be fewer when it comes to PHP’s own APIs although there are areas of competing interests, such as handling i18n character sets.

    Personally think Savant should be part of PEAR simply because it’s down to earth, well documented, mature and people will probably want to use it. Using the criteria identified on the Template View page it should be possible to identify which engines offer exactly the same “style”, which would be a point to eliminate one or other. Think PEAR’s going to need some kind of “depreciated / no longer supported” status.

  2. #2 Aaron Wormus responds...
    June 8th, 2004 at 8:08 am

    PEAR people continually say “We don’t want to see PEAR turn into CPAN or PHPClasses.org”.

    What PEAR has above those other repositories is GOOD standards and a Peer Review system. If the package meets technical standards there is no reason why it should not be included. Let the people decide what they want to use.

  3. #3 Lukas responds...
    June 18th, 2004 at 6:40 am

    The reason we have more “soap operas” than PHP is that our development process is much more open with a much flatter hirarchy than PHP itself. Anyways it seems like the majority of pear-dev’s seemed to prefer a clean up rather than accepting that due to fairness a mistake must be repeated.

  4. #4 MIchiel van der Blonk responds...
    December 14th, 2007 at 11:53 am

    And why not follow the same approach as with all the other packages: have a PEAR_TEMPLATE class that can be configured to use either Savant, Flexy, Smarty, you name it. Yes that brings a performance issue, but if you want the best performance you shouldn’t even use templates.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

code: use [code=php][/code].

Comment Preview

  • Search

  • Subscribe

    Subscribe All Posts
    Subscribe All Comments
    Subscribe All Bookmarks
    Subscribe with Bloglines Subscribe with My Yahoo Add to netvibes Subscribe in NewsGator Online Add to Google
  • Share This

  • Categories (Home)

    • Agile Methods (14)
    • Mac (14)
    • Misc (16)
    • Open Source (14)
    • PHP (95)
    • Software Design (28)
    • Usability (14)
    • WACT (7)
    • Web Design (20)
  • Recent Comments

    • Working with PHP 5 in Mac OS X 10.5 (Leopard)  94
      noujoum, Michiel Van Kets, isorabins [...]
    • Sarah Snow Stever  24
      Dubai Web Design, Development, Snowcore, ennah [...]
    • Benchmarking PHP's Magic Methods  8
      stas, minikperi, Shelon Padmore [...]
    • Keywords and Language Simplicity  7
      olmse, Handy, minikperi [...]
    • Even the Big Guys Get Validation Wrong  4
      James Benson, Michael, Enric Naval [...]
    • Improved Error Messages in PHP 5  12
      James Benson, Iron, baggreeddog [...]
    • How to Transfer Mac OS X Application Data between Computers  36
      Secret Santa, micala, Khaled bin Alwaleed [...]
    • Programming Language Trends via Google  15
      MattW, Jeff Davis, retry [...]
    • PHP Development From Java Architects Eye  10
      Grrkkvho, Bobrila, FelhoBacsi [...]
    • The value of MVC  9
      Euvmetkk, Bobrila, Vulchak [...]
    • nofollow and comment spam  5
      Scopmazo, Qmumqckx, sss [...]
  • Pages

    • Tags
  • Recent Posts

    • php | tek Wrapup
    • php | tek 2008
    • Sarah Snow Stever
    • Benchmarking PHP’s Magic Methods
    • The Endpoints of the Scale of Stupidity on Video
    • Working with PHP 5 in Mac OS X 10.5 (Leopard)
    • Keywords and Language Simplicity
    • Improved Error Messages in PHP 5
    • Michigan Taxes Graphic Design Services
    • Ruby versus PHP or There and Back Again
  • Archives

    • 2008: May
    • 2007: Jan Feb Mar Apr May Sep Oct Nov
    • 2006: Jan Feb Mar Apr May Jun Jul Oct Nov Dec
    • 2005: Jan Feb Mar Apr May Sep Oct Nov Dec
    • 2004: Apr May Jun Jul Aug Sep Oct Nov
  • Menu

    • Register
    • Log in