Slide 1

Slide 1 text

1)1ΛֶͿͱ͍͏͜ͱ
 
 -FBSOJOH1)1 ʙ8IBUXFSFBMMZOFFEUPMFBSO 1)1ΧϯϑΝϨϯε ,FOJDIJSP,JTIJEB !TJ[VIJLP

Slide 2

Slide 2 text

,FOJDIJSP,JTIJEB 5PLZP +"1"/ TJ[VIJLP!HNBJMDPN !TJ[VIJLP IUUQTHJUIVCDPNTJ[VIJLP IUUQCMPHPQFOUPLZPKQ

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

w৘ใΛ૊৫͠ॲཧ͢ΔλεΫʹ͍ͭͯͷཧ ղΛ༰қʹ͠ɺΞϧΰϦζϜΛਖ਼֬ʹදݱ ͢Δ͜ͱ͕Ͱ͖Δɻ wਓؒಉ࢜ͷձ࿩ͱൺֱͯ͠ɺਖ਼֬ੑͱ׬શ ੑͷཁٻੑ͕ඇৗʹߴ͍ͱ͍͏ಛ௃͕͋ ΔɻࣗવݴޠͰਓؒಉ͕࢜ର࿩͢Δ৔߹ɺ εϖϧϛε΍จ๏తͳΤϥʔ͕͋ͬͯ΋૬ ख͸ঢ়گ͔Βద౰ʹิਖ਼͠ɺਖ਼֬ͳ಺༰Λ ೺Ѳ͢Δɻ͔͠͠ίϯϐϡʔλ͸ࢦ͕ࣔᐆ ດͰ͸ಈ࡞ͤͣɺϓϩάϥϚ͕ίʔυʹࠐ ΊͨҙਤΛཧղͤ͞Δ͜ͱ͸Ͱ͖ͳ͍ 8IBU1SPHSBNNJOH-BOHVBHF https://ja.wikipedia.org/wiki/ϓϩάϥϛϯάݴޠ

Slide 5

Slide 5 text

w1FSTPOBM)PNF1BHF5PPMTɻ ೥ʹ(1-ͷԼͰެ։ wಈతͳ8FCϖʔδΛੜ੒͢ΔπʔϧΛىݯ ͱ͍ͯ͠ΔͨΊɺެࣜͷॲཧܥʹ͸8FCΞ ϓϦέʔγϣϯ։ൃʹؔ͢Δػೳ͕๛෋ʹ ૊Έࠐ·Ε͍ͯΔɻݩʑ1)1͸ϓϩάϥ ϛϯάݴޠͱݴ͑Δ΋ͷͰ͸ͳ͘ɺ୯ʹς ϯϓϨʔτతͳॲཧΛߦ͏͚ͩͰ͋ͬͨ ͕ɺ౓ॏͳΔػೳ௥Ճ΍ίʔυͷॻ͖௚͠ ʹΑΓɺݱࡏ͸໨తʹΑΒͣ൚༻తʹ࢖͏ ͜ͱͷग़དྷΔεΫϦϓτݴޠͱͳ͍ͬͯΔ "CPVU1)11)1)ZQFSUFYU1SFQSPDFTTPS https://ja.wikipedia.org/wiki/PHP_(ϓϩάϥϛϯάݴޠ)

Slide 6

Slide 6 text

8):VTF1)1 ࢓ࣄ+0# $.4 ❤1)1$PNNVOJUZ ֶߍ4DIPPM ❤1)1❤ 0UIFS ❤ ※ਤ͸ΠϝʔδͰ͢
 Image is for illustration purposes

Slide 7

Slide 7 text

8IBUNBLFXJUI1)1 8FC"QQMJDBUJPO 5PPM-JCSBSZ $-*$PNNBOE (6*"QQMJDBUJPO 0UIFS +7. /&4
 FUDʜ ※ਤ͸ΠϝʔδͰ͢
 Image is for illustration purposes

Slide 8

Slide 8 text

