https://github.com/appstract/nova-horizon
Horizon statistics in Nova
https://github.com/appstract/nova-horizon
horizon laravel nova
Last synced: 19 days ago
JSON representation
Horizon statistics in Nova
- Host: GitHub
- URL: https://github.com/appstract/nova-horizon
- Owner: appstract
- License: mit
- Created: 2020-03-05T14:30:57.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-28T03:45:46.000Z (about 1 year ago)
- Last Synced: 2025-03-31T07:09:27.690Z (27 days ago)
- Topics: horizon, laravel, nova
- Language: Vue
- Homepage:
- Size: 3.45 MB
- Stars: 78
- Watchers: 5
- Forks: 5
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Nova Horizon
[](https://packagist.org/packages/appstract/nova-horizon)
[](https://packagist.org/packages/appstract/nova-horizon)
[](LICENSE.md)Add Horizon statistics to your Nova dashboard.

## Installation
You can install the package via composer:
``` bash
composer require appstract/nova-horizon
```## Usage
There are two ways to use this package. One is to enable the Horizon dashboard or tool in your application's `NovaServiceProvider`. This will add a new dashboard to Nova, shown in the screenshot above.
```php
class NovaServiceProvider extends NovaApplicationServiceProvider
{
protected function dashboards()
{
return [
new \Appstract\NovaHorizon\Dashboard,
];
}protected function tools()
{
return [
new \Appstract\NovaHorizon\Tool,
];
}
}
```Second way is by adding cards to the main dashboard or your own dashboard(s).
```php
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,
];
}
}
```## Contributing
Contributions are welcome, [thanks to y'all](https://github.com/appstract/nova-horizon/graphs/contributors) :)
## About Appstract
Appstract is a small team from The Netherlands. We create (open source) tools for Web Developers and write about related subjects on [Medium](https://medium.com/appstract). You can [follow us on Twitter](https://twitter.com/appstractnl).
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.