I recently ended up looking for a way to hook into the Laravel framework, the same way as what Artisan is doing but without a registered command. That was because of a requirement I had where I wanted to put a dynamically generated command which will give certain output to be processed from Laravel application.
Probably you might have come to this post, because you are doing some REST based application development. You might have come across the issue of infinite recursion with Jackson JSON parser. I am using this post to show you some jackson JSON example on how to solve this issue.