wίϯϐϡʔλʔ͕දݱ͢ΔΞϧΰϦζϜΛ ֶͿ-FBSOUIFBMHPSJUINT wࢦ͕͍ࣔ͋·͍Ͱ͸͍͚ͳ͍ͷͰɺޡΓ͕ গͳ͘ͳΔ*%&Λར༻͢Δ*OTUSVDUJPOT TIPVMEOPUCFBNCJHVPVT6TF*%& wݴޠಛ༗ͷར༻ํ๏΍पล஌ࣝΛֶͿ -FBSOMBOHVBHFTQFDJpDVTBHFBOE QFSJQIFSBMLOPXMFEHF wॻ͍ͯಈ͔͢8SJUFBOE3VO -FBSO1SPHSBNNJOH https://www.amazon.co.jp/dp/4798149772 http://algorithm.wiki/ja/app/

Slide 9

Slide 9 text

wΞΠσΞΛΑΓૣ͘ܗʹ
 5PSFBMJTFPOFTDSFBUJWJUZGBTUFS
 wίϛϡχςΟ͕׆ൃ
 5IFDPNNVOJUZJTWFSZBDUJWF
 8):1)1

Slide 10

Slide 10 text

http://gihyo.jp/news/report/2015/12/1401

Slide 11

Slide 11 text

wίϯϐϡʔλʔ͕දݱ͢ΔΞϧΰϦζϜΛ ֶͿ-FBSOUIFBMHPSJUINT wࢦ͕͍ࣔ͋·͍Ͱ͸͍͚ͳ͍ͷͰɺޡΓ͕ গͳ͘ͳΔ*%&Λར༻͢Δ*OTUSVDUJPOT TIPVMEOPUCFBNCJHVPVT6TF*%& wݴޠಛ༗ͷར༻ํ๏΍पล஌ࣝΛֶͿ -FBSOMBOHVBHFTQFDJpDVTBHFBOE QFSJQIFSBMLOPXMFEHF wॻ͍ͯಈ͔͢8SJUFBOE3VO -FBSO1SPHSBNNJOH https://www.amazon.co.jp/dp/4798149772 http://algorithm.wiki/ja/app/

Slide 12

Slide 12 text

wίϯϐϡʔλʔ͕දݱ͢ΔΞϧΰϦζϜΛ ֶͿʢ-FFU$PEFͳͲ-FBSOUIF BMHPSJUINT CZ-FFU$PEFPSTJNJMBS w1)14UPSNΛ࢖͓͏64&1)14UPSN w8FCΞϓϦέʔγϣϯαΠτΛ࡞ΔͳΒ )5.-$44+BWB4DSJQU )551 T 1)1 42-ͱଟذʹΘͨΔ
 /FFE)5.-$44+4 )551 1)1BOE 42-GPSCVJMEJOH8FCBQQMJDBUJPO wQIQBc4 -FBSO1)1

Slide 13

Slide 13 text

w)5.-ݴޠ͡ΌΜ-BOHVBHF w$44ݴޠ͡ΌΜ ࠷ޙ͕-͡Όͳ͍͚ ͲελΠϧγʔτݴޠͱݴ͍·͢ -BOHVBHF w+BWB4DSJQUݴޠ͡ΌΜ-BOHVBHF w1)1͜͜ΛֶΜͰԿ͔Λ࡞Γ͍ͨʂ
 *XBOUUPMFBSO1)1UPNBLFTPNFUIJOH w42-ݴޠ͡ΌΜ-BOHVBHF "MPUPG4LJMMTOFFEFE

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

Webアプリって
 15分でできるんでしょ?
 
 I know that a web app can be made in 15 minutes. is it wrong?

Slide 16

Slide 16 text

)JTUPSZ ݱࡏ )551 )5.- +4 1)1 42- .PKBWJ "HBWJ 4ZNGPOZ $BLF1)1 $* ;FOE :JJ 4MJN 'VFM -BSWFM "VSB Y https://github.com/pmjones/php-history

Slide 17

Slide 17 text

PHPͷೖྗ͸HTTPϦΫΤετ
 ग़ྗ͸HTML͚ͩͲɺҰ୴๨ΕΑ͏
 / Input is HTTP request. 
 The output is HTML, but for now forget it PHP͔Β͸PDOܦ༝ͰSQL
 (Web APIͳΒHTTP CLIENT) 
 From PHP, execute SQL via PDO. 
 (If using Web API, use HTTP CLIENT) ೖྗ ஝ੵ Ճ޻

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

-FBSO8FC https://www.amazon.co.jp/dp/4873118042 https://www.amazon.co.jp/dp/4774142042

