Skip to main content
100%

new importfile

✓ Published0🌍 Public
Aallyraza
Last edited Nov 12, 2014
Created on Nov 12, 2014

This example demonstrates a file import and reconciliation workflow for insurance data, processing CSV or XLSX uploads through two distinct provider types (Omnisure and Paylink) and updating customer and collection records. The PHP class `ImportForm` uses the Yii2 framework’s model validation and file handling, with methods that generate a server-side filename, save the upload, and parse rows into customer records via `Customer::createFromMoxy` and `Collection::updateOrCreate`. It then reconciles collections by comparing imported IDs against existing database records, marking unmatched entries with a status update. The code relies on Yii’s ActiveQuery and database utilities, including `findAll` and `updateAll`, to manage persistence.

AI-generated description

Similar vizzes