PHP Classes
elePHPant
Icontem

PHP Site Class: Create database driven Web sites

Recommend this page to a friend!
  Info   View files Documentation   View files View files (89)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2017-05-02 (4 months ago) RSS 2.0 feedStarStarStarStar 72%Total: 591 All time: 5,067 This week: 656Up
Version License PHP version Categories
site-class 1.30MIT/X Consortium ...5HTML, PHP 5, Databases
Description Author

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

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

The main class can perform several types of general purpose functions that many sites need like cookie management, keep track of the site visitors, generate page headers and footers, error and exception handling, etc..

For database access it supports several types like MySQL, MySQLi, PDO, PostgreSQL and SQLite.

Name: Barton Phillips is available for providing paid consulting. Contact Barton Phillips .
Classes: 5 packages by
Country: United States United States
Age: 73
All time rank: 58071 in United States United States
Week rank: 161 Up13 in United States United States Up
Innovation award
Innovation award
Nominee: 1x

Details

SiteClass Verion 2.0

SiteClass is a PHP mini framework for simple, small websites. It can be esaly combined with other frameworks or templeting engines if needed. For small websites I feel that frameworks like Laravel or Meteor etc. are just too much.

This project has several parts that can function standalone or combined.

  • Database.class.php : provides a wrapper for several different database engines.
  • dbTables.class.php : uses the functionality of Database.class.php to make creating tables easy.
  • ErrorClass.class.php : Error and Exception classes
  • SiteClass.class.php : tools for making creating a site a little easier. The class provides methods to help with headers, banners, footers and more.

The following database engines are provided:

  1. dbMysqli.class.php : (rigorously tested) This is the latest PHP version of the MySql database engine.
  2. dbSqlite.class.php : sqlite3 (used for the examples)

There are a couple of additional databases but they have not be rigouously tested.

SiteClass Documentation

SiteClass Documentation

Contact Me

Barton Phillips : bartonphillips@gmail.com My Website Copyright © 2015 Barton Phillips

  Files folder image Files  
File Role Description
Files folder imagedocs (21 files, 4 directories)
Files folder imageexamples (17 files, 1 directory)
Files folder imageincludes (2 files, 1 directory)
Files folder imagetests (3 files, 1 directory)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login HTML file index.html Data Documentation
Accessible without login Plain text file LICENSE Lic. License
Accessible without login Plain text file mk-html.sh Data Auxiliary data
Accessible without login Plain text file mysitemap.json.php Aux. Auxiliary script
Accessible without login Plain text file mysql.schema Data Auxiliary data
Accessible without login HTML file README.html Doc. Documentation
Accessible without login Plain text file README.md Data Auxiliary data

  Files folder image Files  /  docs  
File Role Description
Files folder imagefonts (5 files)
Files folder imageimages (10 files)
Files folder imagejavascripts (2 files)
Files folder imagestylesheets (5 files)
  Accessible without login HTML file analysis.html Doc. Documentation
  Accessible without login Plain text file analysis.md Data Auxiliary data
  Accessible without login Plain text file beacon.php Example Example script
  Accessible without login Image file counter.png Icon Icon image
  Accessible without login HTML file dbTables.html Doc. Documentation
  Accessible without login Plain text file dbTables.md Example Example script
  Accessible without login HTML file examples.html Doc. Documentation
  Accessible without login Plain text file examples.md Data Auxiliary data
  Accessible without login HTML file files.html Doc. Documentation
  Accessible without login Plain text file files.md Example Example script
  Accessible without login HTML file index.html Doc. Documentation
  Accessible without login Plain text file mk-html.sh Data Auxiliary data
  Accessible without login Plain text file params.json Data Auxiliary data
  Accessible without login Plain text file robots.php Example Example script
  Accessible without login HTML file siteclass.html Doc. Documentation
  Accessible without login Plain text file siteclass.md Data Auxiliary data
  Accessible without login Plain text file sitemap.php Example Example script
  Accessible without login HTML file testing.html Doc. Documentation
  Accessible without login Plain text file testing.md Data Auxiliary data
  Accessible without login Plain text file tracker.js Data Auxiliary data
  Accessible without login Plain text file tracker.php Example Example script

  Files folder image Files  /  docs  /  fonts  
