PHP code example of powerapi / powerapi-php
1. Go to this page and download the library: Download powerapi/powerapi-php 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/ */
powerapi / powerapi-php example snippets
{
$student = PowerAPI\PowerAPI::authenticate("https://powerschool.example/", "username", "password");
} catch (PowerAPI\Exceptions\Authentication $e) {
die('Something went wrong! '.$e->getMessage());
}
foreach ($student->sections as $section) {
echo $section->name."\n";
}
$ composer