This is a class that can split BIG SQL file or string as iterator so that can help us save memory when importing SQL to database.
Composer version see here: https://github.com/asika32764/sql-splitter
$it = SqlSplitter::splitFromFile(__DIR__ . '/path/to/db.sql');