use Doctrine\ORM\EntityManager; use Doctrine\ORM\Mapping\ClassMetadata; $entityManager = EntityManager::create($connectionOptions, $config); $classMetadata = $entityManager->getClassMetaData(MyEntity::class); // Get the table name of MyEntity $tableName = $classMetadata->getTableName();In this example, we create a new EntityManager instance and pass in connection options and configuration. We then use the getClassMetaData method to retrieve the metadata for a "MyEntity" class. We can use this metadata to get the table name of MyEntity. The package library is Doctrine ORM.