kisma / kisma
PHP Utility Belt
Installs: 8 450
Dependents: 8
Suggesters: 0
Security: 0
Stars: 16
Watchers: 3
Forks: 2
Open Issues: 1
Requires
- php: ~5.3
- doctrine/cache: *
- monolog/monolog: *
- symfony/event-dispatcher: ~2.4
- symfony/http-foundation: ~2.4
Requires (Dev)
- phpunit/phpunit: @stable
- dev-master
- dev-develop / 0.2.x-dev
- 0.2.77
- 0.2.76
- 0.2.75
- 0.2.74
- 0.2.73
- 0.2.72
- 0.2.71
- 0.2.70
- 0.2.69
- 0.2.68
- 0.2.67
- 0.2.66
- 0.2.65
- 0.2.64
- 0.2.63
- 0.2.62
- 0.2.61
- 0.2.60
- 0.2.59
- 0.2.58
- 0.2.57
- 0.2.56
- 0.2.55
- 0.2.54
- 0.2.53
- 0.2.52
- 0.2.51
- 0.2.50
- 0.2.49
- 0.2.48
- 0.2.47
- 0.2.46
- 0.2.45
- 0.2.44
- 0.2.43
- 0.2.42
- 0.2.41
- 0.2.40
- 0.2.39
- 0.2.38
- 0.2.37
- 0.2.36
- 0.2.35
- 0.2.34
- 0.2.33
- 0.2.32
- 0.2.31
- 0.2.30
- 0.2.29
- 0.2.28
- 0.2.27
- 0.2.26
- 0.2.25
- 0.2.24
- 0.2.23
- 0.2.22
- 0.2.21
- 0.2.20
- 0.2.19
- 0.2.18
- 0.2.17
- 0.2.16
- 0.2.15
- 0.2.14
- 0.2.13
- 0.2.12
- 0.2.11
- 0.2.10
- 0.2.9
- 0.2.8
- 0.2.7
- 0.2.6
- 0.2.5
- 0.2.4
- 0.2.3
- 0.2.0
- 0.1.3
- 0.1.1
- 0.1.0
- dev-feature/option-refactor
- dev-feature/promises
- dev-feature/reorganization
- dev-release/0.2.35
- dev-feature/presentation
This package is auto-updated.
Last update: 2024-11-20 10:04:29 UTC
README
Kisma™: PHP Utility Belt v0.2.77
Thanks for checking out Kisma!
<a href="http://www.jetbrains.com/phpstorm/" style="display:block;alt="PHP IDE with advanced HTML/CSS/JavaScript editor for hardcore web-developers" title="PHP IDE with advanced HTML/CSS/JavaScript editor for hardcore web-developers">
Proudly developed with
About the name...
Besides being a town in the Rift Valley of Kenya, "kisma" is the Quechuan word for "womb". Since all living things are birthed from a womb (sort of) I thought why not applications? So the that's where I came up with the name. Yes, it's whimsical. Big whoop, whaddya gonna do about it?
The base class of many Kisma™ classes is called "Seed", as it is from this class that all life (i.e. application functionality) springs. This is a lightweight base object that provides very limited, but useful functionality (like an event hook interface). No magic methods, no chicanery. Just pure PHP.
Secondly, the "size" of the library is labeled as "fun-sized". Yes, more whimsicality. I've grown weary of the micro-, macro-, nano-, mega- framework arguments of late. So cope.
A library is supposed to help you, the coder, develop whatever it is you're trying to develop in a timely, productive fashion. If you have to jump through a thousand hoops just to bootstrap the damned utility, it's not easy. If there are choices for configuration file formats, that's not easy. I'm all for flexibility, but I'm more in favor of maintainability. I can't have one person on my team writing his config files in YAML, another in PHP, one in XML, etc. I'm not knocking frameworks that accept/allow this. I'm just saying that I've avoided that for the sake of consistency, maintainability, ease of use, and readability.
Design Goals
These are the design goals of Kisma™. My original goal was to create a really kick-ass web framework. But I don't have the time nor the inclination to take on that level of coding. So I scaled it way back to just be a library of cool shit. This is basically all the utility classes and whatnot that I've written over the last decade assembled into a 5.3 namespaced library. You can use as much or as little of it as you want.
While the library is NOT specifically designed for ultra-fast performance (it ain't slow either), execution speed was the primary goal of certain areas (i.e. caching data for subsequent calls, limited instantiation/invocation within loops, etc.). While the code is, for the most part, stream-lined and fast, I'm sure there are areas where it could be improved to make it faster. However, I've focused on readability and consistency over speed. Can you use this library on your web site? Absolutely. Will it freak out (Symfony|Yii|Cake|Silex|)? It shouldn't. Well, that's cool!
- Fully leverage PHP 5.3, its features such as namespaces, embracing the DRY KISS.
- Use built-in PHP library calls whenever possible for speed.
- Consistent access/interface usage by all objects
- Completely extensible from the base up, minimal cohesion and coupling.
- Usable from/with any other framework or library
- ABSOLUTELY NO USE OF MAGIC __get() AND __set() or public properties.
I will be working on more documentation when I flesh out my model more.
Features
- Easy to use/grasp/grok/work with
- Quicker to code repetitive tasks
- All setters return $this for easy chaining
- Easy to configure
- PSR-0 compliant
- Registered with Packagist, Composer-compatible!
Installation
Kisma™ is PSR-0/4 compliant and can be installed using composer. Simply add kisma/kisma
to your composer.json file. Composer is the sane alternative to PEAR. It is excellent for managing dependencies in larger projects.
{
"require": {
"kisma/kisma": "*"
}
}
Requirements
- PHP v5.3+ Kisma™ requires PHP v5.3.0+.