Skip to content

nicksheffield/php_classes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

207 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PHP Classes

A set of useful php libraries


###Database

Connect to a database, construct queries, and run them.


###Form

Create HTML forms.


###XSS

Filter HTML content to prevent Cross-Site Scripping attacks


###Cart

Manage storing products in a cart.


###Collection

Load multiple records from a database table.


###Config

Store data that can be accessed easily from anywhere in your code.


###Email

Send an email with PHP.


###Auth

Handle user details in the session.


###Upload

Handle uploading files.


###URL

Handle redirecting, and saving/restoring urls.


###Model

Easily perform CRUD on a database table.


###Input

Provide an interface for dealing with $_POST content.


###Sticky

Used for filling form fields with prefilled data, or data from the previous request.


###Image

Experimental

Make resized copies of images. This library is experemental.


###Route

Create custom URL routes that point wherever you want. This library is experemental.

If you use this, make sure you include the .htaccess file

<Files .htaccess>
	order allow,deny
	deny from all
</Files>
 
RewriteEngine on
 
# Don't use rewrite if its a real file or folder
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
 
# In addition to the above rules, also ignore the index.php 
# file, anything in the assets folder and the robots.txt file
RewriteCond $1 !^(index\.php|assets|robots\.txt)
 
# Route everything else through the index.php file
RewriteRule ^(.*)$ index.php?/$1 [L]

About

A set of useful php classes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages