added ::format() method

Signed-off-by: Jan Pecha <janpecha@email.cz>
added composer.json

Signed-off-by: Jan Pecha <janpecha@email.cz>
readme.md: updated

Signed-off-by: Jan Pecha <janpecha@email.cz>