PHPackages                             intaro/hstore-extension - 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. intaro/hstore-extension

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

intaro/hstore-extension
=======================

The HStore Extension contains DBAL type hstore and registers Doctrine type hstore

v3.1.0(1y ago)16816.8k↑12.4%5MITPHPPHP &gt;=8.0CI passing

Since Mar 22Pushed 8mo ago15 watchersCompare

[ Source](https://github.com/intaro/hstore-extension)[ Packagist](https://packagist.org/packages/intaro/hstore-extension)[ RSS](/packages/intaro-hstore-extension/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (4)Versions (7)Used By (0)

HStore Extension
================

[](#hstore-extension)

[![Build Status](https://camo.githubusercontent.com/0df94e5ed5d834d4952f374ee8cc8511140f745ee1c3c9023fd5d1f8fdbd6ee2/68747470733a2f2f7472617669732d63692e6f72672f696e7461726f2f6873746f72652d657874656e73696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/intaro/hstore-extension)

PostgreSQL module `hstore` allows to store sets of key/value pairs within a single PostgreSQL value. More about it [here](http://www.postgresql.org/docs/current/static/hstore.html).

The HStore Extension contains DBAL type `hstore` and registers Doctrine type `hstore`.

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

[](#installation)

To install this library, run the command below and you will get the latest version:

```
composer require intaro/hstore-extension
```

If you want to run the tests:

```
./vendor/bin/phpunit
```

You can find an example configuration for using HStore extension in Symfony2 in [config/hstore.yml](config/hstore.yml). You can just include in you `config.yml`:

```
imports:
    - { resource: ../../vendor/intaro/hstore-extension/config/hstore.yml }
```

PHP extension
-------------

[](#php-extension)

To speed up encoding/decoding of strings you can install C extension shipped in `ext/hstore` directory.

To compile extension you must install php-dev package.

```
phpize
./configure
make
sudo make install
```

Finally, enable the extension in your `php.ini` configuration file:

```
extension = hstore.so
```

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance49

Moderate activity, may be stable

Popularity47

Moderate usage in the ecosystem

Community19

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~778 days

Total

6

Last Release

585d ago

Major Versions

v1.0 → v2.02016-04-03

v2.0.2 → v3.0.02023-01-26

PHP version history (4 changes)v1.0PHP &gt;=5.4.4

v2.0.2PHP &gt;=5.6

v3.0.0PHP &gt;=7.4 || &gt;=8.0

v3.1.0PHP &gt;=8.0

### Community

Maintainers

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

---

Top Contributors

[![linniksa](https://avatars.githubusercontent.com/u/424343?v=4)](https://github.com/linniksa "linniksa (12 commits)")[![akuzia](https://avatars.githubusercontent.com/u/11508654?v=4)](https://github.com/akuzia "akuzia (7 commits)")[![muxx](https://avatars.githubusercontent.com/u/461614?v=4)](https://github.com/muxx "muxx (6 commits)")[![1on](https://avatars.githubusercontent.com/u/2292168?v=4)](https://github.com/1on "1on (5 commits)")[![panzerklain](https://avatars.githubusercontent.com/u/123471240?v=4)](https://github.com/panzerklain "panzerklain (2 commits)")

---

Tags

extensionhstorephppostgresqldoctrinepostgresqlhstore

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/intaro-hstore-extension/health.svg)

```
[![Health](https://phpackages.com/badges/intaro-hstore-extension/health.svg)](https://phpackages.com/packages/intaro-hstore-extension)
```

###  Alternatives

[scienta/doctrine-json-functions

A set of extensions to Doctrine that add support for json query functions.

58723.9M36](/packages/scienta-doctrine-json-functions)[fresh/doctrine-enum-bundle

Provides support of ENUM type for Doctrine2 in Symfony applications.

4636.8M12](/packages/fresh-doctrine-enum-bundle)[oro/doctrine-extensions

Doctrine Extensions for MySQL and PostgreSQL.

34411.8M19](/packages/oro-doctrine-extensions)[martin-georgiev/postgresql-for-doctrine

Extends Doctrine with native PostgreSQL support for arrays, JSONB, ranges, PostGIS geometries, text search, ltree, uuid, and 100+ PostgreSQL-specific functions.

4485.3M4](/packages/martin-georgiev-postgresql-for-doctrine)[boldtrn/jsonb-bundle

A library adding the support for JSONB columns of PostgreSQL to Doctrine.

57817.6k](/packages/boldtrn-jsonb-bundle)[goodwix/doctrine-json-odm

JSON Object-Document Mapping bundle for Symfony and Doctrine

2226.0k](/packages/goodwix-doctrine-json-odm)

PHPackages © 2026

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