PHPackages                             crodas/function-discovery - 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. crodas/function-discovery

ActiveLibrary

crodas/function-discovery
=========================

Discover and remember functions in the filesystem using annotations

v0.7.1(9y ago)0679—0%1BSD-4-ClausePHP

Since Nov 12Pushed 9y ago1 watchersCompare

[ Source](https://github.com/crodas/function-discovery)[ Packagist](https://packagist.org/packages/crodas/function-discovery)[ RSS](/packages/crodas-function-discovery/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (13)Used By (1)

Function Discovery
==================

[](#function-discovery)

Discover PHP functions/methods in any directory using annotations. It walks throught the file system looking for annotations and builds a map to reuse later.

How to use
----------

[](#how-to-use)

```
require __DIR__ . '/vendor/autoload.php';

/** @API my_name */
function foobar(Array $args) {
  return $args[0];
}

$apis = new FunctionDiscovery(__DIR__);
$functions = $apis->getFunctions('@api');
echo $functions['my_name']($arg1, $arg2);
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~36 days

Recently: every ~61 days

Total

11

Last Release

3472d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/36463?v=4)[C](/maintainers/crodas)[@crodas](https://github.com/crodas)

---

Top Contributors

[![crodas](https://avatars.githubusercontent.com/u/36463?v=4)](https://github.com/crodas "crodas (50 commits)")

### Embed Badge

![Health badge](/badges/crodas-function-discovery/health.svg)

```
[![Health](https://phpackages.com/badges/crodas-function-discovery/health.svg)](https://phpackages.com/packages/crodas-function-discovery)
```

###  Alternatives

[crodas/notoj

Annotation parser. Uses reflection and provides cache out of the box.

3721.9k9](/packages/crodas-notoj)

PHPackages © 2026

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