Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/intaro/hstore-extension
The encoder/decoder and set of the doctrine functions for the postgresql type `hstore`
https://github.com/intaro/hstore-extension
extension hstore php postgresql
Last synced: about 6 hours ago
JSON representation
The encoder/decoder and set of the doctrine functions for the postgresql type `hstore`
- Host: GitHub
- URL: https://github.com/intaro/hstore-extension
- Owner: intaro
- License: mit
- Created: 2015-03-22T15:49:07.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-10-11T11:00:47.000Z (28 days ago)
- Last Synced: 2024-10-11T11:53:59.001Z (28 days ago)
- Topics: extension, hstore, php, postgresql
- Language: PHP
- Size: 33.2 KB
- Stars: 16
- Watchers: 16
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
HStore Extension
==================[![Build Status](https://travis-ci.org/intaro/hstore-extension.svg?branch=master)](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
------------To install this library, run the command below and you will get the latest version:
```sh
composer require intaro/hstore-extension
```If you want to run the tests:
```sh
./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`:```yml
imports:
- { resource: ../../vendor/intaro/hstore-extension/config/hstore.yml }
```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.
```bash
phpize
./configure
make
sudo make install
```Finally, enable the extension in your `php.ini` configuration file:
```ini
extension = hstore.so
```