{"action":"opened","issue":{"url":"https://api.github.com/repos/zengin-code/source-data/issues/1","repository_url":"https://api.github.com/repos/zengin-code/source-data","labels_url":"https://api.github.com/repos/zengin-code/source-data/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/zengin-code/source-data/issues/1/comments","events_url":"https://api.github.com/repos/zengin-code/source-data/issues/1/events","html_url":"https://github.com/zengin-code/source-data/issues/1","id":143204005,"number":1,"title":"zengin-code/source-data の composer 対応","user":{"login":"ukyooo","id":225101,"avatar_url":"https://avatars.githubusercontent.com/u/225101?v=3","gravatar_id":"","url":"https://api.github.com/users/ukyooo","html_url":"https://github.com/ukyooo","followers_url":"https://api.github.com/users/ukyooo/followers","following_url":"https://api.github.com/users/ukyooo/following{/other_user}","gists_url":"https://api.github.com/users/ukyooo/gists{/gist_id}","starred_url":"https://api.github.com/users/ukyooo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ukyooo/subscriptions","organizations_url":"https://api.github.com/users/ukyooo/orgs","repos_url":"https://api.github.com/users/ukyooo/repos","events_url":"https://api.github.com/users/ukyooo/events{/privacy}","received_events_url":"https://api.github.com/users/ukyooo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-24T10:00:50Z","updated_at":"2016-03-24T10:00:50Z","closed_at":null,"body":"[composer](https://getcomposer.org/) を使用し、 ```zengin-code/source-data``` を取得できるように対応する。\r\n\r\n以下のイメージで、 ```zengin-php``` をインストールする際に ```composer.json``` に一緒に追記し、 composer install / update で引き込めるようにする。\r\n\r\n```\r\n  {\r\n    ...\r\n    \"require\": {\r\n       ...\r\n+     \"zengin-code/source-data\": \"*\",\r\n+     \"zengin-code/zengin-php\": \"*\"\r\n    }\r\n  }\r\n```\r\n\r\ngit submodule で取得するようにしたかったが、 composer install や update をトリガにコマンドを実行する手段はあるものの、インストールされるモジュール側に設定されたコマンドは実行することできない為、上記の手段で対応する。\r\n"}}