Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Paul Jones:
Leanpub Sample Files With Symfony and Aura
Feb 27, 2014 @ 15:51:49

In a recent post to his site Paul Jones shares some work that's been done to help generate books in the Leanpub formatting with an Aura framework-based script.

One of the things that bothers me about some cli/console packages is how the commands you write with them end up being tightly coupled to the “framework” the package provides. [...] Most of the time I don’t need a “full console application” - I just need to read some input for the command, run my actual command logic, and send some output from the command. The Leanpub Sampler from Matthias Noback is an example of the kind of thing I usually end up doing in small or one-off projects.

The script makes use of the Aura.Cli component for console interaction then a custom object for the actual work. This completely decouples the CLI handling from the code to produce the resulting document. You can find out more about the Aura framework on the project's main site.

tagged: leanpub sample file symfony aura auracli

Link: http://paul-m-jones.com/archives/5921


Trending Topics: