Composerã§ã¤ã³ã¹ãã¼ã«åºæ¥ãOSSãå ¬éããã¾ã§ã«ãã£ããã¨[Composer][PHP][Packagist][OSSåå¿è ]
å æ¥èªèº«åã®OSSçãªãã®ãåºãã¾ãã(çªå®£)
Composerã§ã¤ã³ã¹ãã¼ã«å¯è½ãªã©ã¤ãã©ãªã¨ãã¦åºããã®ã§ãåºãã¾ã§ã®éç¨ãåå¿é²ãå ¼ãã¦æ¸ããããªã¨æãã¾ãã
ä½ããã£ãã
- Rubyã®gemã§ããaasm/aasm · GitHubã«è§¦ãã
- ã¤ã¤ãã¼ã¨æã£ã¦æ¥åã§ç¨ãã¦ããPHPã§ä½¿ããã¹ãã¼ããã·ã³ã©ã¤ãã©ãªãæ¢ã
- ããã¾ããæ軽ããã対象ã¯ã©ã¹ã¨ã¹ãã¼ããã·ã³ã¨ã®ä¸å¿åä½æããªã
- ãããAASMã£ã½ãã®ã¤ããã
çæ³
- ã©ããã£ããä¸å¿åä½æåºããããªã¼
- AASMã¿ããã«è¨å®ãã¡ã¤ã«ã¨ããªãã¦å¯¾è±¡ã¯ã©ã¹ã«è¨è¿°ããããåããã¿ãããªã®ããããªã¼
- Doctrineãç°¡åã«ä½¿ããã¢ããã¼ã·ã§ã³ãæä¾ãã¦ããªã¼
- ä¸å¿åä½æåºãããããããå ãã対象ã¯ã©ã¹ã«ç¶æ 管çé¢é£ã®ã¡ã½ãããçãã¦ã¾ãããã¿ãããªé°å²æ°ã«ããããªã¼
- traitã§ã¯
- @brtriverããã®åºãã¦ããbrtriver/simple-crud-bundle · GitHubã£ã½ãåºæ¥ãã®ã§ã¯
- ããããã£ã¦ã¿ãã
ä½æå¾
ããã¥ã¡ã³ãæ¸ã
è±èªãbrokenãªã®ããæ¸ããªããã©é å¼µã£ã¦ãããã°ã
翻訳ãã¼ã«
ãããå ¥ãã¦é å¼µã£ã¦ã¾ããã ã ãã¶æã£ãã
è±æã¨ãããã©ãã°ãã¦é¸æããã¨å³ææ¥æ¬èªã¸ç¿»è¨³ãã¦ããã¦ã¨ã¦ã便å©ã§ããï¼
ããã¥ã¡ã³ãã®å 容
- ã©ã¤ãã©ãªå(ä¸è¡ç®)
- æ¦è¦(Description)
- ãã¢(Demo)
- ä»ã©ã¤ãã©ãªã¨ã®å¯¾æ¯(VS.)
- åä½ç°å¢(Requirement)
- ã¤ã³ã¹ãã¼ã«æ¹æ³(Installation (via composer))
- 使ãæ¹ãæ©è½ã®èª¬æ(Usage)
- ä»å¾å®è£ ãã¦ãããããã¨(In future)
- ã質åã¯ãã¡ã(Questions)
- ã³ã³ããªãã¥ã¼ãæ¹æ³(Contribution)
- ã©ã¤ã»ã³ã¹è¡¨è¨(Licence)
- ä½ã£ã人(Author)
- è¬è¾(Acknowledgement)
ãããªæãã®ã¬ã¼ã«ã«ä¹ã£ã¦ã¤ãã¤ãã¨æ¸ãã¦ããã¾ããã
ãã¼ã¸ã§ã³ã«å¯¾ããã¿ã°ä»ã
ãã¼ã¸ã§ã³ãæå®ãã¦ã¤ã³ã¹ãã¼ã«åºæ¥ãããã«ãã¿ã°ä»ãã¯å¿ããã«ã
ä»åã®ã©ã¤ãã©ãªã§ã¯1.0.0
ã¹ã¿ã¼ãã«ãã¾ããããããã¾ã§æ·±ãæå³ãããæã£ã¦ä»ããããã§ã¯ãªãã0.0.1
ã¹ã¿ã¼ãçã§ãããã¨ã¯æãã¾ãã
ãã ããæ©è½ã¯å°ãªããã©æ®éã«ä½¿ããããã¨ããæå³ã§ãä»åã¯1.0.0
ããã«ãã¾ããã
TravisCIã«ãããã¹ãå®è¡
Rubyã対象ã§ããã以åãã¥ã¼ããªã¢ã«ãæ¸ããã®ã§ãåèã¾ã§ã
å°ãªãã§ããããããä»ãã¦ããã¾ãããOSSã£ã½ãåºããâ
travis.ymlã§æèãããã¨
è¤æ°ãã¼ã¸ã§ã³ã§ãã¹ããéããã¨ã®ç¢ºèªãããããã«ã
- php5.4
- php5.5
- php5.6
ã§ã®ãã¹ããå®æ½ã æ®æ®µã¯ãããªã«æèããªãããã©å¤§äºã«ãªãã¾ããã å®éãphp5.4ã§ã®åä½ãæ ã£ã¦ããã®ããã¹ãã§æ°ã¥ãã¦PHP5.4対å¿ã®ã³ããããç´åã§è¶³ããããã¾ããã
ã©ã¤ã»ã³ã¹å¨ã
ãã¾ã馴æã¿ããªãã®ã§ãããããã¾ãããã
ã®ãããªã¾ã¨ãã調ã¹ã¦ãã£ããã権å©ã主張ãããããªæ°ã¯ãªãã®ã¨ã使ç¨ãã¦ããã©ã¤ãã©ãªããæååã®å¾åãªã©ã追ã£ã¦è¡ã£ã¦ãè²ã ã¨ã©ã¤ã»ã³ã¹ã確èªãã¦ãã£ãæãã¡ã¸ã£ã¼ã©ããã¯MITã©ã¤ã»ã³ã¹ã大å¤æ°ãå ãã¦ãããã¨ãããä»åã¯MITã©ã¤ã»ã³ã¹ãæ¡ç¨ãã¾ããã
ä»å¾ãç¹æ®µåé¡ãªããã°MITã©ã¤ã»ã³ã¹ã§åºãã¦ããããªãã¨æã£ã¦ãã¾ãã
Composerã§ã®ã¤ã³ã¹ãã¼ã«
ä»åã¯PHPã®ã©ã¤ãã©ãªãªã®ã§ãComposerã§ã¤ã³ã¹ãã¼ã«ã§ããããã«ããã¦ããã¾ããã
composer.jsonã®æºå
ãã¨ã§ç»é²ããPackagistã§ããæãã«è¡¨ç¤ºããããã«ããè²ã ã¨composer.jsonã«è¨è¼ãã¾ããã
{ "name": "gomachan46/state-machine", "description": "simple state machine with annotations for PHP, inspired by AASM known as a Ruby state machine.", "keywords": [ "statemachine", "workflow", "state", "status", "annotation", "doctrine2", "event", "transition", "symfony", "bundle", "SM", "trait", "finite", "aasm" ], "require": { "php": ">=5.4.0", "doctrine/annotations": "~1.0", "doctrine/inflector": "~1.0" }, "require-dev": { "phpunit/phpunit": "4.*" }, "license": "MIT", "authors": [ { "name": "Go Nakanishi", "email": "[email protected]" } ], "autoload": { "psr-4": { "": "src/", "StateMachine\\Tests\\": "tests/" } } }
ã£ã¦ããæãã«æ¸ãããããã¨ã以ä¸ã®ããã«è¡¨ç¤ºãããããæ¤ç´¢æã«å¼ã£ããã£ã¦ããããããããã«ãªãã®ã§æ¸ãã¦ããã¾ããã ãã ä»ç¢ºèªããããã¼ã¯ã¼ãå¤ããã¦åãã¦ããª...wåçï½
Packagistã¸ã®ãªãã¸ããªç»é²
Composerã§ã®ã¤ã³ã¹ãã¼ã«ãç°¡åã«ããããã«ãPackagistã¸ãä½æããã©ã¤ãã©ãªã®ãªãã¸ããªç»é²ãè¡ãã¾ããã
gomachan46/state-machine - Packagist
Composerã§ã®ã¤ã³ã¹ãã¼ã«æã«ãªãã¸ããªãããããè¨è¼ããªãã¦ãè¯ãããä¸è¨ã®ãããªãã¼ã¸ãã§ããããã¿ã°ä»ãã®ãããªãã¨ãã§ããã®ã§æ¤ç´¢ãããããããªããããããã¨ä»ããã§ã:)
ãã²ç»é²ãã¾ãããï¼
Packagistã«ãã°ã¤ã³
GitHubãã°ã¤ã³ãããã®ã§ç°¡åã«ãã°ã¤ã³ã§ãã¾ã:)
ãªãã¸ããªã®URLãç»é²ãã
ã§ãã§ãã¨Submit Package
ã¨ãããããªãã¿ã³ãããã®ã§ããããæ¼ãã¨ããªãã¸ããªã®URLãå
¥åãããã©ã¼ã ã表示ããã¾ãã
GitHubã®URLã§ãããã§ãããGitã®SSH clone URLã¨ãã§ã大ä¸å¤«ã§ãã
ç»é²ã¯ãã£ãããã ãï¼ç°¡åã§ãã
OSSã§åºãã¦ã¿ã¦
ä¸äººã§ãã£ã¦ãã ãã ãã©ããã£ã¡ã楽ããã£ãã®ã§æ¬å½è¯ãã£ãã
ãã ãä¸äººã§ãã£ã¦ã¿ãã¨ã¯ãããã®ã§ã¼ã ã«çµã¿è¾¼ããã¤ã¾ããèªåã使ãå´ã«ã¾ãããã¨ããã¢ããã¼ã·ã§ã³ã¯ããã大ããã¦ããã¼ã ã®ã¡ã³ãã¼ããã®ãã£ã¼ãããã¯ããããããæ°ã«ã¤ãªãã£ããã楽ããã«ã¤ãªãã£ãããã¢ããã¼ã·ã§ã³ã®ç¶æã¯å¤§äºæã¯ããã¾ããã
ãOSSã§åºããããã«ã¤ããããã¨ãããã¨ã¯è²ã ã¨æéããã£ãããã©ãå¯è½æ§ãåºãããä¸çãåºãããã¨ãã§ããé常ã«å¤§ããªãã£ã³ã¹ãªã®ã§ãè¦å´ãã¦ã§ãå¤ã«åºãããããªå½¢ã«ãã¦åºããããã£ã¦ããã®ã¯é常ã«åç©«ãå¤ãåãã ãªãã¨ä½æã§ããã®ã§ãããããç©æ¥µçã«ãã£ã¦ãããã¨æãã¾ã:)
ã¾ã ã¾ã æããã©ç¶ãã¦ãã£ãã磨ãããããªãå°ãªãã¨ã磨ãããã¾ã§ã®æéã¯çããªãã ãããªã¨ããæè¦ã身ããã£ã¦å³ãããã®ã¯è¯ãã£ãï¼
ã¨ããããå°ããª1æ©ãè¸ã¿åºããã®ã§ãä¸ã«åºãããã®éå£ãå°ãä½ããªãã¾ããã ä½ãããããä¸çªã®åç©«ã§ãï¼
ä»åã®è¨äºãè¦ã¦å°ãã§ãã«ã¸ã¥ã¢ã«ã«ç©ãä¸ã«åºããããã«ãªã£ã人ãå¢ããã°å¹¸ãã§ã:)