Symfony Framework Deepdive - Console
$14.99
Minimum price
$19.99
Suggested price

Symfony Framework Deepdive - Console

A deepdive into the Symfony console components

About the Book

Many PHP developers are great specialists and know their way around PHP like the back of their hand. However, when a powerful framework like Symfony is built, it also includes software patterns and designs, which even the most experienced developers need to learn. This book is aimed to teach you exactly that. 

Console applications written in PHP are more and more common: utilities, data parsers, message queue workers, and even system daemons are written in PHP nowadays.

In this book we will talk in detail a couple of Symfony2 components that deal with console applications: the console, the process, the finder and the filesystem component. We talk about how they work internally, and how they can be utilized either from a stand-alone application or framework, or through your own Symfony2 framework application.

An absolute must for those writing console applications or console tasks, and those who want to understand the internals of the console in general.

About the Symfony Rainbow Series:

The Symfony Rainbow Series is a collection of books, which describe, in detail, the different components that make up the Symfony framework. Every book will concentrate on a single component or a set of smaller components. The books will describe the component's inner workings and also give you recipes to solve common problems quickly and efficiently.

These books are intended for PHP developers with any level of knowledge of Symfony, from beginner to expert. They are especially made for those developers, who work with or want to work with Symfony and want to also do their programming with Symfony as smartly and efficiently as possible. If you would like to learn exactly how the inner workings of Symfony function together as a framework or how to use the wide range of Symfony components in a standalone fashion, then these books are for you!

About the Author

Joshua Thijssen
Joshua Thijssen

Joshua Thijssen is a freelance consultant and trainer. His daily work consists of maintaining code bases, working on different projects and helping other to achieve higher standards in both coding and thinking. He is the author of the PHP|Architect book "Mastering the SPL library", founder of the Dutch Web Alliance and regular speaker at national and international conferences.

Bundles that include this book

$44.98
Bought separately
$25.99
Bundle Price

Table of Contents

  • Introduction
    • About the Symfony rainbow series
    • Introduction
      • Symfony versioning
    • About those who will read this book
    • About those I’d like to thank
  • The process component
    • Introduction
    • Process communication
      • Reading and writing files
      • File descriptors
      • Redirecting output
      • Redirecting input
      • Plumbing with pipes
      • Terminals
    • The proc_open function
      • Arguments
      • Descriptor specifications
    • Directory structure
      • Exceptions
    • Process builder
    • Process classes
      • PHP and enable-sigchild
      • Process
      • PhpProcess
    • Pipes
      • PipesInterface
      • AbstractPipes
      • UnixPipes
      • WindowsPipes
    • Process Finders
      • ExecutableFinder
      • PhpExecutableFinder
    • ProcessUtils
  • The finder component
    • Introduction
      • Instantiating
      • Filtering and sorting
    • Directory structure
      • Exceptions
    • The finder
      • Generic functionality
      • Target functionality
      • Filter functionality
      • Sort functionality
      • Iterator functionality
      • Adapter functionality
    • Adapters
      • Changing the default adapter
      • AdapterInterface
      • AbstractAdapter
      • PHPAdapter
      • AbstractFindAdapter
      • GnuFindAdapter
      • BsdFindAdapter
    • Comparators
      • DateComparator
      • NumberComparator
    • Expressions
      • ValueInterface
      • Expression
      • Glob
      • Regex
    • Iterators
      • CustomFilterIterator
      • DateRangeFilterIterator
      • DepthRangeFilterIterator
      • MultiplePcreFilterIterator
      • ExcludeDirectoryFilterIterator
      • FileContentFilterIterator
      • FilenameFilterIterator
      • FileTypeFilterIterator
      • FilterIterator
      • PathFilterIterator
      • RecursiveDirectoryIterator
      • SizeRangeFilterIterator
      • SortableIterator
    • Shell
      • The Shell class
      • The Command class
  • The filesystem component
    • Introduction
    • Directory structure
      • Exceptions
    • The FileSystem class
    • The LockHandler class
  • The console component
    • Introduction
    • Directory structure
    • Command
      • Command
      • List Command
      • Help Command
    • Descriptors
      • Descriptor class
      • Formatter classes
      • ApplicationDescription class
    • Formatters
      • OutputFormatterInterface
      • OutputFormatter
      • OutputFormatterStyleStack
      • OutputFormatterStyle
    • Helpers
      • InputAware(Interface)
      • Helper
      • HelperInterface
      • HelperSet
      • DescriptorHelper
      • FormatterHelper
      • ProcessHelper
      • DebugFormatterHelper
      • ProgressBar
      • QuestionHelper
      • SymfonyQuestionHelper
      • Table
      • Deprecated helpers
    • Input
      • Arguments and Options
      • InputInterface
      • InputAwareInterface
      • InputDefinition
      • InputArgument
      • InputOption
      • Input
      • ArrayInput
      • ArgvInput
      • StringInput
    • Logger
    • Output
      • Output class
      • StreamOutput
      • ConsoleOutput
      • BufferedOutput
      • NullOutput
    • Question
    • Style
      • StyleInterface
      • OutputStyle
      • SymfonyStyle
    • Application
      • Your first application
      • Registering commands
      • Notable methods
    • Shell
    • Commands within your Symfony2 application
      • The app/console
    • Further reading

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earnedover $14 millionwriting, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub