PHP code example of mralston / epvs
1. Go to this page and download the library: Download mralston/epvs library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mralston / epvs example snippets
use Mralston\Epvs\Facades\Epvs;
$validations = Epvs::getValidations(); // Illuminate\Support\Collection
$validation = Epvs::showValidation(123); // Mralston\Epvs\Models\Validation
$newValidation = Epvs::createValidation([ // Mralston\Epvs\Models\Validation
'product_type_id' => 234,
'customer_first_name' => 'Test Michael',
'customer_last_name' => 'Test Burnham',
'customer_phone' => '01234567890',
'customer_email' => '[email protected] ',
'installation_address_line_1' => 'USS Discovery',
'installation_address_line_2' => 'null',
'installation_address_line_3' => 'null',
'installation_area_town' => 'Space',
'installation_county' => 'Cosmos',
'installation_postcode' => 'SP4 0CE',
'payment_method_id' => 2,
'finance_lender_id' => 9,
'finance_reference' => '54321-0987',
'finance_term_length' => 36,
'finance_broker_id' => 8,
'insurance_provider_id' => 6,
'ibg_policy_number' => '1234',
'sales_person_name' => 'Gabriel Lorca',
'total_contract_value' => 15123,
'deposit_paid' => 650,
'date_contract_signed' => '2024-05-03',
'file_empty_warning' => 1,
'file_tokens' => [],
]);
bash
php artisan vendor:publish --tag=epvs-config
bash
$ php artisan epvs:webhooks