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

独立したコアレイヤパターン / independent-core-layer-pattern

shin1x1
July 13, 2018

独立したコアレイヤパターン / independent-core-layer-pattern

2018/07/13 PHPカンファレンス 2018 関西 前夜祭
サンプルコード: https://github.com/shin1x1/independent-core-layer-simple

shin1x1

July 13, 2018
Tweet

More Decks by shin1x1

Other Decks in Programming

Transcript

  1. ಠཱͨ͠
    ίΞϨΠϠύλʔϯ
    ɹ!shin1x1
    2018//13 PHPカンファレンス 2018 関西 前夜祭

    View full-size slide

  2. D
    .BTBTIJ4IJOCBSB!TIJOY
    "HFOEB
    wίΞϨΠϠύλʔϯ
    wϢʔεέʔεૹۚॲཧ
    w·ͱΊ

    View full-size slide

  3. ίΞϨΠϠύλʔϯ

    View full-size slide

  4. D
    .BTBTIJ4IJOCBSB!TIJOY
    ίΞϨΠϠύλʔϯ
    wγεςϜΛೋͭͷϨΠϠʹ෼͚Δ
    wίΞϨΠϠͱαʔϏεϨΠϠ
    wίΞΛαʔϏεΛந৅Ͱར༻

    View full-size slide

  5. D
    .BTBTIJ4IJOCBSB!TIJOY
    ίΞϨΠϠ
    wΞϓϦέʔγϣϯϩδοΫΛ࣮૷
    w1010͕ϝΠϯ

    ʢҰ෦ɺϥΠϒϥϦ΋ར༻ʣ
    wٕज़ৄࡉΛ௚઀ૢ࡞͠ͳ͍
    wίΞϨΠϠͷΈͰςετՄೳ
    wϢʔεέʔεɺυϝΠϯϞσϧ౳

    View full-size slide

  6. D
    .BTBTIJ4IJOCBSB!TIJOY
    αʔϏεϨΠϠ
    wϑϨʔϜϫʔΫ΍ϥΠϒϥϦΛར༻
    w)551ɺ%#ɺ.BJM౳ʑ
    wٕज़ৄࡉΛ࣮૷

    View full-size slide

  7. D
    .BTBTIJ4IJOCBSB!TIJOY
    ίΞͱαʔϏεͷ࿈ܞ
    w1PSUT"EBQUFSTύλʔϯ
    wίΞϨΠϠͰΠϯλϑΣʔεΛఆٛ
    wίΞϨΠϠ͸ΠϯλϑΣʔεʹґଘ
    wαʔϏεϨΠϠ͸ΠϯλϑΣʔεΛ࣮૷

    View full-size slide

  8. Ϣʔεέʔε

    ૹۚॲཧ

    View full-size slide

  9. D
    .BTBTIJ4IJOCBSB!TIJOY
    ૹۚॲཧ
    wૹۚݩޱ࠲͔Βૹۚઌޱ࠲ʹૹۚ

    View full-size slide

  10. D
    .BTBTIJ4IJOCBSB!TIJOY
    ૹۚॲཧ
    wૹۚݩޱ࠲൪߸Ͱ%#͔Β࢒ߴऔಘ
    wૹۚઌޱ࠲൪߸Ͱ%#͔Β࢒ߴऔಘ
    wૹۚݩޱ࠲͔ΒૹֹۚΛݮࢉ
    wૹۚઌޱ࠲ʹૹֹۚΛՃࢉ
    wૹۚݩ࢒ߴΛ%#ʹอଘ
    wૹۚઌ࢒ߴΛ%#ʹอଘ

    View full-size slide

  11. D
    .BTBTIJ4IJOCBSB!TIJOY
    ૹۚॲཧ
    wૹۚݩޱ࠲൪߸Ͱ%#͔Β࢒ߴऔಘ
    wૹۚઌޱ࠲൪߸Ͱ%#͔Β࢒ߴऔಘ
    wૹۚݩޱ࠲͔ΒૹֹۚΛݮࢉ
    wૹۚઌޱ࠲ʹૹֹۚΛՃࢉ
    wૹۚݩ࢒ߴΛ%#ʹอଘ
    wૹۚઌ࢒ߴΛ%#ʹอଘ

    View full-size slide

  12. D
    .BTBTIJ4IJOCBSB!TIJOY
    ૹۚॲཧ
    wૹۚݩޱ࠲൪߸Ͱ%#͔Β࢒ߴऔಘ
    wૹۚઌޱ࠲൪߸Ͱ%#͔Β࢒ߴऔಘ
    wૹۚݩޱ࠲͔ΒૹֹۚΛݮࢉ
    wૹۚઌޱ࠲ʹૹֹۚΛՃࢉ
    wૹۚݩ࢒ߴΛ%#ʹอଘ
    wૹۚઌ࢒ߴΛ%#ʹอଘ

    View full-size slide

  13. D
    .BTBTIJ4IJOCBSB!TIJOY
    ૹۚॲཧ
    wૹۚݩޱ࠲൪߸Ͱ%#͔Β࢒ߴऔಘ
    wૹۚઌޱ࠲൪߸Ͱ%#͔Β࢒ߴऔಘ
    wૹۚݩޱ࠲͔ΒૹֹۚΛݮࢉ
    wૹۚઌޱ࠲ʹૹֹۚΛՃࢉ
    wૹۚݩ࢒ߴΛ%#ʹอଘ
    wૹۚઌ࢒ߴΛ%#ʹอଘ

    View full-size slide

  14. D
    .BTBTIJ4IJOCBSB!TIJOY
    ίΞϨΠϠ
    w2VFSZΠϯλϑΣʔε

    ޱ࠲൪߸͔Β࢒ߴΛऔಘ
    wϢʔεέʔε

    ࢒ߴͷՃݮࢉ
    w$PNNBOEΠϯλϑΣʔε

    ࢒ߴΛอଘ

    View full-size slide

  15. D
    .BTBTIJ4IJOCBSB!TIJOY
    αʔϏεϨΠϠ
    w2VFSZΫϥε

    σʔλϕʔε͔Β࢒ߴΛऔಘ
    w$PNNBOEΫϥε

    σʔλϕʔεʹ࢒ߴΛอଘ
    w$POUSPMMFS"DUJPOΫϥε

    ϢʔεέʔεΫϥεΛ࣮ߦ

    View full-size slide

  16. $BLF1)1-BSBWFM
    4BNQMFDPEF
    https://github.com/shin1x1/independent-core-layer-simple

    View full-size slide

  17. D
    .BTBTIJ4IJOCBSB!TIJOY
    wΞϓϦέʔγϣϯϩδοΫΛकΔ
    wϑϨʔϜϫʔΫΛ׆༻Ͱ͖Δ
    wந৅ͷྗΛखܰʹ׆༻
    ·ͱΊ

    View full-size slide

  18. https://blog.shin1x1.com/entry/independent-core-layer-pattern

    View full-size slide

  19. D
    .BTBTIJ4IJOCBSB!TIJOY
    !TIJOY
    !TIJOY
    D
    .BTBTIJ4IJOCBSB!TIJOY

    View full-size slide