PHP code example of teamzac / texas-comptroller-tools

1. Go to this page and download the library: Download teamzac/texas-comptroller-tools 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/ */

    

teamzac / texas-comptroller-tools example snippets


[
    'YYYY-MM-01' => [
        'total-collections' => 12345.67,
        'prior-period-collections' => 12345.67,
        'current-period-collections' => 12345.67,
        ...
        'net-payment' => 12345.67
    ],
    ...
]

[
    'YYYY-MM-01' => [
        'net-payment' => 12345.67
    ],
    ...
]

[
    'period' => 'YYYY-MM-01',
    'entities' => [
        [
            'entity' => 'Abbott',
            'amount' => 12345.67,
            'amount_delta' => 12345.67,
            'ytd' => 12345.67,
            'ytd_delta' => 12345.67
        ],
        ...
    ]
]
 php
$report = new TeamZac\TexasComptroller\SalesTax\AllocationReports\PaymentDetail;
 php
$data = $report->forCity('Austin')->get();

$data = $report->forCounty('Parker')->get();

$data = $report->forTransitAuthority('Dallas MTA')->get();

$data = $report->forSpecialDistrict('Bexar Co ESD 3')->get();
 php
$report = new TeamZac\TexasComptroller\SalesTax\AllocationReports\HistoricalPayments;
 php
$data = $report->forCity('Austin')->get();

$data = $report->forCounty('Parker')->get();

$data = $report->forTransitAuthority('Dallas MTA')->get();

$data = $report->forSpecialDistrict('Bexar Co ESD 3')->get();
 php
$report = new TeamZac\TexasComptroller\SalesTax\AllocationReports\ComparisonSummary;
 php
$data = $report->forCities()->get();

$data = $report->forCounties()->get();

$data = $report->forTransitAuthorities()->get();

$data = $report->forSpecialDistricts()->get();