beberlei/doctrineextensions
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|---|---|---|---|---|
doctrine/orm | 2.19.5 | - | MIT | prod |
The Beberlei DoctrineExtensions pack is a set of extensions to Doctrine 2 that provide additional support for query functions available in MySQL, Oracle, PostgreSQL, and SQLite. This package extends Doctrine’s functionality to include a wide range of functions specific to these databases, ranging from date and time functions to mathematical and comparison operations.
Using Beberlei DoctrineExtensions is relatively straightforward. After installing the package via Composer by running composer require beberlei/doctrineextensions
, it can be incorporated into your project. If you are using DoctrineExtensions with Symfony, you can follow the guidance presented in Symfony's documentation on how to register custom DQL functions.
Here is a sample code for using the DoctrineExtensions standalone:
<?php
$classLoader = new \Doctrine\Common\ClassLoader('DoctrineExtensions', '/path/to/extensions');
$classLoader->register();
This snippet is used to initialize the autoloader. For more comprehensive use cases, it is recommended to refer to the Doctrine DQL User Defined Functions documentation.
The Beberlei DoctrineExtensions documentation is not explicitly hosted on a separate platform. Instead, all the necessary information including installation, usage, and notes is available in the README file of its GitHub repository. The repository does provide a config directory with sample Symfony configurations. For a more detailed explanation of how to use DoctrineExtensions and user-defined functions, the official Doctrine DQL User Defined Functions documentation is also a useful resource.