REST API and console app

is it possible to create a Linux console service that would generate and consume RestAPI json. i have it working in php but would prefer to use a light-weight service console app if possible. Any simple example or pointer to something would be appreciated.

thks rr

You may want to look at for the older aloe express