Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/appstract/nova-horizon
Horizon statistics in Nova
https://github.com/appstract/nova-horizon
horizon laravel nova
Last synced: 6 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 (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-28T03:45:46.000Z (10 months ago)
- Last Synced: 2025-01-14T05:09:37.539Z (13 days ago)
- Topics: horizon, laravel, nova
- Language: Vue
- Homepage:
- Size: 3.45 MB
- Stars: 78
- Watchers: 6
- Forks: 5
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Nova Horizon
[![Latest Version on Packagist](https://img.shields.io/packagist/v/appstract/nova-horizon.svg?style=flat-square)](https://packagist.org/packages/appstract/nova-horizon)
[![Total Downloads](https://img.shields.io/packagist/dt/appstract/nova-horizon.svg?style=flat-square)](https://packagist.org/packages/appstract/nova-horizon)
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)Add Horizon statistics to your Nova dashboard.
![dashboard](https://appstract.github.io/nova-horizon/docs/dashboard.png)
## 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.