PHP code example of pandora-una / exporta-rest

1. Go to this page and download the library: Download pandora-una/exporta-rest 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/ */

    

pandora-una / exporta-rest example snippets


		'exporta_rest' => array(
			'csv_template_dir_name' => 'relatorio-csv',
			'pdf_template_dir_name' => 'relatorio-pdf'
		),

    'zf-content-negotiation' => array(
        'controllers' => array(
            'Api\NomeDoController\Controller' => 'HalJsonExportacao'
        ),

Cód;Data;Nome;CPF;Dt. Nascimento;Valor;Forma de Pagto;Status;Pagamento;Pago;Dt. Crédito;Valor Crédito;Status Transação;Recibo de doação
 foreach ($this->payload->getCollection() as $item):

<html>
<body>
	<table>
		<thead>
			<tr>
				<td style="width: 30px">Cód</td>
				<td style="width: 40px">Data</td>
				<td style="width: 160px">Nome</td>
				<td style="width: 70px">CPF</td>
				<td style="width: 40px">Nasc</td>				
				<td style="width: 50px">Valor</td>
				<td style="width: 80px">Forma de Pagto</td>
				<td style="width: 80px">Status</td>
				<td style="width: 70px">Pagamento</td>
				<td style="width: 50px">Pago</td>
				<td style="width: 140px">Status Transação</td>
				<td style="width: 130px">Recibo de doação</td>
			</tr>
		</thead>
		<tbody>	
 foreach ($this->payload->getCollection() as $item):

 $item = $this->payload->entity; 

 $item = $this->payload->entity;