Slide 1

Slide 1 text

Build your own command-line App with PHP Nemanja Marić maki10

Slide 2

Slide 2 text

About me ● PHP Developer at System Inc ● Member of PHP Serbia Community ● Co-organizer Laravel Serbia Meetup’s ● Working with PHP since 2014 ● In Laravel world from 2016 ● Open source contributor ● Co-owner Laravel open source Package `Laravel admin panel` ● Contributing to the Laravel Framework ● And most !important: Husband and father of two little angels

Slide 3

Slide 3 text

Interesting part Share your knowledge with others to get some knowledge.

Slide 4

Slide 4 text

Everything we need is: Terminal, PHP, Symfony/Console Package

Slide 5

Slide 5 text

But how to make simple App like Homestead, or Laravel installer, or PHPUnit, or Behat , ..? They use same Package called “Symfony/Console”.

Slide 6

Slide 6 text

This is an official GitHub repo. 5k stars say many things.

Slide 7

Slide 7 text

Ok, but how to make our App???

Slide 8

Slide 8 text

Composer install

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

So let’s test our command

Slide 12

Slide 12 text

Permission issue let’s fix it.

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

Let’s test our command “PHPMeetupNO30”

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

Yummy spaghetti

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

Run it again from console

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

Rerun

Slide 25

Slide 25 text

Questions? Leave review: https://joind.in/user/maki10 Slides: https://speakerdeck.com/maki10 Twitter: https://twitter.com/NemanjaMaki10