PHPackages                             phore/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. phore/core

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

phore/core
==========

Phore core library

1.2.2(4mo ago)114.1k↓50%216MITPHPPHP &gt;=7.1CI failing

Since Apr 30Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/phore/phore-core)[ Packagist](https://packagist.org/packages/phore/core)[ Docs](https://infracamp.org/project/phore)[ RSS](/packages/phore-core/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (10)Used By (16)

Phore core library
==================

[](#phore-core-library)

[![Actions Status](https://github.com/phore/phore-core/workflows/tests/badge.svg)](https://github.com/phore/phore-core/actions)

Install
-------

[](#install)

```
composer requre phore/core

```

Basic usage
-----------

[](#basic-usage)

### Pluck

[](#pluck)

```
$data = ["some"=>["path"=>"data"]];

assert( "data" === phore_pluck("some.path", $data) );

assert( "data" === phore_pluck(["some", "path"], $data) );

assert( "fail" === phore_pluck("unknown", $data, "fail") );
phore_pluck("unknown", $data, new InvalidArgumentException("path missing"));

// if default is array, phore_pluck will ensure to return array
assert ( [] == phore_pluck("some.path", $data, []) );
```

### Transform Array

[](#transform-array)

```
$input = ["a", "remove"];

$out = phore_array_transform($input, function ($key, $value) {
    if ($key == "remove")
        return null;
    return ["x"=>"y"];
});

assert([["x"=>"y"]] == $out);
```

### Text functions

[](#text-functions)

- `phore_text_unindent(string $input)`

### phore\_random\_str()

[](#phore_random_str)

Wrapper around libsodium and

###  Health Score

48

—

FairBetter than 95% of packages

Maintenance75

Regular maintenance activity

Popularity28

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.4% 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 ~294 days

Recently: every ~115 days

Total

8

Last Release

137d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/878a384d056698a2400e4b7c8858db05a6caebb2c560e67151be36d46d58def0?d=identicon)[dermatthes](/maintainers/dermatthes)

---

Top Contributors

[![dermatthes](https://avatars.githubusercontent.com/u/13380559?v=4)](https://github.com/dermatthes "dermatthes (134 commits)")[![jkalex-git](https://avatars.githubusercontent.com/u/43358712?v=4)](https://github.com/jkalex-git "jkalex-git (5 commits)")[![mikoma](https://avatars.githubusercontent.com/u/2332359?v=4)](https://github.com/mikoma "mikoma (3 commits)")

---

Tags

phore

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[unclecheese/display-logic

Allows assignment of conditions for display and hide of specific form fields based on client side behavior.

771.0M101](/packages/unclecheese-display-logic)[pubsubhubbub/subscriber

pubsubhubbub implementation of subscriber.

32100.2k](/packages/pubsubhubbub-subscriber)[humanmade/hm-content-import

Migration framework for WordPress

2931.6k1](/packages/humanmade-hm-content-import)[netgen/content-browser

Netgen Content Browser is a Symfony bundle that provides an interface which selects items from any kind of backend and returns the IDs of selected items back to the calling code.

14112.1k8](/packages/netgen-content-browser)[spaggel/tooltip

Product attribute tooltips module for Magento 2

2431.5k](/packages/spaggel-tooltip)[slicksky/spam-blacklist-query

Find out if a domain or IP is blacklisted on the most popular spam listing services.

1131.8k](/packages/slicksky-spam-blacklist-query)

PHPackages © 2026

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