PHP Classes

Simple PHP OOP CMS: Build Web site pages from template classes

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 766 All time: 4,413 This week: 59Up
Version License PHP version Categories
simple-cms 0.9The PHP License3.0PHP 5, Libraries, Content management
Description 

Author

This package can build Web site pages from template classes.

It provides a template class that can replace template variables, as well as other constructs like conditional sections, loops, external template file including, etc..

The package also provides a generate purpose MySQL database access class that can be extended by other classes that need to perform database operations.

A members class extends the database class to provide functionality like register, login and logout users.

Users may be banned depending on the IP address of the computer they use to access the site.

Picture of Yerfry Ramirez
  Performance   Level  
Innovation award
Innovation award
Nominee: 1x

 

Example

<?php
require 'config.php';

if(!
Session::exists('UserData')) header('Location: login.php');

$Template = new Template();
$Member = new User();

$Template->file('home.html')
    ->
assign('test', 3000)
    ->
assign('Title', Configuration::get('Title'))
->
render();
?>


  Files folder image Files (16)  
File Role Description
Files folder imagecore (2 directories)
Files folder imagetemplates (3 files)
Accessible without login Plain text file config.php Conf. Configuration script
Accessible without login Plain text file index.php Example Example script
Accessible without login Plain text file login.php Example Example script
Accessible without login Plain text file login.sql Data Auxiliary data
Accessible without login Plain text file logout.php Example Example script

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 93%
Total:766
This week:0
All time:4,413
This week:59Up