PHP code example of vasildakov / expressive-doctrine-orm

1. Go to this page and download the library: Download vasildakov/expressive-doctrine-orm library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

vasildakov / expressive-doctrine-orm example snippets



return [
    'doctrine' => [
        'connection' => [
            // default connection
            'orm_default' => [
                'driverClass' => Doctrine\DBAL\Driver\PDOMySql\Driver::class,
                'params' => [
                    'driver'   => 'pdo_mysql',
                    'host'     => '127.0.0.1',
                    'port'     => '3306',
                    'dbname'   => 'database',
                    'user'     => 'username',
                    'password' => 'password',
                    'charset'  => 'UTF8',
                ],
            ],
        ],
    ],
];