XPHP Template Framework



I am a PHP developer for White Whale Web Services, and after many years of
using XPHP successfully in a wide variety of applications, I have released
this templating framework to the public.

What is XPHP?

XPHP is a free class for PHP which allows for the embedding of dynamic
content (web application variables, function output, etc.) in a web page,
using a pure XML-based syntax. It is designed to quickly bring application
functionality to your web pages, while avoiding the complexity and overhead
of a full CMS suite or application scripting framework. It has been deployed
on many projects from small-scale sites as a basic templating engine, to
powering mid-sized e-commerce applications, to running full-fledged
intensive data applications on high profile web sites.

Who's it for?

XPHP is designed for developers who want to improve the efficiency and
structure of their applications without committing to a complicated, bulky
framework, or involving disorganized, unsafe, and philosophically
questionable pseudo-code in the delivery of dynamic content to a web page.

Basic goals of XPHP development:

- Embracing XML as a powerful programming tool and partner in PHP
application development.
- The avoidance of dispersing significant application logic, whether as PHP
code or otherwise, throughout individual site files which take focus off the
central web application itself.
- Adhering to an extremely simple syntax, while allowing for maximum
flexibility.
- Ease of development and fast code execution.

Features of XPHP:

- fast, seamless templating functionality
- ability to execute application components with advanced parameter parsing
- support for nesting/recursion, and output evaluation
- advanced output control, including flexible caching support, basic if/else
statements, and variable casting
- fully aware of object-oriented programming techniques
- support for PHP extensions such as XSL, and the popular APC opcode cache
- support for pushing content
- built-in routines for performing common actions
- allows for the registration of user-defined tags and tag types
- simple implementation via output buffering, or manual parsing
- 100% pure XML syntax

System requirements:

- PHP 5.0+
- SimpleXML extension for PHP (enabled by default)

A full tutorial and download link are available at:
http://technologies.whitewhale.net/xphp/
I welcome feedback, and hope that those interested can put this to good use.


Relevant Pages

  • Re: Database abstraction layers (summary)
    ... RAD applications in MS-Access. ... the main reasons I began developing in PHP is that it is a total PITA ... Now I'm trying to do the same with the database. ... Dikkie Dik pointed out that using surrogate keys solves several issues ...
    (comp.lang.php)
  • Re: Joel Spolsky on languages for web programming
    ... Actually, despite the fact that I love Ruby a lot, I'm inclined to ... applications geared for use by only a few people (internal client use ... application based on Rails. ... that I simply wouldn't be able to do in PHP ...
    (comp.lang.ruby)
  • urgent opening for PHP,Mysql developer -6months-Encino,CA
    ... We have an urgent opening for PHP Application developer with our Top ... Significant knowledge of relational database ... Experience building eCommerce applications, blogs, ...
    (comp.lang.java.programmer)
  • Re: Competition is not ALWAYS good
    ... you see web framework as a must-use product. ... for example, consider PHP. ... their applications in bare PHP -- and be quite successful with this. ... Quality of the code is very often correlated with portability, ...
    (comp.lang.lisp)
  • Re: Why PHP?
    ... in the web context I mostly use openQM as a ... >> backend and use PHP instead of MV/BASIC for the bulk of the work. ... > efficient do it all in Pick (or OpenQM) instead - if you could? ... > allow much more sophisticated applications to be built too. ...
    (comp.databases.pick)