pfilsx / PostgreSQLDoctrine

Provides extended Doctrine and Doctrine migrations PostgreSQL support with specific features such as enums, arrays, aggregate, JSON(B) and many other specific functions.

Home Page:https://packagist.org/packages/pfilsx/postgresql-doctrine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PostgreSQL Doctrine

Latest Stable Version PHP Version Require Total Downloads

Description

Provides extended Doctrine and Doctrine migrations PostgreSQL support with specific features such as enums, arrays and aggregate and JSON(B) functions.

Features

Requirement

  • PHP ^8.1
  • doctrine/dbal ^3.5.1
  • doctrine/migrations ^3.5.2
  • symfony/serializer >=5.4.* (optional for json models)
  • symfony/property-info >=5.4.* (optional for json models)

Installation

Open a command console, enter your project directory and execute the following command to download the latest version of this bundle:

composer require pfilsx/postgresql-doctrine

Usage

Please refer Doctrine DBAL and Doctrine Migrations for instructions on how to override the default doctrine classes in your project.

Required steps:

  1. Register PostgreSQLDriverMiddleware.php as driver middleware
  2. Register OrmSchemaProvider.php as Doctrine\Migrations\Provider\SchemaProvider in Doctrine\Migrations\DependencyFactory
  3. Register types and functions on your needs

For Symfony integration see PostgreSQLDoctrineBundle

Documentation

License

This bundle is released under the MIT license.

About

Provides extended Doctrine and Doctrine migrations PostgreSQL support with specific features such as enums, arrays, aggregate, JSON(B) and many other specific functions.

https://packagist.org/packages/pfilsx/postgresql-doctrine

License:MIT License


Languages

Language:PHP 100.0%