Skip to content

CommonKit for PHP

PHP 8.2 or newer Coming soon

Coming soon.

CommonKit for PHP is a library of small, safe helpers for messy data. It takes the values an application is handed — a name from a form, an amount from a payload, a date from a database — and answers with clean, checked ones: seventeen classes, from CkText, CkEmail and CkMoney to CkDate, CkPayload and CkDictionary.

Its one promise: nothing throws unless you ask. A value that cannot be used gets a calm, predictable answer — an empty string, your fallback, or null from an …OrNull reader — and every class that checks a value can say why, in words.

The library and its documentation are on their way.