PHPackages                             saxulum/saxulum-annotation-manager - 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. saxulum/saxulum-annotation-manager

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

saxulum/saxulum-annotation-manager
==================================

Saxulum Annotation Manager

1.2.0(10y ago)02.9k3MITPHPPHP &gt;=5.3.9,&lt;8.0

Since Mar 12Pushed 10y agoCompare

[ Source](https://github.com/saxulum-legacy/saxulum-annotation-manager)[ Packagist](https://packagist.org/packages/saxulum/saxulum-annotation-manager)[ RSS](/packages/saxulum-saxulum-annotation-manager/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (4)Versions (8)Used By (3)

saxulum-annotation-manager
==========================

[](#saxulum-annotation-manager)

**works with plain silex-php**

[![Build Status](https://camo.githubusercontent.com/522393dd3fea618455c5c4a66b192e5b84a9ab09e99e62042e73465657744d49/68747470733a2f2f6170692e7472617669732d63692e6f72672f736178756c756d2f736178756c756d2d616e6e6f746174696f6e2d6d616e616765722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/saxulum/saxulum-annotation-manager)[![Total Downloads](https://camo.githubusercontent.com/ef867ab2d5cdaff8d44b1db576f91b7256af02ba87ec77e987826c87b48a96f7/68747470733a2f2f706f7365722e707567782e6f72672f736178756c756d2f736178756c756d2d616e6e6f746174696f6e2d6d616e616765722f646f776e6c6f6164732e706e67)](https://packagist.org/packages/saxulum/saxulum-annotation-manager)[![Latest Stable Version](https://camo.githubusercontent.com/9532ca4573b586ed96bdaafe0ae217a9dfc91f87d2ac05d8bd8a9adcd6fd5ca7/68747470733a2f2f706f7365722e707567782e6f72672f736178756c756d2f736178756c756d2d616e6e6f746174696f6e2d6d616e616765722f762f737461626c652e706e67)](https://packagist.org/packages/saxulum/saxulum-annotation-manager)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/db878836c8689923a28707dbad1ad8c8a36931d1dd97ae54889d04b6416ce4df/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f736178756c756d2f736178756c756d2d616e6e6f746174696f6e2d6d616e616765722f6261646765732f7175616c6974792d73636f72652e706e673f733d66376366316666666266643339623962613665393333376463333137326465333965323562323063)](https://scrutinizer-ci.com/g/saxulum/saxulum-annotation-manager/)

Features
--------

[](#features)

- An annotation manager

Requirements
------------

[](#requirements)

- php &gt;=5.3
- Doctrine Annotations &gt;=1.1
- Saxulum ClassFinder &gt;=1.0
- Symfony Finder Component &gt;=2.3

Installation
------------

[](#installation)

Through [Composer](http://getcomposer.org) as [saxulum/saxulum-annotation-manager](https://packagist.org/packages/saxulum/saxulum-annotation-manager).

### AnnotationRegistry

[](#annotationregistry)

Add this line after you added the `autoload.php` from composer

```
\Doctrine\Common\Annotations\AnnotationRegistry::registerLoader(
    array($loader, 'loadClass')
);

```

Usage
-----

[](#usage)

### Prepare the annotation Manager

[](#prepare-the-annotation-manager)

```
use Doctrine\Common\Annotations\AnnotationReader;
use Saxulum\AnnotationManager\Manager\AnnotationManager;

$annotationReader = new AnnotationReader();
$annotationManager = new AnnotationManager($annotationReader);

```

### ClassInfo based on paths

[](#classinfo-based-on-paths)

This will search each instantiable class within the given paths and return em as an array of `Saxulum\AnnotationManager\Helper\ClassInfo`instances.

```
$classInfos = $annotationManager->buildClassInfosBasedOnPaths(array(
    dirname(__DIR__) . '/Classes1',
    dirname(__DIR__) . '/Classes2'
));

```

### ClassInfo based on path

[](#classinfo-based-on-path)

This will search each instantiable class within the given path and return em as an array of `Saxulum\AnnotationManager\Helper\ClassInfo`instances.

```
$classInfos = $annotationManager->buildClassInfosBasedOnPath(
    dirname(__DIR__) . '/Classes1'
);

```

### ClassInfo based on reflection classes

[](#classinfo-based-on-reflection-classes)

This will return an array of `Saxulum\AnnotationManager\Helper\ClassInfo`instances based on the given ReflectionClasses.

```
$classInfos = $annotationManager->buildClassInfos(array(
    new \ReflectionClass(new TestClass1()),
    new \ReflectionClass(new TestClass2())
));

```

### ClassInfo based on reflection class

[](#classinfo-based-on-reflection-class)

This will return an instance of `Saxulum\AnnotationManager\Helper\ClassInfo`based on the given ReflectionClass.

```
$classInfo = $annotationManager->buildClassInfo(
    new \ReflectionClass(new TestClass1())
);

```

### ReflectionClasses based on path

[](#reflectionclasses-based-on-path)

This will search each instantiable class within the given path and return em as an array of `\ReflectionClass` instances.

```
$reflectionClasses = AnnotationManager::getReflectionClasses(
    dirname(__DIR__) . '/Classes1'
);

```

### Classes based on SplFileInfo

[](#classes-based-on-splfileinfo)

This will search each class within the given file and return em as an array of class names.

```
$classes = AnnotationManager::findClassesWithinAFile(
    new SplFileInfo(
        dirname(__DIR__) . '/Classes1/TestClass1.php',
        '',
        'TestClass1.php'
    )
);

```

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity73

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 ~107 days

Recently: every ~160 days

Total

7

Last Release

3855d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.3.3

1.2.0PHP &gt;=5.3.9,&lt;8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/55048de83ca5e5d8c67164a19c78edcaad413b0c1a4ae10d92edf8d77bedd90f?d=identicon)[dominikzogg](/maintainers/dominikzogg)

---

Top Contributors

[![dominikzogg](https://avatars.githubusercontent.com/u/1011217?v=4)](https://github.com/dominikzogg "dominikzogg (13 commits)")

---

Tags

managerannotationsaxulum

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/saxulum-saxulum-annotation-manager/health.svg)

```
[![Health](https://phpackages.com/badges/saxulum-saxulum-annotation-manager/health.svg)](https://phpackages.com/packages/saxulum-saxulum-annotation-manager)
```

###  Alternatives

[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k251.2M25.2k](/packages/friendsofphp-php-cs-fixer)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

54681.3k18](/packages/solspace-craft-freeform)[symfony/stimulus-bundle

Integration with your Symfony app &amp; Stimulus!

17417.5M294](/packages/symfony-stimulus-bundle)[illuminate/session

The Illuminate Session package.

9939.3M849](/packages/illuminate-session)[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

103519.9k53](/packages/friendsoftypo3-content-blocks)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)

PHPackages © 2026

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