2017 © Pedro Peláez
 

library core

Core Super User classes

image

shgysk8zer0/core

Core Super User classes

  • Friday, March 3, 2017
  • by shgysk8zer0
  • Repository
  • 2 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 8 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Super User Core Build Status

Core classes for Super User and others (for use as submodule), (*1)

A collection of classes for common PHP tasks such as: * Database queries (using PDO) * Creating JSON encoded responses to XMLHttp requests * Handling $_SESSIONs & $_COOKIEs * Parsing a variety of file MIME types * Managing logins * Logging PHP errors * etc., (*2)

Installation instructions

There 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., (*3)

To add as a submodule:

  • Copy the repository URI or for it and copy the URI of your fork
  • cd into your project directory
  • git submodule add {repository URI} {path/to/destination}
  • Note that submodules are not updated in a regular git pull
    • To pull updates in submodules, use git submodule update

Using

Super User Core classes are designed to be easy to use with PHP's built-in auto-loading * Make sure that the parent directory is in your include_path * set_include_path({core_parent_directory} . PATH_SEPARATOR . get_include_path()); * Configure file extensions to use * spl_autoload_extensions('.class.php'); * Set the auto-loader * spl_autoload_register(); * Create a new instance of a class including path/namespace * $my_class = new \shgysk8zer0\Core\my_class($args) * Or $my_class = \shgysk8zer0\Core\my_class::static_method($args), (*4)

Updating

If installed as a submodule in Git, updating is relatively easy * To update to the latest version: git submodule update --remote * To update to the version in your repository: * git pull to pull changes from your repository * git submodule update to checkout the commit used in the project's repository, (*5)

Git treats submodules as single files, and submodules have a DETACHED HEAD unless you checkout a branch, (*6)

Contributing

Report a bug or request a feature

Issues may be reported on GitHub via my Issues Page, (*7)

Create a pull request

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 * Create a Pull Request on GitHub * To send a pull request via email: * Email me the output of git request-pull shgysk8zer0/master origin > {path/to/destination.diff} * Or send me a patch (along with a pull-request or diff) * git format-patch -o {/path/to/patches} shgysk8zer0/master, (*8)

Donations may be made using Bitcoin (paypal coming soon), (*9)

Bitcoin QR 12WunGFBrDTRkAdgU6fbiZyyM4WSaAZeHD, (*10)

The Versions

03/03 2017

dev-master

9999999-dev

Core Super User classes

  Sources   Download

GPL-3.0+

The Requires

 

19/08 2016

dev-string-fix

dev-string-fix

Core Super User classes

  Sources   Download

GPL-3.0+

The Requires

 

21/09 2015

dev-feature/51

dev-feature/51

Core Super User classes

  Sources   Download

GPL-3.0+

The Requires

 

07/04 2015

dev-feature/35

dev-feature/35

Core Super User classes

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.5.0