First, Magus checks the user-supplied fieldmaps.php in order to map CSV columns to their respective database columns. Then, Magus resolves the first parameter from the IoC container so it can be used as if it was a model. It then invokes the create method to insert it into the database after the input has been "mutated."
As described earlier, fieldmaps.php is simply a mapping from CSV column names to database column names. An example:
Mutators are a powerful part of Magus that allow for data manipulation prior to saving. In order to declare a Mutator, open up config.php, and add a key for the model which will be updated. Then, for each field that needs to be manipulated, declare a sub-key that points to a closure. To provide a clearer picture: