Download the PHP package pdapps/kanbani-data without Composer
On this page you can find all versions of the php package pdapps/kanbani-data. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pdapps/kanbani-data
More information about pdapps/kanbani-data
Files in pdapps/kanbani-data
Package kanbani-data
Short Description Kanbani data parsers for PHP
License MIT
Homepage https://pdapps.org/kanbani
Informations about the package kanbani-data
Kanbani data parsers for PHP
These scripts enable interop with Kanbani - a free task manager for Android. In particular, they are used in Kanbani Web Viewer - a simple Trello-like Kanbani board browser.
Requirements
- PHP 5.6 or 7.x
openssl
(if working with encrypted profiles)
What's inside
Scripts are independent. You can include only those that you need.
sync.php
- sync data manipulation
Provides set of classes that allow reading and writing (unserializing and serializing) data produced by the Kanbani when doing sync (using any transport such as local file or WebDAV).
If the openssl
PHP module is available, you can manipulate encrypted sync data as well as plain.
Under the hood, SyncData
is using SyncFile
- a class that doesn't know what exactly it is serializing, only that it is some string. You can use the two separately:
Assuming that $object
is in the format described here:
Helper methods
SyncFile
can generate Kanbani-compatible files names for encrypted boards:
SyncData
can serialize (export) data in several other formats (it can't import them, see Kanbani Web Viewer's import plugin for that):
Command line usage
Call sync.php
directly from the command line to unserialize and dump a file (useful for debugging):
qrcode.php
- QR code data manipulation
Provides set of classes that represent Kanbani's sync profile data when encoded as a QR code for sharing with other devices. It identifies the transport, server location, encryption settings and so on.
Note: a QR code holds JSON data; these classes work on such data but they do not scan or generate QR code images - use libraries like phpqrcode for that.
Generating QR code data from scratch:
Parsing QR code data:
Helper methods
Some QrCodeWebTransport
s have testConnection()
method that returns null
on success or array ["id", "msg"]
(error identifier and human readable message) - useful for checking user input.