PHP Classes

Simple Site Class: Simple Site Class

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2026-06-23 (4 days ago) RSS 2.0 feedNot enough user ratingsTotal: 103 This week: 1All time: 9,771 This week: 42Up
Version License PHP version Categories
simple-site-class 5MIT/X Consortium ...8HTML, Databases, Content management, P...
Collaborate with this project 

Author

site-class - github.com

Description

This package can be used to create database-driven Web sites.

It can load a configuration file in JSON format that defines several details of the site pages like the type of database to use, site domain, copyright, paths of different kinds of files, etc...

The main class can perform several general-purpose functions that many sites need, like page headers, banners, footers, etc...

For database access, it supports MySQL using the MySQLi extension, MySQL, and SQLite with the PDO extension.

Picture of Barton Phillips
Name: Barton Phillips <contact>
Classes: 5 packages by
Country: United States United States
Innovation award
Innovation award
Nominee: 1x

Instructions

Install

There are several ways to install this project

Download The ZIP File

Download the ZIP file from GitHub. Expand it into the /var/www directory that Apache2 creates.

I have /var/www and my virtual hosts off that directory in my servers.

That way, the directory created when you unzip the download is readily available to all my virtual hosts.

Use Composer

If you have Apache or Nginx installed, root your project within your DocumentRoot ('/var/www/html' for Apache2 on Ubuntu).

Or, if you want to make a separate Apache virtual host with a registered domain name, you can make your new project in '/var/www'.

Create a directory `mkdir myproject; cd myproject`, this is your project root directory. Add the following to 'composer.json', just cut and past:

{
    "require": {
        "bartonlp/simple-site-class": "dev-master"
    }
}

Then run `composer install`

  Files folder image Files (50)  
File Role Description
Files folder imagedocs (8 files, 1 directory)
Files folder imagesrc (14 files, 2 directories)
Accessible without login Plain text file CHANGES.md Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login HTML file index.html Doc. Documentation
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file mk-html.sh Data Auxiliary data
Accessible without login Plain text file phpdoc.xml Data Auxiliary data
Accessible without login Plain text file phpstan.neon Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file update.sh Data Auxiliary data

  Files folder image Files (50)  /  docs  
File Role Description
Files folder imageimages (10 files)
  Accessible without login Plain text file banner.i.php Example Example script
  Accessible without login HTML file dbTables.html Doc. Documentation
  Accessible without login Plain text file files.php Example Example script
  Accessible without login Plain text file footer.i.php Example Example script
  Accessible without login Plain text file head.i.php Example Example script
  Accessible without login Plain text file index.php Example Example script
  Accessible without login Plain text file mysitemap.json Data Auxiliary data
  Accessible without login Plain text file siteclass.php Example Example script

  Files folder image Files (50)  /  docs  /  images  
File Role Description
  Accessible without login Image file background.png Icon Icon image
  Accessible without login Image file body-background.png Icon Icon image
  Accessible without login Image file bullet.png Icon Icon image
  Accessible without login Image file code.png Icon Icon image
  Accessible without login Image file hr.gif Icon Icon image
  Accessible without login Image file octocat-logo.png Icon Icon image
  Accessible without login Image file pattern.png Icon Icon image
  Accessible without login Image file tar.png Icon Icon image
  Accessible without login Image file top.png Icon Icon image
  Accessible without login Image file zip.png Icon Icon image

  Files folder image Files (50)  /  src  
File Role Description
Files folder imageDatabase (6 files)
Files folder imagetraits (3 files)
  Plain text file autoload.php Class Class source
  Accessible without login Plain text file beacon.php Example Example script
  Accessible without login Plain text file defines.php Aux. Configuration script
  Accessible without login Plain text file doWebserver.php Example Example script
  Accessible without login Plain text file getVersions.php Example Example script
  Accessible without login Plain text file logging.js Data Auxiliary data
  Accessible without login Plain text file logging.php Example Example script
  Accessible without login Plain text file Myapi.php Example Example script
  Accessible without login Plain text file robots-sitemap.php Example Example script
  Plain text file SiteClass.php Class Class source
  Accessible without login Plain text file siteload.php Aux. Configuration script
  Accessible without login Plain text file tracker.js Data Auxiliary data
  Accessible without login Plain text file tracker.php Example Example script
  Plain text file whatisloaded.php Class Class source

  Files folder image Files (50)  /  src  /  Database  
File Role Description
  Plain text file Database.php Class Class source
  Plain text file dbPdo.php Class Class source
  Plain text file dbTables.php Class Class source
  Plain text file ErrorClass.php Class Class source
  Accessible without login Plain text file helper-functions.php Example Example script
  Plain text file SiteExceptionHandler.php Class Class source

  Files folder image Files (50)  /  src  /  traits  
File Role Description
  Plain text file UserAgentTools.php Class Class source
  Accessible without login Plain text file warningExceptionMap.json Data Auxiliary data
  Plain text file WarnToExceptionHandler.php Class Class source

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  
 100%
Total:103
This week:1
All time:9,771
This week:42Up