PHPackages                             homebase2/hb-core - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. homebase2/hb-core

ActiveProject[Framework](/categories/framework)

homebase2/hb-core
=================

Core Libraries for Homebase 2 Framework

1.0.1(1y ago)1354MITPHPPHP &gt;=8.0

Since May 9Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/homebase/hb-core)[ Packagist](https://packagist.org/packages/homebase2/hb-core)[ RSS](/packages/homebase2-hb-core/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

Static Standalone Classes for Homebase 2 php 8/8.4 Framework
============================================================

[](#static-standalone-classes-for-homebase-2-php-884-framework)

tested with [spartan-test](https://github.com/parf/spartan-test), checked with [psalm](https://psalm.dev/docs/annotating_code/supported_annotations/) (level 2) &amp;&amp; [php-stan](https://phpstan.org/writing-php-code/phpdocs-basics) (level 6)

Using it
--------

[](#using-it)

- `composer require "homebase2/hb-core:dev-main"` - **recommended**
- `composer require homebase2/hb-core` for stable version

Provided Classes &amp; Functions
================================

[](#provided-classes--functions)

- [Str](src/hb2/Str.php) - string methods
- [Arr](src/hb2/Arr.php) &amp; [Arr0](src/hb2/Arr0.php) - Generic Array Methods
- [DH aka DeepHash](DH-DeepHash.md) - Deep(aka nested) Array methods
- TODO: AH - Array of Hashes/Records (~ sql tables)
- TODO: ADH - Array of AH (~ mongo records)
- [\\hb\\ functions](src/hb-functions.inc.php) - used by framework

FRAMEWORK DEVELOPMENT STUFF
===========================

[](#framework-development-stuff)

TODO - move to Homebase Development Document

Install
-------

[](#install)

1. `composer install`
2. install [php-tools](https://github.com/homebase/php-tools#install)
3. `ln -s ~/src/php-tools/bin tools`

Notable tools provided
----------------------

[](#notable-tools-provided)

> `composer test`run [unit tests](https://github.com/parf/spartan-test). use `test-q` to run quite tests (show errors only)

> `composer psalm`check code with [psalm](https://psalm.dev/docs/annotating_code/supported_annotations/)

> `composer stan`check code with [php-stan](https://phpstan.org/writing-php-code/phpdocs-basics) (default level is 6)

> `composer lint`php syntax check

> `composer psalm-dry` AND `composer psalm-fix` (aka [psalter](https://psalm.dev/docs/manipulating_code/fixing/)review/apply suggested code changes by psalm, be careful always do dry before applying

> `composer cs-dry` AND `composer cs-fix`review/apply suggested code changes by [php-cs-fixer](https://mlocati.github.io/php-cs-fixer-configurator/), be careful always do dry before applying

> `composer doc`generate [phpDocumentor](https://docs.phpdoc.org/3.0/guide/guides/running-phpdocumentor.html#quickstart) documentation in `doc` folder

> `./check`do all checks: lint, unit tests, psalm, php-stan; stops when any of them failed

> `./check-commit`, `./check-push`do `./check`, add all new files to git, do `git commit -v -s` and `git push --tags`

> `./psysh`php shell: [Docs](https://developpaper.com/psysh-php-interactive-console/)
> notable commands: `wtf`, `doc ClassName`, `doc ClassName::method`, `show ClassName::method`, `ls -l ClassName`, `ls -l --grep all \hb\Arr`use `help` to see more

PS:
this project was bootstrapped from [composer-php8-template](https://github.com/parf/composer-php8-template)

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance67

Regular maintenance activity

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~904 days

Total

2

Last Release

563d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/97f7309d4fda30c76dcc664aee964ce987818aed49b32216de4d589fa67f80bb?d=identicon)[parf](/maintainers/parf)

---

Top Contributors

[![parf](https://avatars.githubusercontent.com/u/1048670?v=4)](https://github.com/parf "parf (3 commits)")[![izzerador](https://avatars.githubusercontent.com/u/7724399?v=4)](https://github.com/izzerador "izzerador (1 commits)")

---

Tags

frameworkstandalonehomebase

### Embed Badge

![Health badge](/badges/homebase2-hb-core/health.svg)

```
[![Health](https://phpackages.com/badges/homebase2-hb-core/health.svg)](https://phpackages.com/packages/homebase2-hb-core)
```

###  Alternatives

[hemp/presenter

Easy Model Presenters in Laravel

247592.6k1](/packages/hemp-presenter)[pestphp/pest-plugin-stressless

Stressless plugin for Pest

67792.6k16](/packages/pestphp-pest-plugin-stressless)[wpstarter/framework

The WpStarter Framework - Laravel Framework for WordPress

1810.1k4](/packages/wpstarter-framework)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
