پی اچ پی

ساخت برنامه های خط فرمان

How to Build Command-Line Apps

In this series, we'll learn how how to build command-line apps from scratch, using Symfony's excellent console component. In no time, you'll be whipping up executables to perform all sorts of tasks.

سطح متوسط 6 جلسه آموزشی 00:44:00 ساعت
01
قسمت 1

Introduction

Ever used Laravel's installer utility? What about Homestead, or Behat, or PHPSpec? If so, then you've indirectly benefited from the Symfony Console component.

02
قسمت 2

Hello World

Let's start with the obligatory "hello world" of command line apps.

03
قسمت 3

Use Classes for Console Commands

Now that you've learned about the basic process of registering a command, let's now translate that code to a dedicated class.

04
قسمت 4

Case Study: The Laravel Installer

To continue our learning, let's review the makeup of Laravel's command-line installer tool. In fact, we'll reproduce it from scratch!

05
قسمت 5

Rendering Tabular Data

Rendering tabular data to the console is incredibly simple. Let me show you the entire process; it'll only take a moment or two.

06
قسمت 6

Exercise: A Command-Line Task App

Let's put everything we've learned so far to work, as we build a fun little task app that runs on the command line.