SiteClass class mini framework for my websites.
SiteClass is a PHP mini framework for my websites.
This project has several parts that can function standalone or combined.
There are several ways to install this project.
Download the ZIP file from GitHub. Expand it and move the includes directory somewhere. On a system with Apache2, I usually put the includes directory in the /var/www directory that Apache creates. Apache also usually creates /var/www/html and makes this the default DocumentRoot. I put the includes directory just outside of the DocumentRoot. In my servers I have /var/www and then have my virtual hosts off that directory. That way the includes directory is easily available to all of my virtual hosts.
If you have Apache installed, it has created /var/www. You should create your project in that directory. Apache also creates /var/www/html by default, and if you do not change that, you should create your project within /var/www/html. Or if you want to make a separate Apache virtual host with a registered domain name you can create your new project in /var/www/YOUR_DOMAIN_NAME.
If you do not already have a composer.json file just cut and past the following:
echo "
{
"require": {
"bartonlp/site-class": "dev-main"
}
}" > composer.json
Then run
composer install
OR you can just run
composer require bartonlp/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
where is the path to the vendor directory that composer creates.
There is more documentation in the /docs directory.
Barton Phillips : bartonphillips@gmail.com
Copyright © 2026 Barton L. Phillips
Last modified June 15, 2026 Barton L. Phillips