Upgrade to Pro — share decks privately, control downloads, hide ads and more …

evalこそパワー #phpkansai / phpkansai2017

evalこそパワー #phpkansai / phpkansai2017

PHPカンファレンス関西2017での飛び入りLTの資料です

Hiraku NAKANO

July 15, 2017
Tweet

More Decks by Hiraku NAKANO

Other Decks in Technology

Transcript

  1. evalͦ͜ύϫʔ
    @hiraku

    View full-size slide

  2. ࣗݾ঺հ
    • த໺ ୓ (@Hiraku)
    • https://github.com/hirak
    • ϝϧΧϦͷαʔόʔαΠυΤϯδχΞ
    • Composerؔ࿈ͷൃදΛΑ͍ͯ͘͠·͢
    • PHPΧϯϑΝϨϯεؔ੢2016 جௐߨԋ

    View full-size slide

  3. We are hiring!

    View full-size slide

  4. evalͦ͜ύϫʔ
    @hiraku

    View full-size slide

  5. eval஌ͬͯΔਓʁ

    View full-size slide

  6. eval($code);
    • จࣈྻΛίʔυͱ࣮ͯ͠ߦ͢Δ
    • ʮεΫϦϓτݴޠʯͷຊ࣭Λൈ͖ग़ͨ͠΋ͷ

    View full-size slide

  7. eval࢖͍͍ͬͯͱࢥ͏ਓʁ

    View full-size slide

  8. ةݥ㲈ڧྗ

    View full-size slide

  9. Α͋͘Δྫ
    • ϞοΫ / ΞεϖΫτࢦ޲
    • ςϯϓϨʔτΤϯδϯه๏࡞ͬͨΓͱ͔
    • classͷίʔυΛͦͷ৔Ͱੜ੒࣮ͯ͠ߦ

    View full-size slide

  10. ͋ͦΜͰΈͨྫ
    http://qiita.com/Hiraku/items/
    190443b33ee7a2167ade

    View full-size slide

  11. spindle/collection
    • ഑ྻͷૢ࡞ϝιουΛॻ͘ͱɺιʔείʔυ
    จࣈྻΛ(಺෦తʹ)ੜ੒͍ͯ͘͠
    • ඞཁʹͳ͚ͬͨ࣌ͩevalͰ࣮ߦ

    View full-size slide

  12. evalͷ͔͍ͭΈͪ
    • ݴޠͷೳྗΛͪΐͬͱ͚ͩ௒͑ͨ΋ͷΛ࡞Δ
    • ΦϨΦϨߏจΛ࡞Δ
    • ͳͲͳͲ

    View full-size slide

  13. ͝ར༻͸ܭըతʹ
    ༡ΜͰΈΔͱ໘ന͍Α

    View full-size slide

  14. 2017/6/10 ෱Ԭ✅
    2017/7/15 ؔ੢✅

    View full-size slide

  15. ·ͩؒʹ߹͍·͢ʂ
    phpcon.php.gr.jp

    View full-size slide