Lead assignment rule support given for single create and bulk create of records
In single and bulk record creation, lead assignment rule can be executed.
Ex.
$trigger=null;
$larid="430000000223";// lead assignment rule id
$bulkResponse=$moduleInstance->createRecords($recordInstanceArray,$trigger,$larid);