PHPackages                             palantir/descriptor - 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. palantir/descriptor

ActiveLibrary

palantir/descriptor
===================

00PHP

Since May 16Pushed 3y ago1 watchersCompare

[ Source](https://github.com/PalantirPHP/descriptor)[ Packagist](https://packagist.org/packages/palantir/descriptor)[ RSS](/packages/palantir-descriptor/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Palantir Descriptor
===================

[](#palantir-descriptor)

Palantir is a fluent API built over top of Reflection Classes. Its aim is to provide a robust and easy-to-use method to drill down for certain conditions (parameters, etc.).

Experimental API
----------------

[](#experimental-api)

This is just something I have messed with... who knows whether it's a good idea (for performance and/or DX reasons). Under the hood, a combination of new collection objects and `FilterIterator` are being used.

```
// Retrieves all methods for the `ClassDescriptor` class.
$methods = ClassDescriptor::for(ClassDescriptor::class)->methods();

// Retrieves _only_ methods which are public and named "isFinal."
$namedFinal = $methods->public()->name('isFinal');

// Retrieves all methods which are static or named "isFinal" (this leaves the original `$methods` variable alone).
$staticOrNamedFinal = $methods
    ->anyOf(
        $methods
            ->static()
            ->name('isFinal')
    );

// Outputs "7"
echo $methods->count(), PHP_EOL;

// Outputs "1"
echo $namedFinal->count(), PHP_EOL;

// Outputs "2"
echo $staticOrNamedFinal->count(), PHP_EOL;

// Results in 7 method names
foreach ($methods as $method) {
    echo $method->name(), PHP_EOL;
}

// Results in 1 method name
foreach ($namedFinal as $method) {
    echo $method->name(), PHP_EOL;
}

// Results in 2 method names
foreach ($staticOrNamedFinal as $method) {
    echo $method->name(), PHP_EOL;
}
```

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/3dca3c3ac71024f7878526a0fe0a384fbf198ed711fe7e7bb34177a1dbc849f6?d=identicon)[golthem](/maintainers/golthem)

---

Top Contributors

[![aidan-casey](https://avatars.githubusercontent.com/u/6686277?v=4)](https://github.com/aidan-casey "aidan-casey (6 commits)")

### Embed Badge

![Health badge](/badges/palantir-descriptor/health.svg)

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

PHPackages © 2026

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