Peter (李昀陞)
目前在ITRI服務
後端開發者
3+ years PHP 後端程式開發
PHP 5.3 → PHP 7+
No framework→Slim→Laravel
2 years 開源專案貢獻者
LaravelConf 2018, COSCUP 2018 講者
MIT License
GPL/GNU
Apache Licenese
etc.
Issue submission
Send pull request
etc.
在發送issue之後
也可以直接發送 PR
發送 issue → 發送 PR
直接發送 PR
學習技巧
線上多人合作
看code能力提升,再爛code都可以看
不用加入公司,也可以對他們開源專案做貢獻
Squash all commits to one commit
Explain for the changes
Accept request changes
Test enhancement
Test enhancement 2
Organize src
$this->assertSame(true, $resultTrue);
$this->assertSame(false, $resultFalse);
$this->assertSame(\InvalidgrumentException::class,
$resultInstance);
$this->assertSame(23, count($resultArray));
$this->assertInstanceOf('\\Psecio\\SecureDotenv\\KeySource\\KeyString',
$k);
$this->assertTrue($resultTrue);
$this->assertFalse($resultFalse);
$this->assertInstanceOf(\InvalidgrumentException::class,
$resultInstance);
$this->assertCount(23, $resultArray);
$this->assertInstanceOf(KeyString::class, $k);
return
(isset($this->headers) && is_array($this->headers))
&& (count($this->headers) !== count($row))
? $this->getRow() : array_combine($this->headers, $row);
URI = scheme:[//authority]path[?query][#fragment]
Create issue (option)
Fork it
Create and checkout a branch
Add the code
Send PR
curl -OL \
https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar
php phpcs.phar --standard=PSR2 src/ tests/ --colors
Our documentation repo all have issues labeled with “hacktoberfest” and a size.
Contribute 5 difficulty: easy or 2 difficulty: medium or 1 difficulty: hard or greater to receive swag kit.
被人幫助,幫助別人
別人的感謝是繼續貢獻動力
讓開源專案更好
做國民外交