Add another form builder
Contact Form 7 is handled by one small adapter. A new adapter only has to turn its plugin's submission into a context array and call one function:
$id = \NBWPAS\FEM\Entries\EntryService::capture( array(
'builder' => 'myforms', // short slug
'form_key' => 42, // the form's ID in that plugin
'form_title' => 'Contact us',
'fields' => array( 'email' => array( 'type' => 'email', 'label' => 'Email' ) ),
'posted' => array( 'email' => 'a@example.com' ),
'files' => array(), // field => path|paths
'remote_ip' => '', 'user_agent' => '', 'url' => '', 'post_id' => 0, 'user_id' => 0,
'timestamp' => time(),
'posted_hash' => '',
) );
It returns the entry ID or a WP_Error (nbwpas_fem_duplicate for a retry, nbwpas_fem_skipped when capture is off). The settings for IP, device, files and duplicates apply automatically.