PHP code example of fruivita / corporate

1. Go to this page and download the library: Download fruivita/corporate 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/ */

    

fruivita / corporate example snippets


use FruiVita\Corporate\Facades\Corporate;

Corporate::import($file_path);

use FruiVita\Corporate\Facades\Corporate;

/**
 * @param string $file_path full path do arquivo XML
 * 
 * @throws \FruiVita\Corporate\Exceptions\FileNotReadableException
 * @throws \FruiVita\Corporate\Exceptions\UnsupportedFileTypeException
 *
 * @return void
 */
Corporate::import($file_path);
bash
    php artisan vendor:publish --provider='FruiVita\Corporate\CorporateServiceProvider' --tag='migrations'
    
bash
    php artisan vendor:publish --provider='FruiVita\Corporate\CorporateServiceProvider' --tag='config'
    
bash
    php artisan vendor:publish --provider='FruiVita\Corporate\CorporateServiceProvider' --tag='lang'