ã¤ã³ãã£ãããã«ã¼ãä»å°æ¯ç¤¾ã®ããã°ã©ãã¼ãããããã§ãã
PHP çéã®æ°ã«ãªã£ããã¨ãã¾ã¨ããï¼ãã¶ãï¼æä¸ãããã§ãå®®åçä»å°å¸ãããéããã¾ãã
ä»åã¯æè¿ GitHub ã§è¦ããã¦æ°ã«ãªã£ã PHP ããã¸ã§ã¯ãã¨ãPHP ã®è¨èªéçºè
ã¡ã¼ãªã³ã°ãªã¹ãã§ãã internals ã®è°è«ãã¤ã¾ã¿é£ããã¦ç´¹ä»ãã¾ãã
â» ãªããç»åã®PHP ãã´ã¯ä½è
ã® Colin Viebrock ããã«ãã£ã¦ãªãªã¼ã¹ãããCC BY-SA 4.0 ã§ã©ã¤ã»ã³ã¹ããã¦ãããã®ã§ãã
GitHub ã§è¦ãããããã¸ã§ã¯ã
https://github.com/slince/spike
- ReactPHP ã§æ¸ããããªãã¼ã¹ãããã·
- TCP/HTTP ã®ãã³ãã«ãä½ãã
https://github.com/webonyx/graphql-php
- GraphQL ã® JS çåç §å®è£ ã PHP ã¸ç§»æ¤ãããã®
- GraphQL 㯠Facebook çºã® API åãåããè¨èª
https://github.com/thephpleague/flysystem
- ãã¡ã¤ã«ã·ã¹ãã ã®æ½è±¡åã©ã¤ãã©ãª
- ãã¼ã«ã«ã®ãã¡ã¤ã«ã¢ã¯ã»ã¹ããªã¢ã¼ããZipArchive ãªã©ãééçã«æ±ãã
- Laravel ã«æ¨æºæ·»ä»ããã¦ããããä»ãã¬ã¼ã ã¯ã¼ã¯ã§ã使ãã
https://github.com/TechEmpower/FrameworkBenchmarks
- å種 Web ãã¬ã¼ã ã¯ã¼ã¯ã®ãã³ããã¼ã¯
- ãã³ããã¼ã¯ã³ã¼ãã«ã¤ãã¦ã¦ã¼ã¶ããã® PR ãåãä»ãã¦ãã
- ãã³ããã¼ã¯ç°å¢/å 容ã¸ã®æé©å度åãã«ã¯åãã¬ã¼ã ã¯ã¼ã¯ã§ãã©ã¤ãããã
- çé¢ç®ã«æè¡é¸æã®ææã«ããã®ã¯å°ã注æãè¦ããã
- PHP ã®éåæãã¬ã¼ã ã¯ã¼ã¯ Swoole ãé¢ç½ãçµæãåºãã¦ãã
- JSON encode ã極端ã«éã
- å 容çã«å®è¡ãããã³ã¼ããã»ã¨ãã© C è¨èªã³ã¼ãã«ãªãã®ã§ãå½ç¶ã¨ããã°å½ç¶ãªé¢ã¯ããã¤ã¤
- DB 絡ã¿ã®ãã³ããã¼ã¯çµæãå¦ã«æªãã®ãæ°ã«ãªã
- ãã³ããã¼ã¯ã³ã¼ã㧠DB ãåæå¼ã³åºããã¦ããã®ãã
- JSON encode ã極端ã«éã
https://github.com/filp/whoops
- ã¨ã©ã¼/ä¾å¤åãæ±ãç¨ã©ã¤ãã©ãª
- Laravel ã«æ¨æºæ·»ä»ããã¦ããããä»ãã¬ã¼ã ã¯ã¼ã¯ã§ã使ãã
https://github.com/nunomaduro/collision
- whoops ã使ããCLI ã§ã®å®è¡æã«ã¨ã©ã¼ç®æãåããããã表示ã§ããã©ã¤ãã©ãª
https://github.com/tenancy/tenancy
- ãã«ãããã³ãã®ãµã¼ãã¹ãä½ãããã®ã©ã¤ãã©ãª
- 1ã¤ã® Laravel ã¤ã³ã¹ãã¼ã«ã§è¤æ°ãã¡ã¤ã³ç¨ã®ã¢ã»ããã DB ãæã¦ã
https://github.com/nesk/puphpeteer
- PHP ã® Puppeteer ããªãã¸
- Puppeteer 㯠Node.js ãã Chrome ã®ãããã¬ã¹ãã©ã¦ã¶ãæä½ããã©ã¤ãã©ãª
- PHP ãã Node.js ã®ã©ã¤ãã©ãªãå©ãã©ã¤ãã©ãª Rialto ã使ããPHP ãã Puppeteer ãå©ã
https://github.com/ethicalhack3r/DVWA
- PHP/MySQL ã使ã£ã Web ã¢ããªãDamn Vulnerable Web Application (DVWA)
- ãã®åã®éããå¦ç¿ç¨ã«ã»ãã¥ãªãã£èå¼±æ§ãæ æã«åãè¾¼ã¾ãã¦ãã
https://github.com/walkor/Workerman
- éåæã¤ãã³ãé§åãã¬ã¼ã ã¯ã¼ã¯
- pcntl_fork + ããã»ã¹ç®¡ç + ã¤ãã³ãã«ã¼ã + ãããã¯ã¼ã¯ã³ã¼ã
- ReactPHP å¨ãã®éåæ I/O ã¹ã¿ãã¯ã¨çµã¿åããã¦ä½¿ãã
- åæ£å¦çç¨ã® GatewayWorker ã socket.io ã® PHP ç phpsocket.io çã®åå°ã¨ãªã£ã¦ãã
https://github.com/dubbo/dubbo-php-framework
- PHP ç¨ã® RPC éä¿¡ãã¬ã¼ã ã¯ã¼ã¯
- Alibaba 製㮠Java ç¨ãã«ããããã³ã«å¯¾å¿ RPC ãã¬ã¼ã ã¯ã¼ã¯ Dubbo ã®ãããã³ã«ã¨å®å
¨äºæ
- Dubbo ã¯å æ¥ Apache ã®ã¤ã³ãã¥ãã¼ã¿ããã¸ã§ã¯ãã«ãªã£ã
- ä¸å½ã®ãªã³ã©ã¤ã³æ¶è²»è éèãã©ãããã©ã¼ã ã®ä¼ç¤¾ã§ãã lexinfintech ã§2年以ä¸ä½¿ã£ã¦ãããã®ã OSS åãã¨ããæµã
- Swoole/Zookeeper/Redisã«ä¾å
æè¿ã® internals
PHP7.3
Cleaning up unmaintained extensions [Accepted]
- https://externals.io/message/102282
- ã¡ã³ããä¸å¨ã®æ¨æºæ¡å¼µã PECL ã¸ç§»ãã¦ããããã»ã¹ã®ææ¡
- æ票ã§å¯æ±ºããåçæ¸
- ç¾å¨ã®æ¡å¼µã®ç¶æ³ã¯Â https://wiki.php.net/todo/extensions ã«ã¾ã¨ãããã¦ãã
- å®ã¯ gettext ã readlineï¼php -aã§ä½¿ããã¦ããï¼ãã¡ã³ããä¸å¨
- ãã®ãããã¯ã¡ã³ãããããªãããã¨ãã£ã¦åã«æ¨æºæ·»ä»ããå¤ããããã¨ããã¨å¾®å¦
- community-maintained ã®ãããªç¹å¥æ±ããå¿ è¦ãã
User-defined object comparison [Under Discussion]
- https://externals.io/message/102473
- ãªãã¸ã§ã¯ãå士ã®æ¯è¼ã®æåãå¤ããããããã«ãããã¸ãã¯ã¡ã½ããã®ææ¡
- ããã©ã«ãã®æ¯è¼ã®æåããªã¼ãã¼ã©ã¤ããã
- PHP5 以æ¥ã®ãªãã¸ã§ã¯ãæ¯è¼æã®ããã©ã«ãã®æåã¯ãåããããã£ãå帰çã«æ¯è¼ãã¦ãããã®
- ç¾ç¶ã®ããã©ã«ãæåã®ä»¥ä¸ã®ãããªç¹ã«å¯¾ããåé¡æèã«ãã¨ã¥ã
- æ¯è¼çµæãããããã£ã®ä¸¦ã³é ã«ä¾åãã
- æ¯è¼ãææ§æ¯è¼
- ä¸è¦/ä¸é½åãªæ¯è¼ã®çºç
- æ¡å¼µãªãã® PHP ã³ã¼ãã§ã¯ãããã®æåãå¤æ´ã§ããªã
Mixed Type [Under Discussion]
- https://externals.io/message/102536
- å宣è¨ã§ mixed ã使ããããã«ããææ¡
- æåã¯å宣è¨ãªãã¨åã
- å¤ãããã®ã³ã¼ãã§åã«å宣è¨ãä»ãããã¦ããªãã ããªã®ããæå³ã㦠mixed ã¨ãã¦ããã®ããåºå¥ããããã®ãã®
- doc comment ã§ããã®ã§ã¯ãã¨ããæè¦ã
- union åãåãè¾¼ã¾ããåã«å ¥ããã¨ãå®éã«ãä»»æã®ãåãåãä»ããããã§ã¯ãªããã®ã«ã誤ç¨ãããã
Typed Properties v2 [Under Discussion]
- https://externals.io/message/102333
- nikic ãã㨠bwoebi ããã«ããåä»ããããã£ã®ææ¡
- ãã¤ã¦ pthreads çã® krakjoe ããããææ¡ãã¦ãããã®ã®ç·´ãç´ã
- åç §ã static ããããã£ã®ãµãã¼ããªã©ãæ§ææ¡ã®é æ«åå ã¸ã®å¯¾å¦ãçãè¾¼ãã§ãã
- ç´°ããã¨ãã¸ã±ã¼ã¹ã¸ã®å¯¾å¦ã§ãææ¡å 容ããã大ãããªã£ã¦ãã
- ãã 7.3 ã® feature freeze ã¾ã§ãã¾ãæéã®ãªãææã«åºããããããæéçã«ååãªæ¤è¨ãã§ããªããã
- 7.3 ãéãã¨ã2 å¹´å¾ã® 8.0 ã¾ã§å ¥ããã¿ã¤ãã³ã°ããªãå¯è½æ§ãï¼
- 7.3 ã®ãªãªã¼ã¹ææããããã¦ã§ãå ¥ãããã¨ããæ¡ã
PHP8
- https://externals.io/message/102415
- 7.3 ã®æ¬¡ã¯ 8.0 ãåºããã¨ãã話ã Zeev ãããã
- è²ã 大ããªå¤æ´ãçãè¾¼ãã®ã« 2020 å¹´ 9 æï½12 æãããã¾ã§å¿ è¦ã¨ãã話ã
- 8.0 ã®åã«å»æ¢äºå®æ©è½ã® deprecation only 㪠7.4 ãæ¥å¹´åºããã
- PHP8 ã§ã¯ JITãéåæ対å¿ãPreloadingãFFI ãå ¥ãããã¨ãã話
JIT
- https://github.com/zendtech/php-src
- PHP ã® JIT ã³ã³ãã¤ã©ã¯2014å¹´ã«æ¦å¿µå®è¨¼ãè¡ããã
- å½æã¯å ¸åç㪠Web ã·ã¹ãã ã®ããã«ããã¯ã¯ PHP ã®å®è¡æéã«ã¯ãªããå¤§å¹ ãªæ§è½åä¸ã«ã¯ãªããªãã¨ããçµè«ã ã£ã
- PHP7 ã§ãä¸è¨ã¯å¤ãããªã
- CPU ãã¦ã³ããªå¦çã«ã¤ãã¦ã¯é常ã«é«éåããã
- Web 以å¤ã§ã® PHP å©ç¨ãªã©ãæ¢åã® PHP å©ç¨ã·ã¹ãã ã®æ§è½åä¸ã«éãããæ°ããªã¦ã¼ã¹ã±ã¼ã¹ã®åµåºã«ã¤ãªãããã
- JIT ã®ãã¢ã youtube ã«ä¸ãã£ã¦ãã
éåæ対å¿
- PHP ããããã¤ã¯ããµã¼ãã¹åãã«ããä½ããå ¥ããã
- ä¾ãã°é·æéå®è¡ãéåæã®ãããããµãã¼ã
- ReactPHP ã Swoole ãç®æãã¦ãããããªé¨å
- åæ¡å¼µã Stream ã§éåæ I/O ã«å¯¾å¿ãã¦ããã¨ä¾¿å©ã«ãªãã¯ã
- 7.3ã¸ã®åãè¾¼ã¿ãç®æãã¦ãã Fiber ã¯ä»ã®ã¨ããé æ«ãã¦ãããã®ã®ãPHP ã®éåæãã¬ã¼ã ã¯ã¼ã¯ Amp ã®éçºè ããããããã¼ã¹ã«async ã®ææ¡ãé²ãããã
FFI(Foreign Function Interface)
- https://github.com/dstogov/php-ffi
- æ¡å¼µã®è¿½å éçºãªãã« C/C++ çã®ãã¤ãã£ãã³ã¼ããå©ç¨ããããã®æ©è½
- AI ãæ©æ¢°å¦ç¿ãªã©ãä»è¨èªã§éçºããã¦ããåæ代ã®æå 端ã©ã¤ãã©ãªã PHP ããå©ç¨ãããããªã
- JIT ã¨åãã㦠PHP èªä½ã§ PHP æ¡å¼µç¸å½ã®ãã®ãä½ããªã©ãPHP ã®ã¦ã¼ã¹ã±ã¼ã¹ãåºãããããã
- ä¾ãã° PHP ã§æ©æ¢°å¦ç¿ãã¬ã¼ã ã¯ã¼ã¯Â TensorFlow ã®ãã¤ã³ãã£ã³ã°ãä½ããããã«ãªã
Preloading
- PHP ã®å SAPI ã§ããªã¯ã¨ã¹ãã®å¦çãéå§ããåã«ã¯ã©ã¹ãé¢æ°ãèªã¿è¾¼ãã§ããæ©è½
- å種 PHP ãã¬ã¼ã ã¯ã¼ã¯ã¯ã¯ã©ã¹ãã¡ã¤ã«ã®ãªã¼ããã¼ããªã©ã bootstrap ã«å¤ãã®æéãè²»ããã¦ãã
- FFI ã JIT ã®æå¹å©ç¨ã¨ããé¢ã§ãå½¹ç«ã¤ç
- Swoole ã WorkermanãPHP-PM ãªã©ããªã¯ã¨ã¹ããã¨ã®Â bootstrap ãçãã¦Â PHP ã®å¦çãé«éåããä¾ãè¤æ°åå¨ãã¦ãããå ã«ç´¹ä»ããWebãã¬ã¼ã ã¯ã¼ã¯ãã³ããã¼ã¯ã§ Swoole ã好æ績ãåºãã¦ããçç±ã® 1 ã¤ã§ããããã¨ãããã¨ã念é ã«ããã¨ããã®æ©è½ã®éè¦ãåããããããã
GitHub ã®äººæ°ãªãã¸ããªãè¦ã¦ããã¨ãæè¿ Web ãµã¤ã以å¤ã®ç¨éã« PHP ãæ´»ç¨ãã¦ããä¾ãããè¦ãæ°ããã¾ããPHP8 ã®æ©è½è¿½å ã Web 以å¤ã®ç¨éã¸åãã£ã¦ããæ°ããã¾ãããä½ã PHP ã® HTML é¢ããã®ãããªæµããã§ãã¦ããã®ããããã¾ããã
ãã®ããã¶ãæåPHPãã¥ã¼ã¹ãã¯æä¸ãããã§åºãã®ãç®æãã¦ãã¾ãããPHP 7.3 ã«ä½ãå
¥ãããããã® 7 æä¸ã«æ±ºã¾ãçãªã®ã§ãã²ãã£ã¨ããã¨ãã®ã¨ãã¾ãè¨äºãåºãããããã¾ããã
ã¤ã³ãã£ãããã«ã¼ãã§ã¯ãPHP ã®ææ°æè¡ååãæ°ã«ãªãã¨ã³ã¸ãã¢ãåéãã¦ãã¾ãã
詳ããã¯ãã¡ãã®æ±äººè©³ç´°ãã覧ãã ãããâãæ¡ç¨æ
å ±ãã¼ã¸Â ï¼ä»å°æ¯ç¤¾ç¹è¨ãã¼ã¸ã¯ãã¡ãï¼