PHPackages                             kristoreed/laminas-dictionary - 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. kristoreed/laminas-dictionary

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

kristoreed/laminas-dictionary
=============================

Laminas dictionary

1.0.1(5y ago)017MITPHPPHP &gt;=7.2

Since Dec 4Pushed 5y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

laminas-dictionary
==================

[](#laminas-dictionary)

Laminas-dictionary is repository class with simple CRUD functionality, which can be used as base to more complex db dictionaries. This package base on kristoreed/laminas-db-manager

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

[](#installation)

Use the package manager [composer](https://getcomposer.org/) to install laminas-dictionary.

```
composer require kristoreed/laminas-dictionary
```

Base usage
----------

[](#base-usage)

```
use Kristoreed\Laminas\DbManager\Query\Executor\Executor as QueryExecutor;

$dbAdapter = new Adapter([
    'driver'    => 'pdo',
    'dsn'       => 'mysql:dbname=test;host=localhost',
    'username'  => 'admin',
    'password'  => 'admin',
]);

$queryExecutor = new QueryExecutor($dbAdapter);
$userRepository = new Dictionary($queryExecutor);
$userRepository->setTableName('users');
$user = $userRepository->getElementById(404);
```

Extend usage
------------

[](#extend-usage)

```
class User extends Dictionary implements UserInterface
{
    /**
     * @var string
     */
    protected $tableName = 'users';

    /**
     * @var QueryExecutorInterface
     */
    protected $queryExecutor;

    /**
     * User constructor
     *
     * @param QueryExecutorInterface $queryExecutor
     */
    public function __construct(QueryExecutorInterface $queryExecutor)
    {
        parent::__construct($queryExecutor);
        $this->queryExecutor = $queryExecutor;
    }

    /**
     * @param string $elementEmail
     *
     * @return array
     *
     * @throws ExecutorException
     */
    public function getElementByEmail(string $elementEmail): array
    {
        $select = new Select();
        $select
            ->from(['u' => $this->tableName])
            ->columns(['*'])
            ->where([
                'email' => $elementEmail
            ]);

        return $this->queryExecutor->getRow($select);
    }
}

$dbAdapter = new Adapter([
    'driver'    => 'pdo',
    'dsn'       => 'mysql:dbname=test;host=localhost',
    'username'  => 'admin',
    'password'  => 'admin',
]);

$queryExecutor = new QueryExecutor($dbAdapter);
$userRepository = new User($queryExecutor);
$user = $userRepository->getElementByEmail("user404@gmail.com");
```

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 55.6% 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 ~58 days

Total

2

Last Release

1923d ago

### Community

Maintainers

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

---

Top Contributors

[![kristoreed](https://avatars.githubusercontent.com/u/33293983?v=4)](https://github.com/kristoreed "kristoreed (5 commits)")[![ktrzcinka](https://avatars.githubusercontent.com/u/133106795?v=4)](https://github.com/ktrzcinka "ktrzcinka (4 commits)")

---

Tags

kristoreedlaminas-dictionary

### Embed Badge

![Health badge](/badges/kristoreed-laminas-dictionary/health.svg)

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

###  Alternatives

[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k111.1M565](/packages/symfony-maker-bundle)[nutsweb/laravel-prerender

Laravel middleware for prerendering javascript-rendered pages on the fly for SEO

279165.5k1](/packages/nutsweb-laravel-prerender)[fadion/fixerio

Wrapper for Fixer.io

49337.7k](/packages/fadion-fixerio)[fruitstudios/searchit

Configure powerful custom filters for an enhanced search experience in the Craft CMS control panel.

2840.6k](/packages/fruitstudios-searchit)

PHPackages © 2026

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