koine / core
具有成熟对象行为的原始类型
1.0
2015-08-15 23:14 UTC
Requires
- php: >=5.3.3
Requires (Dev)
- phpunit/phpunit: *
- satooshi/php-coveralls: dev-master
README
具有成熟对象行为的原始类型。兼容 PHP 5.3.3+
代码信息
包信息
一旦你编写了一些 Ruby 代码,但又不得不编写 PHP 代码,你会非常怀念 Ruby 对象。
好吧,不再是了。希望如此。
- Koine\Object
- Koine\Hash - 这里有很多可以做的贡献
- Koine\String - 还有这里!
- Koine\ArrayReference - 还有这里!
安装
通过 Composer 安装
将库添加到你的 composer.json 文件中 requirements 键。
{ // composer.json // [..] require: { // append this line to your requirements "koine/core": "0.9.*" } }
替代安装
问题/特性建议
这里 是问题跟踪器。
贡献
只有遵循 TDD 的代码才会被接受。请遵循 PSR-2 代码标准。
- 分支代码
- 创建你的特性分支 (
git checkout -b my-new-feature
) - 提交你的更改 (
git commit -am 'Add some feature'
) - 推送到分支 (
git push origin my-new-feature
) - 创建新的 Pull Request
如何运行测试
phpunit --configuration tests/phpunit.xml
要检查代码标准,请运行
phpcs --standard=PSR2 lib
phpcs --standard=PSR2 tests
# alternatively
./bin/travis/run_phpcs.sh