homebase2/hb-core
最新稳定版本:1.0.1
Composer 安装命令:
composer create-project homebase2/hb-core
包简介
Core Libraries for Homebase 2 Framework
README 文档
README
tested with spartan-test, checked with psalm (level 2) && php-stan (level 6)
Using it
composer require "homebase2/hb-core:dev-main"- recommendedcomposer require homebase2/hb-corefor stable version
Provided Classes & Functions
- Str - string methods
- Arr & Arr0 - Generic Array Methods
- DH aka DeepHash - Deep(aka nested) Array methods
- TODO: AH - Array of Hashes/Records (~ sql tables)
- TODO: ADH - Array of AH (~ mongo records)
- \hb\ functions - used by framework
FRAMEWORK DEVELOPMENT STUFF
TODO - move to Homebase Development Document
Install
composer install- install php-tools
ln -s ~/src/php-tools/bin tools
Notable tools provided
composer testrun unit tests. usetest-qto run quite tests (show errors only)
composer psalmcheck code with psalm
composer stancheck code with php-stan (default level is 6)
composer lintphp syntax check
composer psalm-dryANDcomposer psalm-fix(aka psalter review/apply suggested code changes by psalm, be careful always do dry before applying
composer cs-dryANDcomposer cs-fixreview/apply suggested code changes by php-cs-fixer, be careful always do dry before applying
composer docgenerate phpDocumentor documentation indocfolder
./checkdo all checks: lint, unit tests, psalm, php-stan; stops when any of them failed
./check-commit,./check-pushdo./check, add all new files to git, dogit commit -v -sandgit push --tags
./psyshphp shell: Docs
notable commands:wtf,doc ClassName,doc ClassName::method,show ClassName::method,ls -l ClassName,ls -l --grep all \hb\Arrusehelpto see more
PS:
this project was bootstrapped from composer-php8-template
统计信息
- 总下载量: 349
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-05-09