Slide 20

Slide 20 text

-FBSO42-3%# https://www.amazon.co.jp/dp/4297104083 https://www.amazon.co.jp/dp/4774180661

Slide 21

Slide 21 text

-FBSO1)1 http://php.net/manual/ja/getting-started.php

Slide 22

Slide 22 text

https://qiita.com/shibacho/items/20f6eee42083c620b556

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

No content

Slide 25

Slide 25 text

5SZ3VO > - $ php -S 0.0.0.0:8080 -t src PHP Development Server started Listening on http://0.0.0.0:8080 Document root is /var/src Press Ctrl-C to quit. $ php -a Interactive shell php > var_dump("Hello World!"); string(12) "Hello World!"

Slide 26

Slide 26 text

w 1)1ͱ42-JUFΛΠϯετʔϧ͢Δ
 *OTUBMM1)1BOE42-JUF w )5.-λάͱ؆୯ͳ1)1ίʔυΛؚΜͩQIQ ϑΝΠϧΛ࡞ͬͯΈΔ
 $SFBUFBQIQpMFXJUI)5.-UBHTBOETJNQMF1)1DPEF
 http://php.net/manual/ja/tutorial.firstpage.php w )5.-ʹGPSNΛೖΕͯɺૹ৴͞Ε͖ͯͨ৘ใΛ औಘ͢Δ
 1VUUIFGPSNJO)5.-BOEHFUUIFTFOUJOGPSNBUJPO
 http://php.net/manual/ja/tutorial.forms.php
 http://php.net/manual/ja/language.variables.external.php w 1%0Λ࢖ͬͯ%#ʹ஋Λอଘͯ͠ΈΔ
 5SZTBWJOHUIFWBMVFJO%#VTJOH1%0
 http://php.net/manual/ja/book.pdo.php

Slide 27

Slide 27 text

wؔ਺Λ࡞ͬͯΈΔ
 5SZNBLJOHBGVODUJPO wϑΝΠϧΛ෼ׂͯ͠ΈΔ
 5SZTQMJUUJOHUIFpMF w֎෦ϥΠϒϥϦΛ࢖ͬͯΈΔ
 5SZVTJOHUIFMJCSBSZ wΦϒδΣΫτࢦ޲ʹऔΓ૊ΜͰΈΔ
 5SZPCKFDUPSJFOUFEQSPHSBNNJOH wϑϨʔϜϫʔΫΛ࢖ͬͯΈΔ
 5SZVTJOHUIFGSBNFXPSL wʜ

Slide 28

Slide 28 text

-PWF$PNNVOJUZ wશࠃ֤஍ͰΧϯϑΝϨϯε΍ษڧձ͕࣮ࢪ ͞Ε͍ͯ·͢$POGFSFODFTBOETUVEZ HSPVQTBSFIFMEJOFBDISFHJPO w1)1Ϣʔβʔζ ೔ຊޠ 4MBDLʹՃೖ͠ ͯɺަྲྀ࣭໰ͯ͠ΈΑ͏ʂ+PJO1)1 VTFS +"1"/&4& 4MBDL
 ⬇ 
 IUUQTTMBDLJOQIQVTFST KBIFSPLVBQQDPN

Slide 29

Slide 29 text

5P#F1SPGFTTJPOBM w1)15IF3JHIU8BZ
 IUUQKBQIQUIFSJHIUXBZDPN wࣗ෼ͷମݧΛൃදͯ͠ΈΑ͏
 5SZQSFTFOUBCPVUZPVSFYQFSJFODF BT BTQFBLFS w044ͷιʔείʔυΛಡΜͰΈΔ
 5SZSFBEUIF044DPEF w044ʹύονΛ౤͛ͯΈΑ͏
 5SZNBLFBQBUDIGPSDPOUSJCVUFUP 044

Slide 30

Slide 30 text

Walk on road, hm? Walk left side, safe. Walk right side, safe. Walk middle, sooner or later, “get squish just like grape.” Here, karate, same thing. Either you karate do "yes" or karate do "no." You karate do "guess so,"just like grape. Understand? 
 [ from Karate Kid / Mr.Miyagi]

Slide 31

Slide 31 text

WJTJUNZCMPHHJUIVC https://github.com/sizuhiko http://blog.open.tokyo.jp