PHP code example of it-brains / laravel-aurora-solar
1. Go to this page and download the library: Download it-brains/laravel-aurora-solar 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/ */
it-brains / laravel-aurora-solar example snippets
Aurora::getTenantDetails();
use Aurora\Facades\Aurora;
use Aurora\Models\Project;
use Aurora\Enums\ProjectTypeEnum;
$auroraProject = Aurora::createProject(
Project::init()
->setName('The best project ever')
->setCustomerName('John', 'Doe')
->setLocation(
'4123 Aquastone Court, Bakersfield, CA, USA, 93313',
35.2673641,
-119.0491066
)
->setProjectType(ProjectTypeEnum::RESIDENTIAL)
->setExternalProviderId('Our internal unique project ID')
);
$designRequest = Aurora::createDesignRequest([
'project_id' => $auroraProject['id'],
'auto_accept' => true,
'sla' => 30,
]);
$designRequestId = $designRequest['id'];
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.