PHPackages                             edgebinder/edgebinder-laminas-component - 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. [Database &amp; ORM](/categories/database)
4. /
5. edgebinder/edgebinder-laminas-component

ActiveLibrary[Database &amp; ORM](/categories/database)

edgebinder/edgebinder-laminas-component
=======================================

Laminas/Mezzio integration component for EdgeBinder - A lightweight, storage-agnostic relationship management library

v0.3.0(8mo ago)01.3k↓50%Apache-2.0PHPPHP ^8.3CI passing

Since Aug 4Pushed 8mo agoCompare

[ Source](https://github.com/EdgeBinder/edgebinder-laminas-component)[ Packagist](https://packagist.org/packages/edgebinder/edgebinder-laminas-component)[ Docs](https://github.com/EdgeBinder/edgebinder-laminas-component)[ RSS](/packages/edgebinder-edgebinder-laminas-component/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (9)Versions (5)Used By (0)

EdgeBinder Laminas Component
============================

[](#edgebinder-laminas-component)

[![Tests](https://github.com/EdgeBinder/edgebinder-laminas-component/workflows/Tests/badge.svg)](https://github.com/EdgeBinder/edgebinder-laminas-component/actions?query=workflow%3ATests)[![Lint](https://github.com/EdgeBinder/edgebinder-laminas-component/workflows/Lint/badge.svg)](https://github.com/EdgeBinder/edgebinder-laminas-component/actions?query=workflow%3ALint)[![Coverage Status](https://camo.githubusercontent.com/c715e5c74b1f77091095525e5117492057f67d8e96422becdb2bc505ef8f5972/68747470733a2f2f636f6465636f762e696f2f67682f4564676542696e6465722f6564676562696e6465722d6c616d696e61732d636f6d706f6e656e742f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/EdgeBinder/edgebinder-laminas-component)[![Latest Stable Version](https://camo.githubusercontent.com/65e87a2d7aaacda3e386e705276d759298b616d04ad0687e3b4bccc9628a8380/68747470733a2f2f706f7365722e707567782e6f72672f6564676562696e6465722f6564676562696e6465722d6c616d696e61732d636f6d706f6e656e742f762f737461626c65)](https://packagist.org/packages/edgebinder/edgebinder-laminas-component)[![Total Downloads](https://camo.githubusercontent.com/6eb2396e6f6e111ac2a899e1237e1d18d3e106c95793b4e7422a238630418e39/68747470733a2f2f706f7365722e707567782e6f72672f6564676562696e6465722f6564676562696e6465722d6c616d696e61732d636f6d706f6e656e742f646f776e6c6f616473)](https://packagist.org/packages/edgebinder/edgebinder-laminas-component)[![License](https://camo.githubusercontent.com/2696178aeeb4a5628f061e92197271b36a1d503be389b8a508149aa33eb7be88/68747470733a2f2f706f7365722e707567782e6f72672f6564676562696e6465722f6564676562696e6465722d6c616d696e61732d636f6d706f6e656e742f6c6963656e7365)](https://packagist.org/packages/edgebinder/edgebinder-laminas-component)[![PHP Version Require](https://camo.githubusercontent.com/76cb88e0815549446483f195eee2b1e56bf356233c8989bb807a77f0dc6758ad/68747470733a2f2f706f7365722e707567782e6f72672f6564676562696e6465722f6564676562696e6465722d6c616d696e61732d636f6d706f6e656e742f726571756972652f706870)](https://packagist.org/packages/edgebinder/edgebinder-laminas-component)

A Laminas/Mezzio integration component for [EdgeBinder](https://github.com/EdgeBinder/edgebinder) - A lightweight, storage-agnostic relationship management library for PHP 8.3+.

Features
--------

[](#features)

- 🏭 **Service Factories** - Ready-to-use factories for EdgeBinder instances
- 🔧 **ConfigProvider** - Seamless Laminas/Mezzio integration
- 🎯 **Multi-Instance Support** - Multiple EdgeBinder instances with different adapters
- 🔌 **Extensible Adapters** - Framework-agnostic plugin architecture
- 🛡️ **Type Safety** - Full PHP 8.3+ type safety with PHPStan level 8
- ⚡ **Cross-Version Compatible** - Supports ServiceManager 3.x/4.x and PSR-11 v1/v2

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

[](#requirements)

- PHP 8.3+
- Laminas ServiceManager 3.0+ or 4.0+
- EdgeBinder ^0.9.0 (includes InMemoryAdapter for testing)

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

[](#installation)

Install via Composer:

```
composer require edgebinder/edgebinder-laminas-component
```

Quick Start
-----------

[](#quick-start)

### 1. Register the ConfigProvider

[](#1-register-the-configprovider)

Add the ConfigProvider to your Laminas/Mezzio application:

```
// config/config.php
use EdgeBinder\Component\ConfigProvider;

$aggregator = new ConfigAggregator([
    ConfigProvider::class,
    // ... other config providers
]);
```

### 2. Configure EdgeBinder

[](#2-configure-edgebinder)

Copy the configuration template and customize it:

```
cp vendor/edgebinder/edgebinder-laminas-component/config/edgebinder.global.php.dist config/autoload/edgebinder.local.php
```

Or create configuration file manually:

```
// config/autoload/edgebinder.local.php
return [
    'edgebinder' => [
        // For testing and development
        'adapter' => 'inmemory',

        // For production with Weaviate (requires edgebinder/weaviate-adapter)
        // 'adapter' => 'weaviate',
        // 'weaviate_client' => 'weaviate.client.default',
        // 'collection_name' => 'EdgeBindings',
        // 'schema' => [
        //     'auto_create' => true,
        //     'vectorizer' => 'text2vec-openai',
        // ],
    ],
];
```

Adapters
--------

[](#adapters)

EdgeBinder uses a self-determining adapter architecture. Adapters register themselves with the EdgeBinder AdapterRegistry when their packages are loaded.

### Built-in Adapters

[](#built-in-adapters)

- **InMemoryAdapter** (`inmemory`) - Included with EdgeBinder core v0.9.0+, perfect for testing and development

### Available Adapters

[](#available-adapters)

- **WeaviateAdapter** (`weaviate`) - Install `edgebinder/weaviate-adapter` for vector database support
- **JanusAdapter** (`janus`) - Install `edgebinder/janus-adapter` for graph database support
- **RedisAdapter** (`redis`) - Install `edgebinder/redis-adapter` for caching and fast lookups

### 3. Use in Your Services

[](#3-use-in-your-services)

```
use EdgeBinder\EdgeBinder;
use Psr\Container\ContainerInterface;

class MyService
{
    public function __construct(private EdgeBinder $edgeBinder) {}

    public function createRelationship($document, $knowledgeBase): void
    {
        $this->edgeBinder->bind(
            from: $document,
            to: $knowledgeBase,
            type: 'belongs_to',
            metadata: [
                'relevance_score' => 0.95,
                'semantic_similarity' => 0.87,
            ]
        );
    }
}

// Factory
class MyServiceFactory
{
    public function __invoke(ContainerInterface $container): MyService
    {
        return new MyService($container->get(EdgeBinder::class));
    }
}
```

Multiple Instances
------------------

[](#multiple-instances)

Configure multiple EdgeBinder instances for different use cases:

```
// config/autoload/edgebinder.local.php
return [
    'edgebinder' => [
        // RAG system with vector search
        'rag' => [
            'adapter' => 'weaviate',
            'weaviate_client' => 'weaviate.client.rag',
            'collection_name' => 'RAGBindings',
            'schema' => ['vectorizer' => 'text2vec-openai'],
        ],

        // Analytics with graph database
        'analytics' => [
            'adapter' => 'janus',
            'janus_client' => 'janus.client.analytics',
            'graph_name' => 'AnalyticsGraph',
        ],

        // Fast cache lookups
        'cache' => [
            'adapter' => 'redis',
            'redis_client' => 'redis.client.cache',
            'ttl' => 3600,
        ],

        // Testing instance
        'test' => [
            'adapter' => 'inmemory',
        ],
    ],
];
```

Register named instances in your container:

```
// config/autoload/dependencies.local.php
return [
    'dependencies' => [
        'factories' => [
            'edgebinder.rag' => function(ContainerInterface $container) {
                $factory = new EdgeBinderFactory();
                return $factory->createEdgeBinder($container, 'rag');
            },
            'edgebinder.analytics' => function(ContainerInterface $container) {
                $factory = new EdgeBinderFactory();
                return $factory->createEdgeBinder($container, 'analytics');
            },
            'edgebinder.test' => function(ContainerInterface $container) {
                $factory = new EdgeBinderFactory();
                return $factory->createEdgeBinder($container, 'test');
            },
        ],
    ],
];
        'rag' => [
            'adapter' => 'weaviate',
            'weaviate_client' => 'weaviate.client.rag',
            'collection_name' => 'RAGBindings',
        ],
        'analytics' => [
            'adapter' => 'weaviate',
            'weaviate_client' => 'weaviate.client.analytics',
            'collection_name' => 'AnalyticsBindings',
        ],
    ],
];
```

Use named instances:

```
$ragBinder = $container->get('edgebinder.rag');
$analyticsBinder = $container->get('edgebinder.analytics');
```

Documentation
-------------

[](#documentation)

- [Installation Guide](docs/INSTALLATION.md)
- [Configuration Reference](docs/CONFIGURATION.md)
- [Usage Examples](docs/EXAMPLES.md)

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING.md](CONTRIBUTING.md) for details.

License
-------

[](#license)

This project is licensed under the Apache 2.0 License - see the [LICENSE](LICENSE) file for details.

Support
-------

[](#support)

- [GitHub Issues](https://github.com/EdgeBinder/edgebinder-laminas-component/issues)
- [Documentation](https://edgebinder.dev/docs)
- [Community Discussions](https://github.com/EdgeBinder/edgebinder-laminas-component/discussions)

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance59

Moderate activity, may be stable

Popularity16

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

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

Every ~4 days

Total

4

Last Release

264d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bd5a2c6deedf2f52379d21fa55c9f5c6d0999b0ac1ca2ca2f33293e229107bfe?d=identicon)[iampersistent](/maintainers/iampersistent)

---

Top Contributors

[![iampersistent](https://avatars.githubusercontent.com/u/16964?v=4)](https://github.com/iampersistent "iampersistent (21 commits)")

---

Tags

laminasdependency-injectionservice-managermezziographRelationshipsweaviatevector-databaseedgebinder

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/edgebinder-edgebinder-laminas-component/health.svg)

```
[![Health](https://phpackages.com/badges/edgebinder-edgebinder-laminas-component/health.svg)](https://phpackages.com/packages/edgebinder-edgebinder-laminas-component)
```

###  Alternatives

[doctrine/doctrine-orm-module

Laminas Module that provides Doctrine ORM functionality

4407.3M292](/packages/doctrine-doctrine-orm-module)[laminas/laminas-servicemanager

Factory-Driven Dependency Injection Container

15955.1M693](/packages/laminas-laminas-servicemanager)[doctrine/doctrine-module

Laminas Module that provides Doctrine basic functionality required for ORM and ODM modules

3957.9M115](/packages/doctrine-doctrine-module)[samsonasik/error-hero-module

A Hero for your Laminas and Mezzio application to trap php errors &amp; exceptions

5233.4k1](/packages/samsonasik-error-hero-module)[mezzio/mezzio-authentication-oauth2

OAuth2 (server) authentication middleware for Mezzio and PSR-7 applications.

28483.0k2](/packages/mezzio-mezzio-authentication-oauth2)[php-db/phpdb

Database abstraction layer, SQL abstraction, result set abstraction, and RowDataGateway and TableDataGateway implementations

1815.0k6](/packages/php-db-phpdb)

PHPackages © 2026

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