PHP code example of wiserwebsolutions / laravel-pde-client
1. Go to this page and download the library: Download wiserwebsolutions/laravel-pde-client 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/ */
wiserwebsolutions / laravel-pde-client example snippets
use WiserWebSolutions\PDEClient\Facades\PDE;
$summaries = PDE::district('124157203')->year('2024-2025')
->financials()->budget()->revenues()->get();
$enrollment = PDE::district('124157203')->year('2024-2025')
->enrollments()->sole();
$results = PDE::district('124157203')->year('2024-2025')
->assessments()->pssa()->allStudents()->get();
$financials = PDE::district('124157203')->year('2019-2020')->financials()
->budgetAndActual()->revenues()->account('6111')->sole();
$account = $financials->accounts->sole();
$budget = $account->budget;
$actual = $account->actual;
$variance = $account->variance(); // actual minus budget, or null if either is missing