2017 © Pedro Peláez
 

jarvis-skill doctrineorm-skill

image

mickaelandrieu/doctrineorm-skill

  • Tuesday, February 2, 2016
  • by mickaelandrieu
  • Repository
  • 0 Watchers
  • 0 Stars
  • 11 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

DBAL & Doctrine integration in Jarvis micro framework

Installation

you need to install it using composer and then be sure that this configuration is available when Jarvis Application is started:, (*1)

<?php
/* config.php */
$config = [
    'doctrine' => [
        'db' => [
            'dbname' => 'backbee',
            'user' => 'root',
            'password' => 'A1nges6!',
            'host' => 'localhost',
            'driver' => 'pdo_mysql',
        ],
        'orm' => [
            'debug' => false,
            'entity_path' => __DIR__.'/src/Entity'
        ]
    ]
];

For instance, you can create a config.php file at the root of your project and then require or include it in your front controller., (*2)

<?php

require_once('./vendor/autoload.php');
require_once('./config.php');

use Jarvis\Jarvis;
/* ... */

$response = $jarvis->analyze();

$response->send();

The Versions

02/02 2016

dev-master

9999999-dev

  Sources   Download

The Requires

 

The Development Requires