PHP Conference Japan 2021 ã§çºè¡¨ãããPHPã§å¦ã¶ãªãã¸ã§ã¯ãæåããã°ã©ãã³ã°å ¥éãã®ã¹ã©ã¤ãã§ãã # URL PHP Conference Japan 2021: https://phpcon.php.gr.jp/2021/ CfP: https://forteâ¦
â» ããã¯è«¸è¬ã®äºæ ã§èª¿ã¹ãã¡ã¢ã§ãã7.1.10 ã® Previewç ã«ã¤ãã¦æ¸ãã¦ããã®ã§ããã¼ã¸ã§ã³ã¢ããã«ã¨ããªã£ã¦æ¹åãããããããã¾ãããã¨ãããããã¦ããï¼ï¼ â» Apache PHP MySQLï¼MariaDBï¼ã®ä¸æ¬ã¤ã³ã¹ãã¼ã©ã¼ã¨ãã¦ä¸»ã«åå¿è 層ã«äººæ°ã®XAMPPã§ãããæè¿ã®ãã¼ã¸ã§ã³ã«ããã¦ããªãä»æ§ããããã¾ããã 諸è¬ã®äºæ ã§çµæ§ãªãã¾ããæ°åã«ãªã£ã¦ããã®ã§ãããã¨ããããã©ããã風ã«ãªã£ãã®ãã¡ã¢ã§ãã å¹³ããè¨ã£ã¦ãVMï¼Linuxï¼ã«ãªã£ã ãã¾ã¾ã§ã®XAMPPã¯OSXç¨ã®PHPãApacheçãã¯ãã£ã¦ãããOSXã®ãã¤ãã£ãããã°ã©ã ã¨ãã¦åä½ãã¦ãã¾ããã å人çã«ã¯ãã®ä½ãã¯å¥½ã¾ããã¨ããã£ã¦ãã¦ãOSXã§ãã©ãã©ã«ApacheãPHPãMysqlãå ¥ãã¦ã¤ãªãåãããæéãèããã¨XAMPPã¯æ¥½ã§ãã ä»®ã«èªåã使ããªãã¨ãã¦ã人ã«æããã®ã«
ãã¼ã«ã«ã«ãµã¼ãã¼ç°å¢ãæ§ç¯ã§ããXAMPP XAMPP(ã¶ã³ã)ã¯ãä¸è¬çãªWebãµã¼ãã¼ãã㤠Apache(WEBãµã¼ãã¼ããã°ã©ã ) PHP(ãµã¼ãã¼ãµã¤ãããã°ã©ãã³ã°ç°å¢) Perl(ãµã¼ãã¼ãµã¤ãããã°ã©ãã³ã°ç°å¢) MySQL(ãã¼ã¿ãã¼ã¹ããã°ã©ã ) SQLite(ãã¼ã¿ãã¼ã¹ããã°ã©ã ) phpMyAdmin(MySQL管çã¢ããªã±ã¼ã·ã§ã³) ã¨ãã£ãã¢ããªã±ã¼ã·ã§ã³ãããã±ã¼ã¸ã¨ãã¦ã¾ã¨ãããã¼ã«ã§ãã WordPressãµã¤ããå§ãã¨ããWEBã¢ããªã±ã¼ã·ã§ã³ã®éçºã§ã¯ã ãããè¤æ°ã®ã¢ããªã±ã¼ã·ã§ã³ãã¤ã³ã¹ãã¼ã«ãããã¨ã«ãªãã¾ããã XAMPPã使ãã¨ããããä¸æ°ã«ã¤ã³ã¹ãã¼ã«ãããã¨ãã§ãã¾ãã Macã¸ã®ã¤ã³ã¹ãã¼ã« ã¤ã³ã¹ãã¼ã©ã¼ã®ãã¦ã³ãã¼ã ç¾å¨XAMPPã®Macçã¯ãé常çã¨VMçãé å¸ããã¦ãã¾ãã VMçã¯Macä¸ã«Linuxä»®æ³ãã·ã³ãæ§æãã
ãã¾ããã§ãããDocker使ã£ã¦ãã¾ããï¼ ã¢ã¼ãã£ã¹ã§ãå°ãåããDockerãå©ç¨ãã¦éçºããããã«ãªãã¾ãããDockerããåãã§ã¯ãªãæ¹ã«ç°¡åã«èª¬æãã¦ããã¾ãã¨ãDockerã¯ããã軽éãªä»®æ³åç°å¢ã§ãã ä»®æ³åæè¡ã¨ããã°VMwareãVirtualBoxãªã©ãæåã§ã¢ã¼ãã£ã¹ã§ãå©ç¨ãã¦ãã¾ããããããã®ä»®æ³åæè¡ã¯ãã·ã³ã¬ãã«ã§ã®ä»®æ³åãè¡ãã¾ãããDockerã¯OSã¬ãã«ã§ã®ä»®æ³åãè¡ãã¾ãã Dockerã§ã®ä»®æ³åç°å¢ã¯ããã¹ãã®Linuxã«ã¼ãã«ãå ±æãã¦ããã®ã§ãªã¼ãããããå°ãããæ¢åã®ä»®æ³åæè¡ã¨æ¯è¼ããå ´åã軽ãã¦éããã¨ãç¹å¾´ã§ãã ãããªéçºãæãDockerãªã®ã§ãããå°ãã¨ã£ã¤ãã«ããé¨åãããã®ã§ãPHP7+Apacheã§å¿ è¦æä½éã®éçºç°å¢ãä½ãæ¹æ³ãç´¹ä»ãã¦ã¿ããã¨æãã¾ãã ããããå ã®å 容ã¯ããã¹ãOSå´ã«Dockerãã¤ã³ã¹ãã¼ã«æ¸ã¿ã§
ãããã æ代é ãã®æ å ±ãã¦ã§ãä¸ã«ããµãã¦ããããããªæ å ±ãè¦ãPHPåå¿è ã¯æ¸æã£ã¦ãã¾ãã ãããããã¦ãã¾ããææ³ãã¾ããã³ã¼ããåºã¾ã£ã¦ãã¾ãã ãããªã®ã¯ãããããããPHP: The Right Way ã¯æ°è»½ã«èªããã¯ã¤ãã¯ãªãã¡ã¬ã³ã¹ã ãPHPã®ä¸è¬çãªã³ã¼ãã£ã³ã°è¦ç´ã ã¦ã§ãä¸ã®ããã§ãããã¥ã¼ããªã¢ã«ã¸ã®ãªã³ã¯ãããã¦ç¾æç¹ã§ã®ãã¹ããã©ã¯ãã£ã¹ã ã¨å·çè ãèãã¦ãããã¨ãã¾ã¨ããã 大äºãªã®ã¯ã PHPã使ãããã®æ£å¼ãªãä½æ³ãªã©åå¨ããªã ã£ã¦ãã¨ã ãã®ãµã¤ãã®çãã¯ãã¯ãã㦠PHP ã使ããã¨ã«ãªã£ãéçºè ã«ãããããªãããã¯ãç´¹ä»ãããã¨ã çµé¨è±å¯ãªããã®äººã«ã¨ã£ã¦ããããã¾ã§æ·±ãèãããã¨ãªã使ã£ã¦ããå 容ã«ã¤ãã¦ãæ°é®®ãªè¦æ¹ãä¼ããããã ããã ãã®ãµã¤ãã¯ã決ãã¦ãã©ã®ãã¼ã«ã使ãã°ããã®ãããæãããã®ãããªãã ããã¤ãã®é¸æè¢ã示ãã¦ãããã
ããã«ã¡ã¯ï¼ãã¡ããã§ãã PHPã大好ãã§ããããã10å¹´ãããwebã¨ã³ã¸ãã¢ããã¦ãã¾ãã ä»æ¥ã¯ãªã¯ã¨ã¹ãããã ãããªã¹ã¹ã¡ã®åå¼·æ¹æ³ã«ã¤ãã¦è©³ããã話ãã¦ã¿ã¾ãã é·ãã®ã§åç·¨å¾ç·¨ã«åãã¾ãããåç·¨ã¯ãã¡ã SQLãå¦ã¼ã PHPã¨ä»²ã®è¯ãè¨èªã¯ããããã¨ããã¾ãããç¹ã«é£æºå¿ é ãªã®ãSQLã ä¸ã§ãMySQLã親åã¬ãã«ã§ä»²è¯ãã§ãã ã¤ã³ã¹ãã¼ã«ã¯ãApacheãPHPã®ã¨ãã¨åæ§ãmysql ã¤ã³ã¹ãã¼ã«ãOSåãã§èª¿ã¹ã¦ãã ããï¼OSåã®ã¨ããã¯ãèªèº«ã®ç°å¢ã«åããã¦å¤æ´ãã¦ãã ãããï¼ã ãMySQLã®åå¼·æ¹æ³ãããããªããã¨ããæ¹ã¯ããã¯ããã¦ã®MySQLãã¨ãããã¬ã¸ã³ãæ¸ããã®ã§ããã£ããã覧ãã ããï¼note.comã«é£ã³ã¾ãï¼ã åºæ¬ã身ã«ã¤ããããä¸ç´è åãã«ãã¡ãã®æ¸ç±ããããããã¾ãã ç¹ã«ç¬å¦ãããªã¼ã©ã³ã¹ã§ãã£ã¦ããã¨ããã£ããã¢ã³ããã¿ã¼ã³ã使ã£ã¦
YYPHP#41ããªãã¸ã§ã¯ãæåã¯ãããããªãï¼ãLaravelã§CSVã¤ã³ãã¼ãã®ããªãã¼ãããããã¤ãã¼ã«Envoyã®ä½¿ãæ¹ãLaravelã§å®æ°ã®æ¸ãæ¹ãPHPã¯ããã®ä¸æ©ãå¤ãPHPã®ç°å¢æ§ç¯ãã¨ã©ã¼ãã³ããªã³ã°ãVue NativeãPHPJavaScriptLaravelDockerYYPHP ããã¯2018å¹´06æ15æ¥ã«éå¬ããPHPerã¤ãã³ãYYPHP#41ã®ã¤ãã³ãã¬ãã¼ãã§ãã YYPHPã¯ä¸è¨ã§ãPHPerã®é¨å®¤ãã§ããPHPã«ã¤ãã¦ãéã«ãããããã¯ã¤ã¯ã¤è©±ãåãéãã§ããæ¯åãé¡ã決ããã«éè«ãåºçºç¹ã«ãããããªãã¨ãçªçºçã«ããã¾ããéã¾ã£ã人ã§ã³ã¼ããªã¼ãã£ã³ã°ããããã¨ãããã°ãä¸ç·ã«éçºãã¼ã«ã触ã£ã¦ã¿ããããã¬ã¼ã ã¯ã¼ã¯ã«ã¤ãã¦ã®æ å ±äº¤æããããã¨ãããã¾ããéå¬ã¯ã»ã¼æ¯é±ãé«ç°é¦¬å ´ã«ã¦ã YouTubeã§ã®é ä¿¡æ åã¯ãã¡ã-> [YYPHP #4
ãã®è¨äºã§ã¯ãMac ã®ç°å¢ãã¡ã¤ã³ã«èª¬æãã¾ãããWindows ç°å¢ã§è¡ãæ¹æ³ãè£è¶³ãã¾ãã éçºç°å¢ã®æ§ç¯ã¯ãã¿ã¼ããã«ã使ã£ã¦ã³ãã³ãã§æ示ããã¾ãã ãã®è¨äºå ã§ã¯ãã³ãã³ãèªä½ã®è©³ãã説æã¯ãã¾ããã®ã§ãä¸æãªç®æã¯èª¿ã¹ã¦ãã ããã Windows ã®æ¹ã§ãã³ãã³ãããã³ãããå©ç¨ãã¦ããæ¹ã¯ãGit for Windows ãã¤ã³ã¹ãã¼ã«ãã¦ãGit Bash ã¨ããã½ããã使ã£ã¦ä½æ¥ãã¦ãã ããã æåã« LaravelãVirtualBoxãVagrantãHomesteadãComposer ã«ã¤ãã¦ç°¡åã«å¦ãã å¾ã«ãå®éã«éçºç°å¢ã®æ§ç¯ãè¡ãã¾ãã ç§èªèº«æªçã§ãã®ã§èª¬æã«èª¤ããããããããã¾ããã 誤ããããã°ããææãã ãã ((_ _ (´Ïï½ )ï¾ï¾ï½º 第1ç« Laravel ã¨ã¯ 第2ç« VirtualBox ã¨ã¯ 第3ç« Vagrant ã¨ã¯ 第4ç« Ho
èªã¿è¾¼ã¿ãå®äºã§ããªãã¨è´å½çãªå ´åã¯requireãåé¡ãªãå ´åã¯includeãããã¼ã¸ã§ä¸ã¤ã ã表示ããå ´åã¯onceãä»ãããè¤æ°è¡¨ç¤ºã®å ´åã¯ä»ããªãã¨ãã使ãåãã«ãªããã¨æãã¾ãã æå®æ¥ã«ã³ã³ãã³ããåãæ¿ãã ã¯ã©ã¤ã¢ã³ãã¯ã¼ã¯ã ã¨ä½æ¥ã®0æã«æ´æ°ãããã¨ãã£ãè¦æã¯çµæ§ããã¾ããã ãã®å ´åãæ¥ä»æ©è½ã使ãã°æå®ããæ¥ã«ã³ã³ãã³ããåãæ¿ãããã¨ãã§ãã¾ãã <?php date_default_timezone_set('Asia/Tokyo'); $date_now = strtotime(date('Y-m-d H:i')); if ($date_now < strtotime('2018-03-15 00:00')) : ?> <p>2018å¹´3æ16æ¥ 0æã¾ã§è¡¨ç¤º</p> <?php else: ?> <p>2018å¹´3æ16æ¥ 0æ以éã«è¡¨ç¤º</p> <?p
ãªã¼ãã³ã½ã¼ã¹ã®Webéçºåãã¹ã¯ãªããè¨èªãPHPãã®ææ³ãä¸ããå¦ã¶ããã®å ¥éé£è¼ãæçµåã¯ãã¯ã©ã¹ã®è«ççãªå ¥ãç©ã§ããåå空éã¨ã¯ã©ã¹ãèªåçã«èªã¿è¾¼ããªã¼ããã¼ãã解説ãã¾ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}