Skip to content

splitice/KyotoTycoon-client-protocol

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A PHP5.3+ API for Kyoto Tycoon

Personal implementation of the Kyoto Tycoon client in PHP.

Short example using the UI:

<?php
namespace app;
use qad\kyoto;

// Start a server with the command line: ktserver
require_once 'lib.kyoto.php';

// Get an UI object and clear the database
$kt = kyoto\UI()->clear;

// Setting records
$kt['日本'] = '東京';
$kt->set('Coruscant','Coruscant');
$kt->France('Paris');

// Getting records
echo $kt['日本'],PHP_EOL;
echo $kt->get('Coruscant'),PHP_EOL;
echo $kt->France,PHP_EOL;

// Browsing records
foreach( $kt->forward() as $k => $v )
	echo "country:$k city:$v",PHP_EOL;

Read the partial documentation to learn how to use it.

Look at the test.php script for more examples.

About

An client for Kyoto Tycoon in PHP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%