Kaloa

A PHP Component Library.

kaloa/view

A lightweight view component

Current release: 0.1.0 (download, other versions)

Composer/Packagist: "kaloa/view": "0.1.*"

Build status for 0.1.x series: Travis CI build status

README | Documentation | Issues


<?php

require 'vendor/autoload.php';

use 
Kaloa\View\View;

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

kaloa/xmp

An XMP (Extensible Metadata Platform) reader component

Current release: 0.1.0 (download, other versions)

Composer/Packagist: "kaloa/xmp": "0.1.*"

Build status for 0.1.x series: Travis CI build status

README | Documentation | Issues


<?php

require 'vendor/autoload.php';

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()));

kaloa/filesystem

Useful classes for working with the filesystem

There is no tagged release yet.

kaloa/image

Classes for working with images

There is no tagged release yet.

kaloa/metadata

A component for working with metadata (e. g. tags)

There is no tagged release yet.

kaloa/renderer

A collection of different output renderers

There is no tagged release yet.

kaloa/util

A collection of utility classes

There is no tagged release yet.

How to use

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

  1. Create a composer.json file in your project directory and add the components you want to use.

    {
        "require": {
            "kaloa/view": "0.1.*",
            "kaloa/xmp": "0.1.*",
            "kaloa/util": "dev-master"
        }
    }
  2. Download the Composer executable into the project directory.

    $ curl -s http://getcomposer.org/installer | php
  3. Install dependencies.

    $ php composer.phar install
  4. Include the generated autoloader in your PHP script.

    require 'vendor/autoload.php';
  5. You may now instantiate Kaloa classes.

    $myView = new Kaloa\View\View();

License

MIT License

Fork me on GitHub