This package integrate Doctrine ORM into le7 PHP MVC engine.
You need to setup database connection in ./config/db_doctrine.php file
You will can inject into your controllers EntityManagerInterface
<?php
namespace App\Controller\Web;
use Doctrine\ORM\EntityManagerInterface;
use Psr\Http\Message\ResponseInterface;
class IndexController
{
public function indexAction(EntityManagerInterface): ResponseInterface
{
// Use Entity Manager
}
}
You can use doctrine command-line tool this way
./cli.sh doctrine <doctrine options>