1. Go to this page and download the library: Download appstract/nova-horizon 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/ */
appstract / nova-horizon example snippets
class NovaServiceProvider extends NovaApplicationServiceProvider
{
protected function dashboards()
{
return [
new \Appstract\NovaHorizon\Dashboard,
];
}
protected function tools()
{
return [
new \Appstract\NovaHorizon\Tool,
];
}
}
class Main extends Dashboard
{
public function cards()
{
return [
// Like the dashboard
new \Appstract\NovaHorizon\Cards\Stats,
new \Appstract\NovaHorizon\Cards\Workload,
new \Appstract\NovaHorizon\Cards\PendingJobs,
new \Appstract\NovaHorizon\Cards\FailedJobs,
new \Appstract\NovaHorizon\Cards\CompletedJobs,
// Stats as seperate cards
new \Appstract\NovaHorizon\Cards\JobsPerMinute,
new \Appstract\NovaHorizon\Cards\RecentJobsCount,
new \Appstract\NovaHorizon\Cards\FailedJobsCount,
new \Appstract\NovaHorizon\Cards\Status,
new \Appstract\NovaHorizon\Cards\TotalProcesses,
new \Appstract\NovaHorizon\Cards\MaxWaitTime,
new \Appstract\NovaHorizon\Cards\MaxRuntime,
new \Appstract\NovaHorizon\Cards\MaxThroughput,
];
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.