initial checkin
use JsonModel rather than json_encode
add composer.json