This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

0.2.0 2016-09-09 12:08 UTC

This package is not auto-updated.

Last update: 2021-11-27 03:51:30 UTC


README

Build Status Latest Stable Version License

Lightweight autocomplete container. Default interaction is implemented via sockets.

Usage demo

Prerequisites:

  • php is installed and available as cli command
  • composer is available globaly
  • port 7082 is not used

Steps:

wget https://github.com/Mufuphlex/cplt/archive/master.zip
unzip master.zip
cd cplt-master
composer install --no-dev
cd demo
php initiator.php 1>cplt.log 2>cplt.log &
php requester.php 'sta'

Output will be like the following:

array(3) {
  'r' =>
  array(5) {
    [0] =>
    string(7) "started"
    [1] =>
    string(8) "standing"
    [2] =>
    string(6) "stairs"
    [3] =>
    string(9) "staggered"
    [4] =>
    string(5) "state"
  }
  'e' =>
  NULL
  'p' =>
  string(36) "sta	5	0	0.0003509521484375	1 408 304"
}