Symfony Framework Deepdive - Console
Minimum price
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

Suggested Price
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

Authors have earned$9,536,567writing, publishing and selling on Leanpub, earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.

Learn more about writing on Leanpub

The Leanpub 45-day 100% Happiness Guarantee

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

See full terms

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), EPUB (for phones and tablets) and MOBI (for 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. It really is that easy.

Learn more about writing on Leanpub