friartuck6000 / doctrine-wp-bundle
A Symfony bundle for handling WordPress data with Doctrine
Installs: 43
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.5
- friartuck6000/phpass: ^0.3
- rikbruil/doctrine-specification: ^1.0
Requires (Dev)
- symfony/symfony: ^2.8|^3.0
This package is not auto-updated.
Last update: 2024-11-09 19:52:25 UTC
README
A Symfony bundle for handling WordPress data with Doctrine.
Requirements
- PHP 5.5+
- Symfony 2.8+
Installation
-
Install with Composer:
composer install friartuck6000/doctrine-wp-bundle
-
Register the bundle in your
AppKernel.php
:// ... class AppKernel extends Kernel { public function registerBundles() { $bundles = [ // ... new Ft6k\Bundle\WpDoctrineBundle\WpDoctrineBundle(), // ... ]; return $bundles; } }
-
Update your
config.yml
:# app/config/config.yml # Bundle configuration wp_doctrine: table_prefix: 'wp_' # Doctrine mapping configuration doctrine: # ... orm: # ... entity_managers: # some_em: mappings: WpDoctrineBundle: ~ # ...