CakePHPでも使える Composerを活用したモダンな開発手法

9b69fbdeb0713def44a8731091ce5885?s=47 Yusuke Ando
September 14, 2013

CakePHPでも使える Composerを活用したモダンな開発手法

PHPカンファレンス2013にて発表

9b69fbdeb0713def44a8731091ce5885?s=128

Yusuke Ando

September 14, 2013
Tweet

Transcript

  1. 5.
  2. 9.
  3. 10.
  4. 11.
  5. 18.

    DPNQPTFSKTPO { "name": "llmatsuri/sample", "authors": [ { "name": "yando", "email":

    "yandod@gmail.com" } ], "require": { "dg/twitter-php": "*" } }
  6. 20.

    DPNQPTFSJOTUBMM vagrant@precise64:/vagrant_data$ composer install Loading composer repositories with package information

    Installing dependencies (including require-dev) - Installing dg/twitter-php (v3.1) Loading from cache Writing lock file Generating autoload files
  7. 22.
  8. 27.

    औಘ <?php require_once 'vendor/autoload.php'; $twitter = new Twitter( 'aaaa', 'bbbb',

    'cccc', 'dddd' ); $info = $twitter->loadUserInfo('yando'); var_dump($info->status->text);
  9. 28.
  10. 32.
  11. 35.
  12. 41.