PHPã«ã³ãã¡ã¬ã³ã¹åæµ·é 2016 çºè¡¨è³æ 20160416
å æ¥å¥ã®ãã¼ã ããã ãPHPã§ä½æããWebã¢ããªã®é度ãé ãã®ã§å©ãã¦ããã¼ã ã¨ããç¸è«ãåããã 対å¿ãããã®ã®ãçµæ§æéãããã£ã¦é¢åã ã£ãã®ã§ã ä»å¾ãããã£ãåé¡ãèµ·ãã£ãæã«ä½¿ããããããã§ãã¯ãªã¹ããã¾ã¨ãã¦ãã£ãã åºæ¬çãªå 容ã ãã©ã ãã®ãã§ãã¯ãªã¹ãã®å 容ããã£ã¦ã¿ã¦ãããã§ããã¡ãªãç¸è«ããªããã ã¨ä¼ãã¦ãããã¨ã§ç¸è«ãæ¸ãããã£ã«ã¿ã¨ãã¦åãã¦ãããã¯ãã ã PHPããã¸ã§ã¯ãã«éãããããã¯ã¨ã³ãã§ãã¼ã¿ãã¼ã¹ã使ç¨ãã¦ãã Webã¢ããªã®ããã¸ã§ã¯ããªã試ã価å¤ã®ãããã®ãå¤ãã¯ãã 調æ»ã対å¿æ¹æ³ã®æ軽ãé ã§ä¸¦ã¹ãã¨ãããªæã: Webãã©ã¦ã¶ã®ãããããã¼ãã¼ã«ã§ã¬ã¹ãã³ã¹ãè¨æ¸¬ãã Webãµã¼ã(Apache)ã®ãªã¯ã¨ã¹ãæéããã°ã«åºåãã ãã°è§£æãã¼ã«ã§URLæ¯ã®ä»éãªã¯ã¨ã¹ãæ°ã確èªãã ãã¼ã¿ãã¼ã¹ã®ã¹ãã¼ã¯ã¨ãªãã°ãåºåãã ãããã¡ã¤
PHPã§å®éã«ãã¹ãé§åéçºããã£ã¦ã¿ããã¥ã¼ããªã¢ã«åç»ã§ãã空ã®ããã¸ã§ã¯ãããéå§ããå®éã«ã©ããã£ã¦é²ãã¦è¡ããããã¹ãã®æåã¨ã失æãã©ã®ããã«è¦ããããé常ã«ã·ã³ãã«ãªä¾ããã¨ã«ç´¹ä»ãã¦ãã¾ãã ãã®åç»èªä½ã¯ããªãåã«æ®ã£ããã®ãªã®ã§ããããã£ãããªã®ã§ããã°ã«ãã¢ããã»ã»ã»ï¼åç»ã®æéãé·ãå²ã«å 容ãè¥å¹²èãã§ãããæå¬ã¨ãããã¨ã§ã TDDã¯æ®æ®µè¦çãªãã¹ãã楽ããããã¦ããããããããããå®éã«ããã¸ã§ã¯ããé²ããã¨ã«å®å¿æãæ群ã«ä¸ãããæè¿ã¯ããã¤ãã¢é§åéçºãªãã¦ã®ãããããPHPã§ãBehatã¨ãCodeceptionã¨ããããå¯è½ã«ãããã®ãããã®ã§ã¾ãç´¹ä»ã§ããã°ã¨æãã¾ãã ã¹ããã¯æ å ± åç»ã§ä½¿ã£ã¦ãããã®ã®ã¹ããã¯æ å ±ã§ãã Sublime Text 3 (ããã¹ãã¨ãã£ã¿) PHP PHPUnit iTerm (ã¿ã¼ããã«ã½ãã) åèåç» ãã¡ãã®
TDD is dead. Long live testing.ã«è§¦çºãããããã§ã¯ãªãããã©ã ã¾(ã»Ï<)ï¾"ãä¸ä¸ä¸âã⠱⠲ ã³ãã³ã⪠é¢é£è¨äº: behat3ã¨zombiejsã§BDDã«ææ¦(1) [behat3ã¨zombiejsã§BDDã«ææ¦(2)] [behat 3.0 ã¨zombiejsã§BDDã«ææ¦(3)] [behat 3.0ã¨phantomjsã§BDDã«ææ¦(4)] [behat 3.0ã¨Jenkins CIã§BDDã«ææ¦(5)] [behatã¨Chrome Headlessã§BDDãå®è·µ(6)] [behat3ã¨zombiejsã§BDDã«ææ¦(1)]:http://qiita.com/dozo/items/be0ff9e9443413a32d25 [behat3ã¨zombiejsã§BDDã«ææ¦(2)]:http://qiita.com/dozo/items/4cb29
ãPHPã®éçºç°å¢ãæ§ç¯ãããã·ãªã¼ãºã®ç¬¬4åã§ããä»åã¯XAMPPã®PHPç°å¢ã«PHPUnitãã¤ã³ã¹ãã¼ã«ããã¾ãEclipseããPHPUnitã®ãã¹ããå®è¡ã§ããMakeGoodã¨ãããã©ã°ã¤ã³ãçµã¿è¾¼ã¿ã¾ããããã¦å®éã«ãã¹ããå®è¡ãã¦ã¿ã¾ãã ï¼2015å¹´3æ3æ¥ä¿®æ£ï¼Windows 8.1ï¼Pleiades All in One Eclipse 4.4 Lunaã®ç°å¢ã¨Composerã«ã¦ã¤ã³ã¹ãã¼ã«ããç´è¿ã®ç°å¢ã«åããã¦ãå¤§å¹ ã«ä¿®æ£ãã¾ãããå°ãç»é¢ã®ãã£ããã£ã®å¤ãã¯2013å¹´11æã®ã¾ã¾ã§ããå®éã¨ç°ãªãå ´åãããã¾ããï¼ åææ¡ä»¶ æ¬ç¨¿ã¯ãPHPã®éçºç°å¢ãæ§ç¯ããï¼ãã®ï¼ï¼ï¼ãPleiades All in Oneãã®ã¤ã³ã¹ãã¼ã«ãã«è¨è¼ããéãã«è¨å®ãã¾ããã以ä¸ã®ç°å¢ã対象ã«è¨è¼ãã¦ããã¾ããåã½ããã¦ã§ã¢ã®ãã¼ã¸ã§ã³ãç°ãªãå ´åã¯åä½ãç°ãªãã¨æãã¾ãã®ã§ã
æ°è¨èª Hack ã¨ã¯ ããã«ã¡ã¯ãæ°è¨èª Hack ã Facebook ãã OSS ã¨ãã¦ãªãªã¼ã¹ããã¾ãããã 詳細ã¯ä»¥ä¸ã®éãã https://code.facebook.com/posts/264544830379293/hack-a-new-programming-language-for-hhvm/ æ°è¨èª Hack 㯠HHVM åãã®éçºè¨èªã§éçåä»ãè¨èªã®æ§è³ªãåãå ¥ã PHP ã§ã®ç´ æ©ãéçºãå®æ½ããPHPã¨ã®äºææ§ãããã¾ã http://hacklang.org/ http://hhvm.com/ HHVM (HipHop Virtual Machine for PHP) ã¨ã¯ãFacebook ã OSS ã§éçºãã¦ãã PHP ç¨ã® JIT ã³ã³ãã¤ã©ã§ãã HHVM 㯠PHP ã®ã³ã¼ãããã¤ãããã¯ã«ãã¤ããªã³ã¼ãã¸ã¨å¤æãããã¨ã§é«éå®è¡ã®å®ç¾ãç®
ãããã®VPSã§FuelPHPãåãããã¨æã£ã¦ oil create PROJECT_NAME ã¨ã³ãã³ããæã¤ã¨ Submodule path 'fuel/packages/parser': checked out '634204f87047fdb2d5957b74a7c24a4faea33cc2' PHP Fatal error: Exception thrown without a stack frame in Unknown on line 0 Fatal error: Exception thrown without a stack frame in Unknown on line 0 ã¨ã¨ã©ã¼ãåºã¦ãã¾ãã åãäºãAmazonã®EC2ã§ãã㨠Submodule path 'fuel/packages/parser': checked out '634204f87047fd
å®è·µFuelPHP ã®è¨äºä¸è¦§ã§ã
PHPã«ã³ãã¡ã¬ã³ã¹2013ã§PHPéçºç°å¢ãVagrantã§ä½ãçºè¡¨ãè¡ã£ãã®ã§ãããå ·ä½çãªVagrantfileã欲ããã¨ãã声ãé ããã®ã§ãGitHubã«å ¬éãã¾ããã ãèªèº«ã§æ§ç¯ãããã¼ã¹ã«ãªãã°è¯ãã¨æãã®ã§ãã©ãä½ãã°è¯ãã®ï¼ã¨è¨ãæ¹ã¯åèã«ãã¦ã¿ã¦ä¸ããã ãªãããã®ãªãã¸ããªã® Vagrantfile ã¯ãéçºPCå ã® VirtualBox ä¸ã§éçºç°å¢ã¨ãã¦åãããã¨ãæ³å®ãã¦ãã¾ããã»ãã¥ãªãã£ã«ã¤ãã¦ã¯èæ ®ããã¦ããªãã®ã§ã注æä¸ããã vagrant-lapp-sample https://github.com/shin1x1/vagrant-lapp-sample ãã®ãªãã¸ããªã¯ãPHPã¢ããªã±ã¼ã·ã§ã³ï¼CakePHPï¼ãã¤ã¡ã¼ã¸ãã¦ãã¾ããæ§æã¯ä»¥ä¸ã§ãã CentOS 6.4 Apache 2.2 PHP 5.4 PostgreSQL 9.3 phpPg
ããã«ã¡ã¯ãä¸å·ã§ãã ãã1ã»2å¹´ã§ãããç§ã®æ å½ããããã¸ã§ã¯ãã§ã¯ã PHPãããJavaScriptã®éçºãå¤ãç¶æ ãç¶ãã¦ããã¾ãã JSã®ããã¸ã§ã¯ããéããã«ã¤ããéçºç°å¢ã段ã ã¨æ´çããã¦ãã¾ããã®ã§ã ä¸æ¦ãæè¿ã®JSéçºã§å©ç¨ãã¦ããã©ã¤ãã©ãªããã¼ã«ãªã©ãã¾ã¨ãã¦ã¿ã¾ããã ãã¬ã¼ã ã¯ã¼ã¯ âBackbone.js http://backbonejs.org/ JavaScriptã®MVCãã¬ã¼ã ã¯ã¼ã¯ã ä½ã使ããªã(ãããã¯ææµ)ããã¯ãããã使ã£ã¦æ¬²ããã¨æãããã¬ã¼ã ã¯ã¼ã¯ã§ãã å©ç¨è ãå¤ãæ¥æ¬èªæ å ±ãè±å¯ã«ããã®ã¨ããã¬ã¼ã ã¯ã¼ã¯èªä½ã1500è¡ç¨åº¦ã¨è»½éãªãããå¦ç¿ã³ã¹ããä½ãæãããã¨ãã§ãã¾ãã âAngularJS http://angularjs.org/ ãã¼ã¿ãã¤ã³ãã£ã³ã°ãåãããã¬ã¼ã ã¯ã¼ã¯ã é«æ©è½ãªãã³ãã¬ã¼ãããDIã®ä»çµã¿ãã«ã¼ã
å½¼æ¤æ°å¹´ã»ã©æããã¦ããMongoDBãã¼ã¹ã®PHP製WEBãã¬ã¼ã ã¯ã¼ã¯ãCockatooã ããã¤ãã®ãµã¼ãã¹ã§æ°å¹´éãå®å®ç¨¼åãç¶ãã¦ããã®ã§ããããèªä¿¡ãã¤ãã¦ãã¾ããã æ¬æ¥ã¯ç¤¾å ã§åºãã¦è¡ãããã®ã ãã©è«¸è¬ã®ï¼éæè¡çãªï¼äºæ ããæ«ã身åããåããªãç¶æ ãç¶ãã¦ã㦠ãããã活路ã社å¤ã«æ±ããªãããªããªãããªã¨ãã ã¡ã¤ã³ãã¼ã¸ http://cockatoo.jp/wiki2/main ç¹å¾´ 大ä½ãä¸è¨ã¡ã¤ã³ãã¼ã¸ã«æ¸ãã¦ããã®ã§ãããããããæ¸ããªãã£ãäºãå°ããã ã¾ãããã®ãã¬ã¼ã ã¯ã¼ã¯ã®è¨è¨ç念ã«ã¯ããããªãã«WEBéçºã»éç¨ã«é¢ãã£ã¦æ¥ãç§ã®ã¨ã³ã¸ãã¢ã¨ãã¦ã®æããè©°ã¾ã£ã¦ãã¾ãã ããããªé¢¨ã«WEBãµã¤ããéçºã§ãããè¯ãã®ã«ï¼ï¼ã ãç§ã ã£ãããããªæãã§WEBãµã¤ãã®éç¨ããããï¼ã çµæãããªãã®é¨åãå®ç¾ã§ããã¨æã£ã¦ãã¾ãã ç¹ã«éçºå´ã¯ï¼å²æ¹åºæ¥ãããª
大å¤ãå¾ ãããã¾ãããFuelPHP ã®å ¥éæ¸ ãã¯ããã¦ã®ãã¬ã¼ã ã¯ã¼ã¯ã¨ãã¦ã® FuelPHPã ãã¤ãã«7æ2æ¥ã«çºå£²ããããã¨ã«ãªãã¾ãããå¾ ã£ãç²æããã£ãã¨æããããããªå®æ度ã®é«ãæ¸ç±ã«ä»ä¸ããã¾ããã ãã®æ¬ã¯ã以ä¸ã®ãããªãã¨ãå½ã¦ã¯ã¾ã人ã«èªä¿¡ãæã£ã¦ãè¦ããã¾ãã FuelPHP ã«èå³ãããããWeb ã®æ å ±ã¯æççã§ããããæ£ç¢ºãªãã®ãã©ãããããããããªãã¦å°ã FuelPHP ã®å ¨ä½åãèãæ¹ãæã£åãæ©ãç¥ããã ã¾ãã以ä¸ã®ãããªãã¨ãå½ã¦ã¯ã¾ã人ã«ãæ¯éãèªã¿ããã ãããã§ãã PHP ã¯ä½¿ã£ã¦ããã©ããã¬ã¼ã ã¯ã¼ã¯ã£ã¦ä½ï¼Smarty ã¨ã©ãéãã®ï¼ã¾ã 使ã£ããã¨ããªãã®ã§ç¥ããã PHP 使ã£ã¦ããã©ãã©ãã«ãã¬ã¬ã·ã¼ã§ãã®ä¼ç¤¾å¤§ä¸å¤«ãï¼ã¨çåãæãã 使ã£ã¦ããã¬ã¼ã ã¯ã¼ã¯ããªã¬ãªã¬ãã¬ã¼ã ã¯ã¼ã¯ã§ãããå®è£ ãã¤ã±ã¦ãªãããã¨ãä»äººãã¡ã³ãã§ããå°
iPhone / iPadã®ç»åã90度å転ãã¦ãã¾ã£ã¦ããã®ããµã¼ãå´ã§ç´ãï¼Exif + Orientationã¿ã° + ImageMagick + PHPï¼ iPhone / iPadã¯ã縦ã«æã£ã¦åçãæ®ã£ãå ´åã§ããå é¨çã«ã¯æ¨ªé·ã®JPGç»åï¼Exifã®Orientationã¿ã°ã§å転è§åº¦ãåãè¾¼ãã§ä¿åãã¦ããããã§ãã ã§ã¯ãã®ç»åãåãåºãã¦è¡¨ç¤ºã»ä½¿ç¨ããå ´åã«ã©ããªããã¨ããã¨ãOrientationã¿ã°ãè¦ã¦ç¸¦ã«è¡¨ç¤ºãããå¦ãã¯è¡¨ç¤ºããã½ããã¦ã§ã¢ã«ãããã¨ãããã¨ã«ãªãã¾ãã ããããæ稿ç»åãã¦ã¼ã¶ã¼ç°å¢ã«ãã£ã¦è¦ãæ¹ãå¤ããã¨ãããããªãã¨ã«ãªãã¨ãããã¯ã¡ãã£ã¨é¿ãããã¨æãããã§ãã
April 1, 2013Say Hello to Boris: A Better REPL for PHP Key Takeaways Boris is a PHP REPL (Read-Eval-Print Loop) library that aims to address some limitations of PHPâs default REPL, such as poor error handling and lack of automatic output of expression results to the console. Boris enhances error handling by not exiting the console when an error occurs, instead reporting the error details and stack
session_cache_limiter("none");ã¨èª°ããæ¸ãã¦ããã®ã§ãããã¥ã¢ã«ãè¦ã¦ã¿ãã®ã§ãããnoneãªãã¦ãã©ã¡ã¼ã¿ã¯ãªãã ããããæ¤ç´¢ããã¨åºã¦ããã®ã§ãã©ãããæåã«ãªãã®ãã¨èª¿ã¹ã¦ã¿ã¾ããã è¦å®ã®ãã©ã¡ã¼ã¿(publicã»private_no_expireã»privateã»nocache)ã ã¨ã start_session()ãè¡ã£ãã¨ãã«ãCache-Control:ããããéããã¾ãã éãããå 容ã«ã¤ãã¦ã¯ã http://php.net/manual/ja/function.session-cache-limiter.php ãåç §ãã¦ãã ããã PHPã®ã½ã¼ã¹ãèªãã ã¨ãããpublicã»private_no_expireã»privateã»nocache以å¤ã® å ´åã¯ãããããéãããªãã¨ãªã£ã¦ãã¾ãã <?php session_cache_li
ã¯ããã« æ¬é£è¼ã§ã¯ãPHPä¸ã§åä½ããã¢ããªã±ã¼ã·ã§ã³ãã¬ã¼ã ã¯ã¼ã¯ã§ããsymfonyã§ã¢ããªã±ã¼ã·ã§ã³éçºãè¡ãæ¹æ³ã«ã¤ãã¦ç´¹ä»ãã¾ããååã§ããååã¯ãsymfonyã®ç¹å¾´ãç´¹ä»ããå®éã«symfonyãã¤ã³ã¹ãã¼ã«ãã¦ç°¡åãªã¢ããªã±ã¼ã·ã§ã³ãä½æããã¾ã§ãç´¹ä»ãã¾ããã第2åã¨ãªãä»åã¯ãããå®è·µçãªã¢ããªã±ã¼ã·ã§ã³ã®ä¾ã¨ãã¦ãæ²ç¤ºæ¿ã¢ããªã±ã¼ã·ã§ã³ãã®ä½æãéãã¦ããã¼ã¿ãã¼ã¹é£æºãªã©ã®åºæ¬çãªææ³ã«ã¤ãã¦ç´¹ä»ãã¾ãã 対象èªè PHPã®åºæ¬æ§æã¯ä¸éãç解ãã¦ãããããã¬ã¼ã ã¯ã¼ã¯ãå©ç¨ãããã¨ã¯ãªãã¨ããæ¹ã対象ã¨ãã¦ãã¾ãã å¿ è¦ãªç°å¢ symfonyã¯PHP5ã¨Webãµã¼ããã¤ã³ã¹ãã¼ã«ããã¦ããç°å¢ã§å©ç¨å¯è½ã§ããæ¬ç¨¿ã§ã¯Webãµã¼ãã¨ãã¦Apache2.2ããOSã«Windows XPãæ¡ç¨ããã¢ããªã±ã¼ã·ã§ã³ãä½æãã¦ããã¾ããã¾ãããã¼ã¿ãã¼ã¹ã¨ãã¦MySQLã
Opauthã¯PHPåãã®èªè¨¼ã©ã¤ãã©ãªã§ããæ½è±¡åãããã¨ã§å¤æ§ãªãããã¤ãã¼ã«å®¹æã«å¯¾å¿ã§ãã¾ãã Webãµã¼ãã¹ã§èªè¨¼ãç¨æããã¨è¨ã£ã¦ãä»ã¯å¤æ§ãªæè¡ãåå¨ãã¾ããåãªãID/ãã¹ã¯ã¼ãã«éãããOpenIDãOAuthãããã¾ãããµã¼ãã¹ãããã¤ãã¼ãã¨ã«å®è£ ãè¥å¹²å¤ãã£ãããã¾ããããããèªè¨¼æè¡ãçµ±åãã¦ä½¿ããã®ãOpauthã§ãã ãã¢ã§ãã Facebookèªè¨¼ã§ãã åé¡ãªãèªè¨¼ã§ãã¾ãããå種ãã¼ã¿ãåå¾ã§ãã¦ããã®ãåããã¾ãã ãã¡ãã¯Googleèªè¨¼ã§ãã ãã¡ããã¦ã¼ã¶ãããã£ã¼ã«å«ãã¦åå¾ã§ãã¦ãã¾ãã æå¾ã¯Twitterã§ãã ã¯ããåé¡ããã¾ããï¼ Opauthã¯Rubyã®èªè¨¼ã©ã¤ãã©ãªOmniauthã«ã¤ã³ã¹ãã¤ã¢ããã¦ä½ããã¦ãããèªè¨¼é¨åãæ½è±¡åãããã¨ã§ãããã¤ãã¼ãåãæ¿ãã¦å®¹æã«æ§ã ãªãµã¼ãã¹ã«å¯¾å¿ã§ããããã«ãªã£ã¦ãã¾ããæè¡çã«ã¯Ope
http://nicomp3.com/ãã³ãã³åç»ããMP3ãçæãããµã¤ãä½ã£ãã¨ãã®ã話ã ç°å¢PHP5.3ãããMysqlãã¡ã¤ã³ã¯ãåå.comãªãä½ã£ããèªå·±æºè¶³ï¼ãããã¹ã¦ã®ãã³å¨ã«MP3ãã»ã»ã» å®æã¾ã§ã®æµãPHPã§ãã³ãã³ã«ãã°ã¤ã³ã¨ãã¦ã³ãã¼ãã®ã½ã¼ã¹ãæ¹é èªåã§æ¸ãã¦ãããã£ãããããã«è½ã¡ã¦ããã®ã§åèã«ããhttp://istb16.wordpress.com/2011/09/11/niconico_download_for_php/(1æéããã)âãããã®VPS(4G)ã®CentOsã®ç°å¢ãæ§æ(3æéããã)âãã³ãã³ã®APIãçºè¦ããããããå©ç¨ãã¦ãµã ãã¤ã«çã¨ã£ã¦ãã¦ãhttp://ext.nicovideo.jp/api/getthumbinfo/ãã³ãã³IDâåç»ãå¤æããããã«ffmpegããµã¼ãã¼ã«ã¶ã£è¾¼ãããã¦PHPå´ããå©ç¨ï¼1æ¥ç®ï¼âãã©
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}