PHPackages                             initialstacker/dorch - 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. initialstacker/dorch

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

initialstacker/dorch
====================

Laravel Doctrine ORM connector

1.0.1(8mo ago)04MITPHPPHP ^8.2

Since Sep 4Pushed 8mo agoCompare

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

READMEChangelogDependencies (5)Versions (2)Used By (0)

Dorch
=====

[](#dorch)

Laravel Doctrine ORM connector package enabling seamless integration of Doctrine ORM within Laravel applications.

Features
--------

[](#features)

- Easy setup of Doctrine EntityManager in Laravel service container
- Support for custom Doctrine types (e.g., Ramsey UUID)
- Configurable metadata directories and connection options
- Redis cache integration for metadata and proxies
- Development mode support for proxy generation
- Clean Laravel service provider design

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

[](#installation)

Require the package via Composer:

```
composer require initialstacker/dorch

```

Publish the configuration file:

```
php artisan vendor:publish --tag=doctrine

```

Configuration
-------------

[](#configuration)

Configure your database and cache settings in `config/doctrine.php`. Example drivers supported:

- `pdo_mysql` (MySQL)
- `pdo_pgsql` (PostgreSQL)
- `pdo_sqlite` (SQLite)
- `pdo_sqlsrv` (SQL Server)
- `oci8` (Oracle)

Set your connection according to preferred driver and database credentials.

Manual Service Provider Registration
------------------------------------

[](#manual-service-provider-registration)

Open your `bootstrap/providers.php`:

```
