2017 © Pedro Peláez
 

project texas-comptroller-tools

Tools to get data from the Texas Comptroller's web site

image

teamzac/texas-comptroller-tools

Tools to get data from the Texas Comptroller's web site

  • Saturday, September 9, 2017
  • by teamzac
  • Repository
  • 1 Watchers
  • 0 Stars
  • 41 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 11 Versions
  • 0 % Grown

The README.md

This package is deprecated

Please see teamzac/texas-comptroller instead., (*1)

License

You're free to use this package (it's MIT-licensed) however you see fit., (*2)

Installation

You can install the package via composer:, (*3)

``` bash composer require teamzac/texas-comptroller-tools, (*4)


## Local Sales Tax Reports There are currently classes that support downloading two different local sales tax reports available on the Comptroller's site: the allocation payment detail report, and the allocation historical payments report. Both classes provide convenience methods for downloading reports for different entity types (cities, counties, transit authorities, and special districts). ### Payment Detail Reports Create a new report object ``` php $report = new TeamZac\TexasComptroller\SalesTax\AllocationReports\PaymentDetail;

Request a report for a given entity type with the appropriate search string. There are four different entity types provided by the Comptroller:, (*5)

``` php $data = $report->forCity('Austin')->get();, (*6)

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

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

$data = $report->forSpecialDistrict('Bexar Co ESD 3')->get();, (*9)


The return value will be an associative array, keyed by the date of the allocation period. Each value will be an associative array of the different payment components and their respective amounts: ```php [ 'YYYY-MM-01' => [ 'total-collections' => 12345.67, 'prior-period-collections' => 12345.67, 'current-period-collections' => 12345.67, ... 'net-payment' => 12345.67 ], ... ]

This report provides data for the most recent 24 months., (*10)

Historical Payment Reports

Create a new report object, (*11)

``` php $report = new TeamZac\TexasComptroller\SalesTax\AllocationReports\HistoricalPayments;, (*12)


Request a report for a given entity type with the appropriate search string. There are four different entity types provided by the Comptroller: ``` 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();

The return value will be an associative array, keyed by the date of the allocation period. Each value will be an associative array of the different payment components and their respective amounts:, (*13)

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

Although it's a bit overkill to nest the data so deeply, it was done to retain consistency with the results from the Payment Detail Report., (*14)

Comparison Summary Reports

Create a new report object, (*15)

``` php $report = new TeamZac\TexasComptroller\SalesTax\AllocationReports\ComparisonSummary;, (*16)


Request a report for a given entity type with the appropriate search string. There are four different entity types provided by the Comptroller: ``` php $data = $report->forCities()->get(); $data = $report->forCounties()->get(); $data = $report->forTransitAuthorities()->get(); $data = $report->forSpecialDistricts()->get();

The return value will be an associative array including the allocation period and an array of entities. Each entity will include the name, current amount, year-to-date amount, and the year-over-year change for each., (*17)

[
    'period' => 'YYYY-MM-01',
    'entities' => [
        [
            'entity' => 'Abbott',
            'amount' => 12345.67,
            'amount_delta' => 12345.67,
            'ytd' => 12345.67,
            'ytd_delta' => 12345.67
        ],
        ...
    ]
]

Exceptions

You should use the fluent report generator methods to create your request. If you fail to do so, you may receive an InvalidRequest exception, which you may catch., (*18)

Testing

bash $ composer test, (*19)

Security

If you discover any security related issues, please email open@teamzac.com instead of using the issue tracker., (*20)

About TeamZac

TeamZac is the web app development arm of eight20 consulting, specializing in apps that serve local governments. You can view more about us on our website., (*21)

License

The MIT License (MIT). Please see License File for more information., (*22)

The Versions

09/09 2017

dev-master

9999999-dev

Tools to get data from the Texas Comptroller's web site

  Sources   Download

MIT

The Requires

 

The Development Requires

sales tax openzac zactax comptroller

09/09 2017

2.0.0

2.0.0.0

Tools to get data from the Texas Comptroller's web site

  Sources   Download

MIT

The Requires

 

The Development Requires

sales tax openzac zactax comptroller

11/12 2016

v1.2.5

1.2.5.0

Tools to get data from the Texas Comptroller's web site

  Sources   Download

MIT

The Requires

 

The Development Requires

sales tax openzac zactax comptroller

18/11 2016

v1.2.4

1.2.4.0

Tools to get data from the Texas Comptroller's web site

  Sources   Download

MIT

The Requires

 

The Development Requires

sales tax openzac zactax comptroller

17/11 2016

v1.2.3

1.2.3.0

Tools to get data from the Texas Comptroller's web site

  Sources   Download

MIT

The Requires

 

The Development Requires

sales tax openzac zactax comptroller

16/11 2016

v1.2.2

1.2.2.0

Tools to get data from the Texas Comptroller's web site

  Sources   Download

MIT

The Requires

 

The Development Requires

sales tax openzac zactax comptroller

10/10 2016

v1.2.1

1.2.1.0

Tools to get data from the Texas Comptroller's web site

  Sources   Download

MIT

The Requires

 

The Development Requires

sales tax openzac zactax comptroller

04/09 2016

v1.2.0

1.2.0.0

Tools to get data from the Texas Comptroller's web site

  Sources   Download

MIT

The Requires

 

The Development Requires

sales tax openzac zactax comptroller

27/08 2016

v1.1.1

1.1.1.0

Tools to get data from the Texas Comptroller's web site

  Sources   Download

MIT

The Requires

 

The Development Requires

sales tax openzac zactax comptroller

26/08 2016

v1.1.0

1.1.0.0

Tools to get data from the Texas Comptroller's web site

  Sources   Download

MIT

The Requires

 

The Development Requires

sales tax openzac zactax comptroller

26/08 2016

v1.0.0

1.0.0.0

Tools to get data from the Texas Comptroller's web site

  Sources   Download

MIT

The Requires

 

The Development Requires

sales tax openzac zactax comptroller