CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
ベリテワークス株式会社 西 宏和
Page. 1
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
自己紹介
•ベリテワークス株式会社 CTO
•西 宏和(にし ひろかず)@hirokazu_nishi
•Zend Certified PHP Engineer
•Magento Certified Developer
•Magento Master:Maker 2016 & 2017
Page. 2
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
あ、ちなみに
私はMagentoのエバンジェリストではありません
Page. 3
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
本家本元のエバンジェリスト
Page. 4
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
越境EC
Page. 5
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
考慮すること
言 葉 法 律
税 金 物 流
決 済 インフラ
アプリケーション
Page. 6
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
考慮すること
言 葉 法 律
税 金 物 流
決 済 インフラ
アプリケーション
Page. 7
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
Magentoとは?
Page. 8
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
全世界240,000サイト以上で導入
多言語・多通貨・マルチサイト
豊富な拡張機能・テーマ
カスタマイズを前提とした構造
大規模サイトでも対応可能
Page. 9
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
TOP10kサイトの内訳
出典:https://trends.builtwith.com/shop
Page. 10
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
ユーザーの多い国の割合
出典:https://trends.builtwith.com/shop/Magento/Market-Share
Page. 11
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
動作環境
OS 64ビットLinux (Mac, Windwsは対象外!)
Httpd Apache 2.2 / 2.4 Nginx 1.8以降
PHP 5.6.x / 7.0.2以降
PHPエクステンション • curl• gd または ImageMagick 6.3.7以降• intl / iconv• mbstring• mcrypt / mhash• openssl• PDO / MySQL• XML / SimpleXML / XSL / SOAP• zip• json
MySQL 5.6.x / 5.7.x
※5.7.xはMagento2.1.2以降でサポート
その他 • cronが定義できること• sshあるいはコンソールによる操作ができること
Page. 12
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
Intlエクステンションの動作不良に注意
OSバージョン 6.x 7.x
PHPバージョンとパッケージ
5.6 Remi ☓ Remi ◯
IUS ◯ IUS ◯
epel - epel -
7.0 Remi ☓ Remi ☓
IUS ◯ IUS ☓
epel ◯ epel ☓
CentOS / RedHat EL大好きな人は要注意!
Page. 13
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
すぐに試したい人は・・・
さくらのクラウド+スタートアップスクリプト
Amazon Lightsail
Magneto DevBox
Page. 14
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
Magentoといえば、な機能
多言語・多通貨
複数配送
マルチサイト
デジコン販売
セット商品
SOAP/REST API
越境課税計算
プロモーションルール
簡易CMS機能
Page. 15
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
Magentoといえば、な機能
多言語・多通貨
複数配送
マルチサイト
デジコン販売
セット商品
SOAP/REST API
越境課税計算
プロモーションルール
簡易CMS機能
Page. 16
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
Magentoの強み
Page. 17
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
マルチサイト管理
商品
管理画面(共通)
在庫
商品 商品商品 商品商品 商品商品
商品 商品 商品商品
Site ASite B Site C
基幹
システム
会計
システム
①同じ商品を別サイトにて表示・更新を一元管理
②全ての受発注・顧客データを一元管理
③基幹や会計システムとの連動も一本化
Page. 18
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
6種類の商品
〔ダウンロード商品〕
DL販売によるデジタルコンテンツの販売と管理が可能です。顧客別にダウンロード回数の制限も可能です。
DL
とっておき動画 先着100名様 限定に販売
〔セット商品〕
基本構成に対してオプションの有無や部品グレードを選択して購入するBTOのような商品を作成・販売できます
カスタマイズ自在激安デスクトップメモリ2GB追加・・・
〔シンプル商品〕
SKU(在庫管理単位)と同じ意味の商品です。
ノートパソコン
〔コンフィグ商品〕
サイズやカラーバリエーションのある商品を取りまとめて1つの商品として表示・販売できます
プリントT
シャツ
〔グループ商品〕
複数の異なる商品をグループ化し、1つの商品として表示・販売できます
リビングルームソファーセット
〔仮想商品〕
家電品などへのオプションとしての補償サービスのような商品を販売することができます
延長3年保証
Page. 19
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
プロモーション管理
Page. 20
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
商品100万点も想定
Page. 21
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
Page. 22
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
マーケットプレイスとサードパーティ
Page. 23
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
止まらない進化
2.1GA 2.2RC1 2.2GA 2.3GA?
2016/06/28 2017/06/24 2017/09
2017/4Q?
2018?
Page. 24
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
2.2で予定されている改良
Advanced Reporting
B2B
プラットフォームの改善
パフォーマンス改善
Page. 25
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
Advanced Reporting
• より高機能なレポート機能を標準装備
• CE/EEの両方で利用可能
Page. 26
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
Page. 27
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
B2B
Page. 28
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
B2Bでの注文・再注文
Page. 29
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
顧客別価格設定
Page. 30
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
Platformの改善
• 環境面の変更
– PHP5.6はサポート外に
– PHP7.1をサポート対象に
– Redis3.2をサポート対象に
– MySQL5.7をサポート対象に
– Varnish3はサポート外、Varnish5がサポート対象に
• ライブラリ関係
– Composer 1.4.1
– Zend Framework 2.5
– Zend Framework 1.12.20
• セキュリティ面の改善
– unserialize関数の使用を廃止
– ハッシュアルゴリズムの変更
Page. 31
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
Web Content Accessibility Guidelines 2.0への対応状況
Page. 32
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
Pipeline Deployment
Page. 33
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
Magentoのチーフアーキテクト・Alan Kent氏曰く
Idea is /var is writable, /generated (PHP code) can now be
read-only. Aiming for zero writable PHP files and directories.
Security goal: all PHP files & dirs read only and owned by
non-web server user - so web server *cannot* change code
on disk in production.
Page. 34
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
パフォーマンス
• Indexerの改良
– インデックスの完全更新中でも購入ができるように
– 長時間処理にかかるものはバッチ化でメモリを最適化
• カートの改良
– 1回のオーダーで300点以上同時購入可能に
• キャッシュの改良
– 購入関連でキャッシュ期限切れがなくなった
– VarnishのGrace, Saintモードが標準で有効に
Page. 35
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
2.1比でのパフォーマンス改善
Page. 36
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
で、日本だとどうなの?
Page. 37
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
日本でよく聞く意見
資料・文献が英語
技術的に難しい
重い
国内サービスとの連携
Page. 38
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
技術的に難しい?
Magento1.9.x Magento2.1.x
Apache 2.x Apache 2.2, 2.4
Nginx 1.8+
PHP 5.3.x - 5.6.x PHP 5.6, 7.0
MySQL 5.5, 5.6 MySQL 5.6, 5.7
Varnish 3, 4
Redis 2.x Redis 2.x, 3.x
XHTML HTML5
CSS CSS3, LESS
prototype.js, jQuery(RWDのみ) jQuery, requireJS, knockoutJS
Zend Framework 1 Zend Framework 1, 2
Composer
PSR-0,1,2,4
PHPUnit, Jasmine, JMeter
Page. 39
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
DevDocs読めば結構頑張れる
Page. 40
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
重い?
サーバースペックは適切か?
CDNやVarnishを使っているか?
変なコード書いてないか?
Page. 41
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
国内サービスとの連携
各社向け鋭意開発中です
その他諸々開発中です
Page. 42
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
もちろんStripeも・・・
Page. 43
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
個人的な感想
• Stripeの仕様は国内各社に比べて素直でシンプル
• PHPもJSもライブラリがとても使い勝手が良い
• 多分来月中には日本製100%日本語サポートOK版だせます
Page. 44
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
日本国内での活動について
Page. 45
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
• Magento Meetup Tokyo(https://www.meetup.com/ja-JP/Magento-Meetup-Tokyo/)
– 毎月第4木曜日開催
• Meet Magento 2017 Japan(https://jp.meet-magento.com/)
– 11月13日開催予定
• MageFuji(https://magefuji.com/)
– 7月18日〜21日開催予定
– 公式エバンジェリストとCommunity Development Team Director来日予定
Page. 46
CONFIDENTIALCopyright© 2017 Veriteworks Inc. All Rights Reserved.
ご静聴
ありがとうございました