https://github.com/billstclair/loomclient
PHP Client for Loom.cc
https://github.com/billstclair/loomclient
Last synced: about 1 month ago
JSON representation
PHP Client for Loom.cc
- Host: GitHub
- URL: https://github.com/billstclair/loomclient
- Owner: billstclair
- Created: 2009-03-07T11:14:51.000Z (over 17 years ago)
- Default Branch: master
- Last Pushed: 2010-12-04T16:43:28.000Z (over 15 years ago)
- Last Synced: 2026-01-20T10:52:54.628Z (5 months ago)
- Language: PHP
- Homepage: https://billstclair.com/loom/
- Size: 273 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
This directory contains Java and PHP libraries for using
http://loom.cc/ as a client. The libraries are simple enough that the
code should be self-documentating, if you've learned enough about Loom
to use them.
The PHP library is in the file LoomClient.php. There's an example web
form that uses it in grid-tutorial.php. They require the files:
Diceware.php, LoomRandom.php, and bcbitwise.php. Put those files in a
source directory for a PHP-enabled web server, and aim a browser at
grid-tutorial.php, and you'll see the tutorial.
The Java library is in java/cc/loom/LoomClient.java and as the class
cc.loom.LoomClient in loom.jar. You can test it from the command line
as follows:
java -cp loom.jar cc.loom.LoomClient command arguments...
Where command and arguments are docmented by the usage line printed if
you just execute:
java -cp loom.jar cc.loom.LoomClient
The loomclient shell script packages up calling the client so you can
say:
loomclient command arguments...
This is safe to use with real locations, since all communication with
loom.cc is done with an encrypted (https) link.
The makeloomjar script compiles LoomClient.java and creates
loom.jar. It must be run from within this directory.
LoomClient.java currently requires Java 5 generics. There is a comment
at the top of the file telling you how to change it to work with Java
4 (untested).