Most of us use Symfony as a PHP Web Development Framework, but its components can be used in a non-web environments, for instance a standalone command line. This article shows how to bootstrap such applications without unneeded libraries (such as EventDispatcher or HttpKernel) and how to package them as a PHAR for easy redistribution.
More on the blog post at linux-nerd.com.