php/learntris: implement g cmd and add license.