Core classes for Super User and others (for use as submodule)
GPL-3.0 License
Core classes for Super User and others (for use as submodule)
A collection of classes for common PHP tasks such as:
JSON
encoded responses to XMLHttp
requests$_SESSION
s & $_COOKIE
sThere are a variety of ways to include these classes in your project, such as downloading them as in an archived format and extracting them where desired, directly cloning into your project, or adding as a submodule in your projects repository.
cd
into your project directorygit submodule add {repository URI} {path/to/destination}
git pull
git submodule update
Super User Core classes are designed to be easy to use with PHP's built-in auto-loading
include_path
set_include_path({core_parent_directory} . PATH_SEPARATOR . get_include_path());
spl_autoload_extensions('.class.php');
spl_autoload_register();
$my_class = new \shgysk8zer0\Core\my_class($args)
$my_class = \shgysk8zer0\Core\my_class::static_method($args)
If installed as a submodule in Git, updating is relatively easy
git submodule update --remote
git pull
to pull changes from your repositorygit submodule update
to checkout the commit used in the project's repositoryGit treats submodules as single files, and submodules have a DETACHED HEAD
unless you checkout a branch
Issues may be reported on GitHub via my Issues Page
Pull requests can be made either on GitHub or via email
For best results, you should fork this repo and add the main repo as a remote
git remote add shgysk8zer0 git://github.com/shgysk8zer0/core.git
git request-pull shgysk8zer0/master origin > {path/to/destination.diff}
git format-patch -o {/path/to/patches} shgysk8zer0/master
Donations may be made using Bitcoin (paypal coming soon)