Kaloa

A PHP Component Library.

kaloa/filesystem

Current release: 0.1.0 (download, other versions)

$ composer require kaloa/filesystem

| README | API Docs | Issues | Packagist

use Kaloa\Filesystem\PathHelper;

$crazyPath = './dir1/.//dir2/../dir3//dir4/.././/..';

$ph = new PathHelper();
echo $ph->normalize($crazyPath) . "\n";    // "dir1"

kaloa/image

| README | API Docs | Issues | Packagist

kaloa/metadata

| README | API Docs | Issues | Packagist

kaloa/renderer

Current release: 0.1.0 (download, other versions)

$ composer require kaloa/renderer

| README | API Docs | Issues | Packagist

kaloa/util

Current release: 0.1.0 (download, other versions)

$ composer require kaloa/util

| README | API Docs | Issues | Packagist

kaloa/view

Current release: 0.1.0 (download, other versions)

$ composer require kaloa/view

| README | API Docs | Issues | Packagist

use Kaloa\View\View;

$view = new View();
$view->title = 'My website';
$view->content = 'Welcome to my site.';
echo $view->render('/path/to/layout.phtml');

kaloa/xmp

Current release: 0.1.0 (download, other versions)

$ composer require kaloa/xmp

| README | API Docs | Issues | Packagist

use Kaloa\Xmp\Reader;

$stream = fopen('/path/to/image.jpg', 'rb');
$reader = new Reader();
$xmpDocument = $reader->getXmpDocument($stream);
fclose($stream);
$dcProps = $xmpDocument->getDublinCoreProperties();

printf("Image title(s): %s\n", implode(', ', $dcProps->getTitle()));
printf("Image tags: %s\n", implode(', ', $dcProps->getSubject()));

How to use

Kaloa packages are best installed via the Composer package manager. The library follows the rules of semantic versioning.