$30 off During Our Annual Pro Sale. View Details »

PHPバージョンアップのための依存ライブラリとの付き合い方 / phpcon2022

blue_goheimochi
September 24, 2022

PHPバージョンアップのための依存ライブラリとの付き合い方 / phpcon2022

PHP Conference Japan 2022の登壇資料です。
https://phpcon.php.gr.jp/2022/

blue_goheimochi

September 24, 2022
Tweet

More Decks by blue_goheimochi

Other Decks in Technology

Transcript

  1. PHP PHP 2022 2022.09.24 Yuta Ohashi

  2. 1 ( ) PHP

  3. PHP

  4. 4 PHP https://www.php.net/supported-versions.php

  5. 5 PHP https://www.php.net/supported-versions.php

  6. 6 PHP https://www.php.net/supported-versions.php

  7. 7 PHP https://www.php.net/supported-versions.php PHP 7.4 : 2022/11/28 End of life

    PHP 8.0 : 2022/11/26 Security fixes only PHP 8.1 : 2023/11/25 Active support Security fixes only PHP 8.2 : 2022/11/24 Active support
  8. 8 PHP • 3 • Active support: 2 • Security

    fixes only: 1 • 2 Active support 1 Security fixes only 3
  9. 3

  10. 10 • • • End of Life • • PHP

  11. PHP

  12. PHP

  13. 13 • PHP • 1 PHP5.x PHP7.4 • • 2

    PHP7.4 PHP8.0 • • • Renovate •
  14. 1 PHP5.x PHP7.4

  15. 3

  16. 16 1 PHP5.x PHP7.4 https://www.php.net/manual/ja/index.php

  17. 17 1 PHP5.x PHP7.4 • • SVN 2010 7 •

    PHP • • • • • • • •
  18. 18 1 PHP5.x PHP7.4 https://speakerdeck.com/blue_goheimochi/phpconsen2019 1

  19. 19 1 PHP5.x PHP7.4 • PHP • PHP • •

    1 • Composer • •
  20. 2 PHP7.4 PHP8.0

  21. 21 2 PHP7.4 PHP8.0 • • 1 • Laravel 6

    • • Laravel6 PHP7 (6.19.0 PHP8 ) • • PHP7 • PHP8 •
  22. 22 2 PHP7.4 PHP8.0 1. PHP7.4 8.0 2. PHP 3.

  23. 23 2 PHP7.4 PHP8.0 1. PHP7.4 8.0 PHP8 composer install

  24. 24 2 PHP7.4 PHP8.0 1. PHP7.4 8.0 PHP (8.0.23) PHP

  25. 25 2 PHP7.4 PHP8.0 1. PHP7.4 8.0 composer update

  26. 26 2 PHP7.4 PHP8.0 1. PHP7.4 8.0 composer.json PHP

  27. 27 2 PHP7.4 PHP8.0 1. PHP7.4 8.0 • PHP7 •

    34 composer.lock PHP7 • 1 1 • Github Release composer.json • 8 • •
  28. 28 2 PHP7.4 PHP8.0 1. PHP7.4 8.0 socialiteproviders/facebook 1.0.0 4.1.0

    • Github Release composer.json • 1.0.0 5.6 5 7.0 7 • 4.1.0 7.2 7 8.0 8 • 4.1.0 PHP8 composer install
  29. 29 2 PHP7.4 PHP8.0 1. PHP7.4 8.0 socialiteproviders/facebook • 1.0.0

    PHP8 composer install
  30. 30 2 PHP7.4 PHP8.0 1. PHP7.4 8.0 socialiteproviders/facebook • composer.json

    • • • ^1.0 ^4.0
  31. 31 2 PHP7.4 PHP8.0 1. PHP7.4 8.0 socialiteproviders/facebook • -w

    • Renovate composer update -w socialiteproviders/facebook:4.1.0
  32. 32 2 PHP7.4 PHP8.0 1. PHP7.4 8.0 • 1 1

    • Release Note • • • • •
  33. 33 2 PHP7.4 PHP8.0 2. PHP • composer.json • PHP

  34. 34 2 PHP7.4 PHP8.0 2. PHP

  35. 35 2 PHP7.4 PHP8.0 2. PHP • Docker PHP •

    composer install • • • • • OK
  36. 36 2 PHP7.4 PHP8.0 2. PHP

  37. 37 2 PHP7.4 PHP8.0 3. • PHP7 PHP8 • •

    PHP7 • PHP7 • Laravel 9 PHP7
  38. None
  39. - Renovate -

  40. 40 composer.json {} composer.lock {} Repository Renovate Renovate

  41. 41 composer.json {} composer.lock {} Repository Renovate composer.json composer.lock Renovate

  42. 42 composer.json {} composer.lock {} Repository Renovate Renovate

  43. 43 Renovate

  44. 44 • Renovate composer.json composer.lock • • 2 • •

    • composer update (composer.lock
  45. 45 Renovate • 2 1 • Renovate • Renovate •

  46. 46 • Renovate • • • • Wiki •

  47. 47 • Renovate • • • • Dockerfile PHP •

    package.json
  48. 48 https://speakerdeck.com/blue_goheimochi/phperkaigi2022

  49. まとめ

  50. 50 • PHP • Active support 2 Security fixes only

    1 3 • PHP • • Renovate
  51. PHP

  52. ⻘ごへいもち / @blue_goheimochi 株式会社オウケイウェイヴ PHP(Laravel), JavaScript(Vue.js/Nuxt.js), ランニング, サッカー, フットサル, 浜松まつり,

    PUBG Mobile, さわやかのげんこつハンバーグ