SimpleSiteClass class mini framework for small websites.
SimpleSiteClass class mini framework for simple, small websites.
SimpleSiteClass 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.
The following database engine is provided as the following class:
To start, this framework is meant for Linux not Windows. I don't use Windows, like it or have it, so nothing has been tried on Windows servers. Quite frankly I don't know why anyone would use a Windows server.
I use Ubuntu 22.04 Linux which is a Debian derivative. I have not tried this package on any distributions that do not evolve from Debian.
There are several ways to install this project.
Download the ZIP file from GitHub. Expand it into the /var/www dirctory that Apache2 creates. In my servers I have /var/www and then have my virtual hosts off that directory. That way the directory created when you unzip the download is easily available to all of my virtual hosts.
If you have Apache or Nginx installed then you should made your project root somewhere within your DocumentRoot ('/var/www/html' for Apache2 on Ubuntu). Or if you want to make a seperate 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-main"
}
}
Then run
composer install
OR you can just run
composer
require bartonlp/simple-site-class:dev-main
which will create the 'composer.json' for you and load the package like 'composer install' above.
In your PHP file add $_site = require_once($PATH_TO_VENDOR . '/vendor/bartonlp/simple-site-class/includes/siteload.php');
where '$PATH_TO_VENDOR' is the path to the 'vendor' directory like './' or '../' etc.
Barton Phillips : bartonphillips@gmail.com
Copyright © 2025 Barton Phillips
Last modified January 1, 2025