The wait is over! Phalcon 2.0 is here! After more than a year of development, weâre extremely excited to announce the release of Phalcon 2.0 (final). Those that have been following the project closely, know that this has not been a small feat. We had to create a brand new language Zephir which allows developers to write PHP extensions easily. We had to completely rewrite most of Phalcon 1.3.x, off
ãæéãPHPãã¬ã¼ã ã¯ã¼ã¯Phalconã®ã«ã¼ãã£ã³ã°ã«ã¤ãã¦ãåºæ¬äºé ãã¾ã¨ãã¾ãï¼å ¬å¼ããã¥ã¡ã³ãã®ç¿»è¨³+αã§ãï¼ãè¨äºå·çæã®Phalconã®ãã¼ã¸ã§ã³ã¯1.3.1ã§ãã ãªããã«ã¼ãã£ã³ã°ã®å®ç¾©æ¹æ³çã®åºæ¬äºé ã«ã¤ãã¦ã¯ãï¼1ï¼ãåç §ãã¦ãã ããã ã«ã¼ãã®ã°ã«ã¼ãå ã«ã¼ããå ±éã®ãã¹ãæã£ã¦ããå ´åãããããã²ã¨ã¾ã¨ãã«ãããã¨ãã§ãã¾ãã <?php $router = new \Phalcon\Mvc\Router(); // å ±éã®ã¢ã¸ã¥ã¼ã«ã¨ã³ã³ããã¼ã©ã¼ãæã¤ã°ã«ã¼ããä½æ $blog = new \Phalcon\Mvc\Router\Group(array( 'module' => 'blog', 'controller' => 'index' )); // å ¨ã¦ã®ã«ã¼ãã /blog ã§å§ã¾ãã¨è¨å®ãã $blog->setPrefix('/blog'); /
5. å°â¼å ¥ã®çµç·¯ 2013å¹´ï¦åé AWSãã½ã¼ã·ã£ã«ã²ã¼ã ã«å°â¼å ¥ãã¯ããã ã½ã¼ã·ã£ã«ã²ã¼ã ã AWS:c1.mediam ã§é⽤ç¨éå§ CPU使⽤ç¨ç率ï§ä½ãã®ã«  ãªãã  ã¬ã¹ãã³ã¹é ããªã Apacheã®ä¸¦åï¦æ°å¢ãããããã©ã¡ã¢ãªâ¾è¶³ããªã 1ããã»ã¹100MB以ä¸ä½¿ã£ã¦ã CPU使ãåï¨ã£ã¦ãªãã®ã« m1.large ã«ç§»â¾è¡ï¨ æä½ã³ã¹ããä¸ãã EC2ã使ãåï¨ãããï¼ï¼ 6. å°â¼å ¥å¾ â¢â¯ ã¡ã¢ãªã«èµ·å ããããã©ã¼ãã³ã¹å£ï¦åã¯çºâ½£çã ã¦ãªã â¢â¯ CPUãããã«ããã¯ã«ãªãï¼å¥å ¨ï¼ â⯠ãããã¯å¤é¨ãªã½ã¼ã¹ãããã«ãã㯠â¢â¯ ããã»ã¹ããã30MBã«ãªã£ã â¢â¯ EC2: t1.micro/m1.small ã§ãããããã®æ§è½ ãåºããæè¿ã¯ t2 ç³»ã«ç§»â¾è¡ï¨ä¸ ä½ãããã¬ã¼ã ã¯ã¼ã¯ã®ããã©ã¼ãã³ã¹æ¹åãå¿ è¦ãªããªã£ã 7. ãµã¼ãæ§æã«ã¤ã㦠App
ä»æ¥ã¯ãherokuã§Phalconã使ããããã«ãã¦ã¿ããã¨æãã¾ãã Gitãªãã¸ããªã®ç¨æ ã¾ããGitãªãã¸ããªãä½æãã¾ãã $ mkdir phalcon-dev $ cd phalcon-dev/ $ touch composer.json $ git init $ git add -A $ git commit -m "Initial commit" herokuã¢ããªã®ä½æ herokuã®ã¢ããªãä½æãã¾ãã $ heroku create composer.jsonãç·¨éãã¾ãã composer.json { "require": { "php": "~5.5.18" } } public/info.phpãä½æãã¾ãã public/info.php <?php phpinfo(); Procfileãä½æãã¾ãã Procfile web: vendor/bin/
Toggle navigation Browse Create New Category Log In with GitHub Recent Tips All Tips Hot Uncommented Phalcon Tips (Ja) ã¸ããããby kenjis Submitted Dec '14 in News/Announcements 878 1 0 ã«ã¼ãã£ã³ã°ã®è©ä¾¡é by kenjis Submitted Jan '15 in Routing 760 0 0 Microã¨MVCã¢ããªã±ã¼ã·ã§ã³ã®éãby kenjis Submitted Jan '15 in Micro 834 0 0 ãããã®ã¬ã³ã¿ã«ãµã¼ãã¼ã§Phalconã使ãby kenjis Submitted Jan '15 in Installation 1.1k 0 0 Debugã³ã³ãã¼ãã³ãã使ãéçºä¸ã®ã¨
PHPã¯ããã«ãã¦æ¡å¼µãããã PHPã¯å¾æ¥ãCè¨èªã§æ¸ãããExtensionã«ãã£ã¦æ¡å¼µããã¦æ¥ã¾ããã ãããPHPã®éçºè ã«ã¨ã£ã¦Cã®ãã¼ãã«ã¯é«ããã¾ãCã®éçºè ãæ示çãªã¡ã¢ãªç®¡çã«é£åãã¦ãã¾ããã ããã解決ããã®ãZephirã¨ããPHP Extensionéçºå°ç¨ã®è¨èªã§ãã PHPãæ¡å¼µããè¨èªãZephirã¨ã¯ http://zephir-lang.com/ Zephir(Zend Engine PHP Intermediate)ã¯ç¾å¨ãPhalconéçºãã¼ã ã並è¡ãã¦éçºãé²ãã¦ããéçï¼åçè¨èªã§ãã éçã«å¤æ°åã宣è¨ããã®ãæ¨æºçãªè¨æ³ã§ãããåæ¨è«ã®æ©è½ãå©ç¨ãããã¨ãå¯è½ã§ãã 2014å¹´12ææ«ç¾å¨ã§ã®ææ°ãã¼ã¸ã§ã³ã¯0.5.7ã§ãå®å®çã«éãã¦ããªããã®ã®ãæ¢ã«å®ç¨ã¬ãã«ã®ExtensionãPHPã¨ã»ã¼å¤ããã¬è¨æ³ã§éçºã§ããããã«ãªã£ã¦ãã¾ãã
(Last Updated On: 2018å¹´8æ13æ¥)PHPæéãã¬ã¼ã ã¯ã¼ã¯ã®Phalconã§ãããRPMããã±ã¼ã¸ã使ã£ãã·ã¹ãã ã¸ã®ã¤ã³ã¹ãã¼ã«ã¯æéã§ã¯ããã¾ãããUbuntuã®å ´åãããã±ã¼ã¸ããã£ã¦apt-getã§ä¸çºã¤ã³ã¹ãã¼ã«ã§ããã®ã§ãããããã©ã«ãï¼EPELãªãã¸ããªã«ã¯RHEL/CentOS/Fedoraç¨ã®RPMããã±ã¼ã¸ã¯ããã¾ãããããã§Phalconã®RPMããã±ã¼ã¸ãèªåã§ä½ãæé ãç´¹ä»ãã¾ãã ãã®ã¨ã³ããªã¯Phalcon PHP Advent Calendar 2014 2æ¥ç®ã®ã¨ã³ããªã§ãã 追è¨ï¼SRPMãã¡ã¤ã«ã®ãã¦ã³ãã¼ããªã³ã¯ãå¿ãã¦ãã¾ããã次ã®URLã§ãã¦ã³ãã¼ãã§ãã¾ãã http://blog.ohgaki.net/files/php-phalcon-1.3.4-1.fc20.src.rpm ç§ãæ®æ®µä½¿ã£ã¦ããç°å¢ã¯ãã«ããã¼ã«ãå ¨
ç¾å¨PHPæéã®ãã¬ã¼ã ã¯ã¼ã¯ã¨è¨ãããPhalconã使ã£ã¦ã¿ãããèå³ããããã§ãæ å ±ããªãã¦ããããªãããããªæ¹ã®ããã«ãå®éã«éçºã§Phalconãå°å ¥ãã¦ããã¨ã³ã¸ãã¢ãéçºäºä¾ãå ¬éãã¾ãã Phalconã使ãããªããã¨ã§ä½ãå¯è½ã«ãªãããä½ãè¦å´ãããã¤ã³ãã ã£ããã工夫ãããã¤ã³ãã¯ä½ãããããªãã¦ãã¦ããã²æã«å ¥ãã«ãã¦ãã ããã ç»å£è ããããã¯ãéçºã«ãããPhalconã®å ¨å®¹ã æ ªå¼ä¼ç¤¾ã½ããã¯ã ã¼ã æ°è¦äºæ¥é¨ ã·ã¹ãã ã°ã«ã¼ã ããã¼ã¸ã£ã¼ 岩äºè£å£«æ° ãµã¼ããµã¤ãã¨ã³ã¸ãã¢ã¨ãã¦ãããã¤ãã®ãã³ãã£ã¼ä¼æ¥ã渡ãæ©ããç¾å¨ã¯ãæ ªå¼ä¼ç¤¾ã½ããã¯ã ã¼ãã«ã¦ããããã¯ãéçºã¨ã¤ã³ãã©ãæ å½ã 主ãªè¨èªçµé¨ã¯ãPerl/Ptyhon/PHP/Objective-C ãçµé¨ããç¾å¨ã¯ PHP ã§ä¸»ã«éçºä¸ã Phalconæ´ã¯ã1å¹´3ã¶æã»ã©ã§ãéå»ã®PHPãã¬ã¼ã ã¯ã¼
ãªã«ã㨠dis ãããè¨èª PHP ã§ãããdis ãããè¦å ã¨ãã¦ã¯ å©ç¨è ãå¤ãï¼å°ãªããã°ãããã話é¡ã«ãªããªãï¼ è¨èªèªä½ã«éçºè ãå°ãã³ã³ãã¹ããªã çµæçã«è² ã®éºç£ãå¤ãç¯ããã ã¨ãããã¨ãããã¨èãã¦ãã¾ãã PHP ããã¾ã使ã£ã¦ã飯ãé£ã¹ã¦ãã身ã¨ãã¦ããã dis ããããã¨ä½ãå¼å®³ã¯ãªãã®ã§ãããPHP 㯠OSS ã§å®å®æ§ã»æ¡å¼µæ§ã»è¨èªèªä½ã®éçºã®æ´»çºããä¿ã£ã¦ããã³ãã¥ããã£ãã¨ã¦ãæ´»çºãªè¨èªãªã®ã§ãä»åã¯ãPHP ã使ãã¨ãããããããã¨ããããã¨ããæ¹åæ§ã§æ¸ãã¦ã¿ããã¨æãã¾ãã ããã¾ã§å人ã®ä¸»è¦³ã«åºã¥ããè¨äºã§ãããäºæ¿ä¸ããã ããã¾ã§ã¦ã§ãã¢ããªã±ã¼ã·ã§ã³ãéçºãããã¨ãæ³å®ãã¦ãã¾ãã (ãã以å¤ã®ç¨éãããã¨ã¯æãã¾ããã) ãã®åã«ããªã PHP ã使ãã®ã PHP ã¯æ¸ãã°åãããç°¡åã ã ã¨ããç½ ãã®è¨èãè³ã«ããã®ã¯å°éå¦æ ¡æ代ã§ã
çããããããéããã§ãããããããã·ã§ã³ã®ä¼é師ãã¨é°¯ã§ãã PHP Con 2013 ã¾ã§ããã¨2é±éãããã¨ãªã£ãããã§ããã ä¸é¨ã§è©±é¡æ²¸é¨°ã® Phalcon ã¯ç¡ããªã®ãï¼ã¨çåã«æãä»æ¥ãã®é ã§ãã ã¨ããããã§ãPHP Con 㧠Phalcon ã®ã»ãã·ã§ã³ãç¡ãã¦ããæãéãè¡ããã¦ãããã¾ãã ãµã¼ãã¹ãããã¤ã â Service Provider ã³ã¼ãã®å ±éåãåå©ç¨æ§ã¯ãããã°ã©ãã«ã¨ã£ã¦ã¯éè¦ãªèª²é¡ã®ã²ã¨ã¤ã§ãã Silex ã Laravel ã¨ãã£ãæè¿ã®ãã¬ã¼ã ã¯ã¼ã¯ã§ããService Providerã¨ããå称ã§ã ããæè»ã«ã³ã¼ãã®åå©ç¨ãã§ããããã«ãªã£ã¦ãã¾ãã ä»åã¯ããã®ãµã¼ãã¹ãããã¤ãããPhalconã§ãå®è£ ã§ãããï¼ï¼ã¨ããã話ã§ãã Phalconæµ ãµã¼ãã¹ãããã¤ã Phalcon ã§ã¯æ示çã« Service Provide
ããã«ã¡ããããã·ã§ã³ã®ä¼é師ãã¨é°¯ã§ãã ä»æã®ç§ã®æ¨èªã¯ãéãã¯ãæ£ç¾©ï¼ï¼ãã§ãã Webãã¬ã¼ã ã¯ã¼ã¯ã¯ããã¤ã®æ代ããéãã¨æ¦ã£ã¦ãã¾ãããæè¿ã§ã¯Webãã¬ã¼ã ã¯ã¼ã¯ã® ãã³ããã¼ã¯ãµã¤ãã¾ã§ç»å ´ãã¦ãããã«ãéãã«å¯¾ããé¢å¿ãé«ããã¨ããã®ã伺ãã¾ããã ããã§ãä»PHPã§éããã¬ã¼ã ã¯ã¼ã¯ã¨è¨ãã° âPhalconâï¼ï¼ ãã¡ãããä»ã«ãããã¤ãã®éããã¬ã¼ã ã¯ã¼ã¯ã¯ããã®ã§ãããPhalconã¯Full-Stackã§ãããªããããéç«ã¤éããæã£ã¦ããã¨ããã®ãä»ã¨éãã¨ããã§ãã ã§ãããCè¨èªã§å®è£ ããããPHPã®Extensionã¨ããããã§ãéãã¦å½ç¶ã¨è¨ãã°ãã®éãã ããããªãããæ¨å¹´ã«ã¯ããFacebookãéçºãéç¨ã¨ãã«HHVM/JITã使ç¨éå§ããªãã¦ãã¥ã¼ã¹ããããPHPã®éãã«å¯¾ããã¢ããã¼ãã®ä»æ¹ããæ°ããªæ代ã¸çªå ¥ããæãããã¾ãã ãã¨ãã¨åæ§
ããã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ã£ï¼ï¼ï¼ããã·ã§ã³ã®ä¼é師ãã¨é°¯ã§ãã ä»æ¥ã¯ãComposer 㧠Phalcon ã® Autoload 使ã£ã¡ãã話ãã ãã£ï¼ï¼ Composer 使ã£ã¦ã¾ããã¼ã¼ã¼ã¼ï¼ï¼ Composer ã¤ã¤ããï¼ï¼ Phalcon ã¤ã¤ããï¼ï¼ èæ¯ ã¾ãããã¨ã®èæ¯ã¨ãã¦ãPhalcon ã使ãå§ããå½åãPhalcon ã« Autoload å®è£ ããã£ã¦ã ã¡ãã£ã¨ãComposer ã¨é°å²æ°éã£ãã®ã§ãPhalcon ã® Autoload ã§ããäºã«ããã®ã§ããã å©ç¨ã©ã¤ãã©ãªãå¢ããã«å¾ã£ã¦ãä½ãã¨é¢åã«ãªããéä¸ãããComposer ã® Autoload ã« åãæ¿ãã¾ããã ããããComposer ã«ããæ©æµã¯å¤å¤§ã§ããã¨èªèãã¤ã¤ããPhalcon ã® Autoload ã å°ãã¯ããã©ã¼ãã³ã¹çã«æå©ãªã®ã§ã¯ï¼ã¨ããæ°æã¡ããããComposer ã使
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}