PHP Classes

Packages of Chris Lam

Recommend this page to a friend!
  All class groups  >  All authors  >  Packages of Chris Lam (3)  >  Mission progress status  >  Reputation  
Picture of Chris Lam
Name: Chris Lam <contact>
Classes: 3
Country: Hong Kong Hong Kong
Age: 38
All time rank: 17548 in Hong Kong Hong Kong
Week rank: 195 Up1 in Hong Kong Hong Kong Up
All time users: 1628
Week users: 0
Innovation award
Innovation award
Nominee: 1x
 
  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z  
  Files folder image Booster Template  
Compiled template engine
This class implements a compiled template engine.

It processes templates and generates PHP script files that generate the template output when executed.

The template variables are defined as arrays which are extracted into local variables before including the compiled template script files.

The template engine supports variables with optional modifiers, comments, including external template files, adding separate Javascript and CSS style definitions, localized text, inline PHP code, conditional sections and loops to iterate over array variables.

  Files folder image Gettable  
PHP Programming Innovation award nominee
February 2010
Number 6
Make protected class properties accessible
This class can be used to make protected class properties accessible from outside.

It is an abstract class that provides access to retrieve values of protected properties while still preventing to change their values.

Protected properties with names that start with an underscore still cannot be accessed from outside of the class even i

  Files folder image Text Helper Class  
Perform several types of text processing operation
This class can be used to perform several types of text processing operations. It can:

- Capitalize the first letter of all words of string
- Count the number of non-whitespace characters, words, sentences in a string
- Encode strings for displaying as HTML, in URLs, escaping quotes, as hexadecimal, as Javascript strings, and obfuscate e-mail addresses
- Exclude given words from a string
- Highlight PHP code
- Indent strings
- Limit the length of a string in number or words or characters
- Strip consecutive whitespace characters
- Word wrap strings


  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z