PHPackages                             dantleech/phpcr-generator - 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. dantleech/phpcr-generator

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

dantleech/phpcr-generator
=========================

Fixture generastor for PHPCR

0.1(11y ago)21PHP

Since Oct 16Pushed 11y ago2 watchersCompare

[ Source](https://github.com/dantleech/phpcr-generator)[ Packagist](https://packagist.org/packages/dantleech/phpcr-generator)[ RSS](/packages/dantleech-phpcr-generator/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

PHPCR Node Generator
====================

[](#phpcr-node-generator)

[![](https://camo.githubusercontent.com/502326141169cca89580fef4398021d17d778184049a1b9d358e76547ed8f2a7/68747470733a2f2f7472617669732d63692e6f72672f64616e746c656563682f70687063722d67656e657261746f722e706e67)](https://travis-ci.org/dantleech/phpcr-generator)

Small library for generating node data for benchmarking, testing, etc.

Example
-------

[](#example)

### Basic

[](#basic)

```
    $converter = new NodeConverter($phpcrSession);
    $builder = new NodeBuilder('node', 'nt:unstructured');

    $builder->node('content', 'nt:unstructured')
            ->node('article1')
                ->property('title', 'My first article')
                ->property('body', 'My first article body')
            ->end()
            ->node('article2')
                ->property('title', 'My first article')
                ->property('body', 'My first article body')
            ->end()
        ->end();

    $this->converter->convert($this->builder);

    $phpcrSession->save();
```

Will result in:

```
node/
    article1/
        - title: My First Article
        - body: My First Article body
    article2/
        - title: My First Article
        - body: My First Article body

```

### Ranges

[](#ranges)

You can also specify ranges in the node name:

```
        $builder->node('content-[1-5]', 'nt:unstructured')
            ->node('article[1-10]')
                ->property('title', 'My first article')
                ->property('body', 'My first article body')
            ->end()
        ->end();
```

Will result in 50 nodes being created.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

4229d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/24ec7d5d6b7ea54007be5d7b4f43800381cc1e22929f7d2276fba30e497fdfa6?d=identicon)[dantleech](/maintainers/dantleech)

---

Top Contributors

[![dantleech](https://avatars.githubusercontent.com/u/530801?v=4)](https://github.com/dantleech "dantleech (2 commits)")

### Embed Badge

![Health badge](/badges/dantleech-phpcr-generator/health.svg)

```
[![Health](https://phpackages.com/badges/dantleech-phpcr-generator/health.svg)](https://phpackages.com/packages/dantleech-phpcr-generator)
```

PHPackages © 2026

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