blogger ããã¯ã¦ãªããã°ã«ç§»è¡ãããã ãã©ãé¢åã ããé©å½ã«ç§»è¡ãã¦ä»¥åã®è¨äºã 404 Not Found ã«ãªã£ã¦ãããã¦ããããªãã㪠@madapaja ã§ãã
ãã4æãçµããã¾ããã ãããã¨ãããããäºãå¤ãã¦æéã足ãã¦ã¾ããã
ãã¦ãå æ¥ 4æ28æ¥ã«ãªã¸ã§ãå²ããã¼ã§ç¬¬89å PHPåå¼·ä¼ï¼ æ±äº¬ãéå¬ããã¾ããã
åå¼·ä¼ã®å 容ã¯ãPHPåå¼·ä¼ï¼ æ±äº¬ã§æä¾ã¨ãªã£ã¦ããåå è å ¨å¡ã§ã®èªå·±ç´¹ä»ããå§ã¾ããã»ãã·ã§ã³ãæ親ä¼ï¼LTã¨ç´2æéåç¨åº¦ã§ããã
åå è ã¯ä½¿ãå§ããã°ããã®æ¹ããPHPæ´10年以ä¸ã®ããã©ã³ã¾ã§ãããã¯ã°ã©ã³ããçµé¨ãæ§ã ãªäººãéã¾ã£ã¦ããããªè©±ããã¾ãããä¹ ãã¶ãã«åå ããã®ã§ãã楽ããã£ãã§ãã
ä¼ã®è©³ç´°ã¯ãtogetter ã§ã®ã¾ã¨ãã¨ããTwitterãããã§ç´ æµãªã¾ã¨ãããã°ã¨ããåºã¦ããããããªããã¨æãã¾ãã®ã§ããã¡ããè¦ãã§ãã¯ã§ãã
ã§ãç§ã¯ BEAR.Sundayã®ã¯ãªã ã¨ããã¿ã¤ãã«ã§çºè¡¨ãã¦ããã®ã§ããã¡ãã®å 容ã®ã¾ã¨ããæ¸ãããã¨æãã¾ãã
BEAR.Sundayã®ã¯ãªã
BEAR.Sunday = DI + AOP + REST(Hypermedia)
BEAR.Sunday 㯠DIãAOP 㨠REST(Hypermedia) ã¨ãã3ã¤ã®ä»çµã¿ãæ±ã¨ãªã£ã¦ãããªã½ã¼ã¹æåãã¬ã¼ã ã¯ã¼ã¯ã§ãã
DIãAOPãREST(Hypermedia) ã¯ãããã Ray.DiãRay.AopãBEAR.Resource ã¨ãããã¬ã¼ã ã¯ã¼ã¯ï¼ã©ã¤ãã©ãªï¼ãç¨ãããã¦ããããã¹ã¦ BEAR.Sunday ã®éçºè ã§ãããé¡å±±ããï¼@koriymï¼ãä¸å¿ã«éçºããã¦ãããã®ã§ãã
DI 㨠Ray.Di
Ray.Di ã¯ãModule ã¨ããåä½ã§ã«ã¼ã«ãè¨è¿°ï¼ã©ãããæ§é ãªã®ãã示ãï¼ããã¨ããã®ã«ã¼ã«ãåºã«ãªãã¸ã§ã¯ããçæåºæ¥ã DI ãã¬ã¼ã ã¯ã¼ã¯ã§ãã ã«ã¼ã«ãä¸åº¦è¨è¿°ããã°ãåãã«ã¼ã«ã§è¡¨ç¾ã§ããDIã§ããã°ãå¥ã®ã¯ã©ã¹ãªã©ã§å©ç¨ããéã«ããæ°ããè¨å®ãªãã«å¿ è¦ãªä¾åãªãã¸ã§ã¯ããæ³¨å ¥ããããããããã¯ã©ã¹å士ã®å¯çµåãæ¸ããã¾ãã
Ray.Diã«ã¤ãã¦ã¯ã以åã«ããã°ãæ¸ãã¦ãã¾ãã®ã§ï¼ã¡ãã£ã¨å¤ãå 容ã§ãããæ ¹æ¬ã¯å¤ãã£ã¦ããªãã®ã§ï¼åèã«ãªãããããã¾ããã
ãªããRay.Diã¯æè¿ãªãªã¼ã¹ããããã¼ã¸ã§ã³2.1ãããã¤ã³ã¹ã¿ã³ã¹çæã³ã¼ãã®èªåçæã¸ã®å¯¾å¿ãè¡ãããããããã©ã¼ãã³ã¹ã®åä¸ãæå¾ ã§ãã¾ãã
AOP 㨠Ray.Aop
Ray.Aop ã¯æ¨ªæçé¢å¿äºãåé¢ããããã®ã¢ã¹ãã¯ãæåãã¬ã¼ã ã¯ã¼ã¯ã§ãã ã¤ã³ã¿ã¼ã»ãã¿ã¼ã¨ããä»çµã¿ãå©ç¨ãã¦ã横æçé¢å¿äºãæ¬è³ªçé¢å¿äºã¨åãé¢ãããããçµã³ã¤ãããã¨ãã§ãã¾ãã
Ray.Aop ã«ã¤ãã¦ãéå»ã®è¨äºãããã¾ãã®ã§ãã£ã¨ç¥ãããæ¹ã¯è¦ã¦ã¿ã¦ãã ããã
Ray.Aopããã¼ã¸ã§ã³2.1ããã³ã¼ãçæé¨åã®å¹çåãå³ããããã使ããããé²åã¾ããã
REST(Hypermedia) 㨠ROPï¼ãªã½ã¼ã¹æåããã°ã©ãã³ã°ï¼ãBEAR.Resource
PHPã®å¤ãã®ãã¬ã¼ã ã¯ã¼ã¯ã¨ã®å¤§ããªéãã¯ãMVCã§ã¯ãªãããªã½ã¼ã¹æåãé¸æãã¦ããç¹ã§ãããã
çããã Web ãæ¥ã å©ç¨ãã¦ããã¨æãã¾ããããã®åãã¯ä½ãªã®ã§ããããï¼ ãã®åãã®ä¸ã¤ã«ãRESTãHypermediaã«ãã£ã¦ããããããæ¡å¼µæ§ãæè»æ§ããã¼ã¿ããªãã£ã®é«ãçãããã¨æãã¾ãã
BEAR.Resource ã§ã¯ã1ã¤ã®URLã1ã¤ã®ã¯ã©ã¹ï¼ãªã½ã¼ã¹ãªãã¸ã§ã¯ãï¼ã¨å¯¾å¿ããããããã®ãªã½ã¼ã¹ãRESTã¨åãããã«æ±ããã¨ãããã¬ã¼ã ã¯ã¼ã¯ã§ãã
ãªã½ã¼ã¹ã¯ URI ã¨ã¯ã¨ãªãªã©ã«ãã£ã¦ãªã¯ã¨ã¹ããè¡ãã<a>
ã¿ã°ã<link>
ã¿ã°ã®ããã«ãªã½ã¼ã¹å士ããªã³ã¯ãããã<img>
ã¿ã°ã<video>
ã¿ã°ã®ããã«ãªã½ã¼ã¹å
ã«å¥ã®ãªã½ã¼ã¹ãåãè¾¼ãäºãã§ãã¾ãã
ã¾ããMVCã®ããã«ã³ã³ããã¼ã©ãã¢ãã«ãããã¼ã¿ãåãåãView渡ãã®ã§ã¯ãªãããªã½ã¼ã¹ã«å¯¾ãããªã¯ã¨ã¹ãã«å¯¾ãã¦ããªã½ã¼ã¹èªèº«ãã¬ã³ãã©ã¼ãæã£ã¦ãããããã«ãã£ã¦è¡¨ç¾ãã¢ã¦ãããããããã¨ããã®ãç¹å¾´çã ã¨æãã¾ãã
ã¾ã¨ã
BEAR.Sunday 㯠DIã§æ§é ãçµã³ã¤ããAOPã§æ¨ªæçé¢å¿äºãçµã³ã¤ããROPï¼REST, Hypermediaï¼ã§ãªã½ã¼ã¹å士ãçµã³ã¤ããConnecting Framework ã¨è¨ããã¨ãåºæ¥ã¾ãã
ã¾ããRESTã®åãå¼ãåºãããããã¢ããªã±ã¼ã·ã§ã³ã«ãé©ç¨ãããã¨ã§ãåºããä¸çã¯é¢ç½ãã¨æãã¾ãããï¼
ã ã£ã¦ãWebã®åãã¯ã¿ããªç¥ã£ã¦ããã§ããï¼
èå³ãæãããæ¹ã¯ããã²ä¸ç·ã« BEAR.Sunday 触ãã¾ãããï¼
質å
åå¼·ä¼ã§è³ªåããããã¨ããã¡ãã§ãã¾ã¨ãã¦ããã¾ãã
BEAR.Sunday ã®ç±æ¥ã¯ä½ã§ããï¼
ï¼ä¼å ´ã§ã¯è¨ãã¾ããã§ãããï¼
Because Everything is A Resource
Sunday ãªã®ã¯ã¯ãã®ååãããã¨ããã®ã¯ãã¢ããã³ãã«ã¬ã³ãã¼ã§é¡å±±ãããæ¸ãã¦ããã®ã§ãã§ãã¯ãã¦ã¿ã¦ãã ããï¼
ã©ã®ç¨åº¦ã®è¦æ¨¡ã®ã¢ããªã«é©ãã¦ãã¾ããï¼
ã¹ã±ã¼ã«ã«ã¤ãã¦ã¯ Web ã¨åãã§ããã¤ã¾ããæå°ãã極大ã¾ã§ã«å¯¾å¿ã§ãã¾ãã
é度é¢ã«ã¤ãã¦ã¯ãHelloWorldãã³ãã以ä¸ã«ããã®ã§å®éã«å³ã£ã¦ã¿ã¦ãã ãããï¼èª°ããã³ãããããã²ã·ã§ã¢ãã¦ãã ããï¼ï¼
bearsunday/BEAR.HelloWorld · GitHub
åèURL
- BEAR.Sundayï¼å ¬å¼ããã¥ã¢ã«ï¼
- ray-di/Ray.Di · GitHub
- ray-di/Ray.Aop · GitHub
- bearsunday/BEAR.Resource · GitHub