File Role Description
  Accessible without login Plain text file copse-regular-webfont.svg Data Auxiliary data
  Accessible without login Plain text file quattrocentosans-bold-webfont.svg Data Auxiliary data
  Accessible without login Plain text file quattrocentosans-bolditalic-webfont.svg Data Auxiliary data
  Accessible without login Plain text file quattrocentosans-italic-webfont.svg Data Auxiliary data
  Accessible without login Plain text file quattrocentosans-regular-webfont.svg Data Auxiliary data

  Files folder image Files  /  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  /  docs  /  javascripts  
File Role Description
  Accessible without login Plain text file main.js Data Auxiliary data
  Accessible without login Plain text file script.js Data Auxiliary data

  Files folder image Files  /  docs  /  stylesheets  
File Role Description
  Accessible without login Plain text file github-dark.css Data Auxiliary data
  Accessible without login Plain text file github-light.css Data Auxiliary data
  Accessible without login Plain text file normalize.css Data Auxiliary data
  Accessible without login Plain text file styles.css Data Auxiliary data
  Accessible without login Plain text file stylesheet.css Data Auxiliary data

  Files folder image Files  /  examples  
File Role Description
Files folder imageincludes (1 file)
  Accessible without login Plain text file composer.json Data Auxiliary data
  Accessible without login Plain text file example-insert-update.php Example Example script
  Accessible without login Plain text file example-route.php Example Example script
  Accessible without login Plain text file example-with-twig.php Example Example script
  Accessible without login Plain text file example1.php Example Example script
  Accessible without login Plain text file example2.php Example Example script
  Accessible without login Plain text file example3.php Example Example script
  Accessible without login Plain text file example4.php Example Example script
  Accessible without login Plain text file example5.php Example Example script
  Accessible without login HTML file EXAMPLES.html Doc. Documentation
  Accessible without login Plain text file EXAMPLES.md Doc. Documentation
  Accessible without login Plain text file mysitemap.json Data Auxiliary data
  Accessible without login Plain text file route-1.template Data Auxiliary data
  Accessible without login Plain text file route-2.template Data Auxiliary data
  Accessible without login Plain text file sqlite.sql Data Auxiliary data
  Accessible without login Plain text file with-twig-1.template Data Auxiliary data
  Accessible without login Plain text file with-twig-2.template Data Auxiliary data

  Files folder image Files  /  examples  /  includes  
File Role Description
  Accessible without login Plain text file head.i.php Aux. Auxiliary script

  Files folder image Files  /  includes  
File Role Description
Files folder imagedatabase-engines (10 files)
  Plain text file SiteClass.class.php Class Class source
  Accessible without login Plain text file siteload.php Aux. Auxiliary script

  Files folder image Files  /  includes  /  database-engines  
File Role Description
  Plain text file Database.class.php Class Class source
  Plain text file dbAbstract.class.php Class Class source
  Plain text file dbMysql.class.php Class Class source
  Plain text file dbMysqli.class.php Class Class source
  Plain text file dbPdo.class.php Class Class source
  Plain text file dbSqlite.class.php Class Class source
  Plain text file dbTables.class.php Class Class source
  Plain text file ErrorClass.class.php Class Class source
  Accessible without login Plain text file helper-functions.php Aux. Auxiliary script
  Plain text file SqlException.class.php Class Class source

  Files folder image Files  /  tests  
File Role Description
Files folder imageincludes (5 files)
  Accessible without login Plain text file topBottom.php Test Unit test script
  Accessible without login Plain text file withMysql.php Test Unit test script
  Accessible without login Plain text file withSqlite3.php Test Unit test script

  Files folder image Files  /  tests  /  includes  
File Role Description
  Accessible without login Plain text file banner.i.php Test Unit test script
  Accessible without login Plain text file bootstrap.php Test Unit test script
  Accessible without login Plain text file footer.i.php Test Unit test script
  Accessible without login Plain text file head.i.php Test Unit test script
  Accessible without login Plain text file phpunit.xml Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:591
This week:0
All time:5,067
This week:656Up
 User Ratings  
 
 All time
Utility:93%StarStarStarStarStar
Consistency:87%StarStarStarStarStar
Documentation:87%StarStarStarStarStar
Examples:81%StarStarStarStarStar
Tests:-
Videos:-
Overall:72%StarStarStarStar
Rank:241