Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A collection of random php classes and other stuff which might be useful in web app development
PHP JavaScript CSS
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Kiss
REST-base
frontend-modules/modules
kTester
kUtils_tests
pearmail
tests
.gitignore
README-SlimRouter.md
README.md
SlimRouter.php
jquery.displacement.js
jquery.scrollEvents.js
kCacheFly.php
kMySQLi.php
kRequestInfo.php
kSendmail.php
kSendmail2.php
kTester.php
kTester_example.php
kTwigBlog.php
kTwitter.php
kUtils.php
rescombine.php

README.md

Kiss Tools

Introduction

This collection of classes has already helped us in many cases. These little fellas are ticking in the back of our web-apps and support them with just the features we need.

@TODO: Translate the DocTags into english for some older classes...

These are the contents of the kiss toolset so far:

Frontend

bs_window.js

This AMD module depending on twitter bootstrap v2 brings you great window functionality to your project.

PHP

CacheFly

The cachefly class was designed quite a while ago to provide a simple way to add caching to already existing projects.

MySQLi extension

ORM Classes are plain stupid. Get over it. I think the mySQLi class provided by php is just fine - mostly. This class extends it with a couple of useful methods.

Request Info Collector

Use this class to easily collect data about your current visitor. Which OS is he using? Whats his preferred language? Whats the best matching language that I support? With this class, your information is just a function call away.

Sendmail Class

Sending E-Mails with PHP can be a real pain. This class takes the most weight off your shoulders and makes it really easy to send e-mails with PHP.

Unit testing class

Enables you to write unit tests in a totally easy way. The tests are groupable and the class renders the results in beautiful HTML5. What do you want more?

Twitter class

Get tweets for a specific search term or tweets of a specific username directly as PHP arrays.

Twig Blog class

Do you think wordpress is just too much? So do I. the kTwigBlog is a ridiculously simple blogging engine that relies on the twig templating system.

kUtils class

The kUtils class brings you some useful functions which are missing in PHP.
Currently containing:

  • array_map - A method to filter arrays and typecast their values. VERY useful for sanitizing user input.
  • array_id_to_key - A method which takes a field of a multidimensional array and turns it into the array key for fast queries.
  • array_sort_by_key - A method which can sort an multidimensional array by a value of a field.
  • template - Parses simple, mustache-like template strings.

Resource combiner

Rescombine packs several CSS or javascript files together with a simple syntax: http://example.com/rescombine.php?files=file1,file2,file3 The files are cached and only taken from a specific directory with a specific file extension. Caching is available. Minification is available. Use it with mod_rewrite to make requests beautiful: http://example.com/file1,file2,file3.css

SlimRouter

A component for the Slim PHP framework which makes your all-day-routing life much easier :)

Something went wrong with that request. Please try again.