Download the PHP package juliangut/slim-doctrine-middleware without Composer
On this page you can find all versions of the php package juliangut/slim-doctrine-middleware. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download juliangut/slim-doctrine-middleware
More information about juliangut/slim-doctrine-middleware
Files in juliangut/slim-doctrine-middleware
Package slim-doctrine-middleware
Short Description Slim Framework Doctrine middleware
License BSD-3-Clause
Homepage http://github.com/juliangut/slim-doctrine-middleware
Informations about the package slim-doctrine-middleware
Juliangut Slim Framework Doctrine handler middleware
Doctrine handler middleware for Slim Framework.
Slim3 version
Doctrine integration service for Slim3 can be found in its own repository juliangut/slim-doctrine
Installation
Best way to install is using Composer:
Then require_once the autoload file:
Usage
Just add as any other middleware.
Configuration
There are two ways to configure Doctrine Middleware
First by using doctrine key in Slim application configuration
Second way is assigning options directly to Doctrine Middleware
Available configurations
connectionarray of PDO configurationscache_driverarray with Doctrine cache configurationstypestring representing cache type,apc,xcache,memcache,redisorarrayhoststring representing caching daemon host, needed formemcacheandredis, defaults to '127.0.0.1'portstring representing caching daemon port, optionally available formemcache(defaults to 11211) andredis(defaults to 6379)
proxy_pathpath were Doctrine creates its proxy classes, defaults to /tmpannotation_filesarray of Doctrine annotations filesannotation_namespacesarray of Doctrine annotations namespacesannotation_autoloadersarray of Doctrine annotations autoloader callablesannotation_pathsarray of paths where to find annotated entity filesxml_pathsarray of paths where to find XML entity mapping filesyaml_pathsarray of paths where to find YAML entity mapping filesauto_generate_proxiesbool indicating whether Doctrine should auto-generate missing proxies (default: true)
Note:
annotation_paths, xml_paths or yaml_paths is needed by Doctrine to include a Metadata Driver
Contributing
Found a bug or have a feature request? Please open a new issue. Have a look at existing issues before
See file CONTRIBUTING.md
Contributors
License
Release under BSD-3-Clause License.
See file LICENSE included with the source code for a copy of the license terms