# laravel-horizon-watcher

> This package includes a command called laravel-horizon-watcher that will start the Horizon service and automatically restart it whenever a PHP file is created, modified, or deleted. It can be used with any Laravel application without requiring any addit

Latest version **1.0.3** (published 2022-12-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install laravel-horizon-watcher
pnpm add laravel-horizon-watcher
yarn add laravel-horizon-watcher
bun add laravel-horizon-watcher
```

Provides the command `laravel-horizon-watcher`.

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2022-12-14 |
| First published | 2022-12-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 5 |
| Unpacked size | 71.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 18 |
| Maintainers | demirjs |

## Links

- npm: https://www.npmjs.com/package/laravel-horizon-watcher
- Repository: https://github.com/hsndmr/laravel-horizon-watcher
- Homepage: https://github.com/hsndmr/laravel-horizon-watcher#readme
- Issues: https://github.com/hsndmr/laravel-horizon-watcher/issues
- npm.io page: https://npm.io/package/laravel-horizon-watcher

## Dependencies (5)

- [yargs](https://npm.io/package/yargs.md) ^17.6.2
- [colors](https://npm.io/package/colors.md) ^1.4.0
- [chokidar](https://npm.io/package/chokidar.md) ^3.5.3
- [cli-color](https://npm.io/package/cli-color.md) ^2.0.3
- [@types/yargs](https://npm.io/package/@types/yargs.md) ^17.0.15

## Recent versions

- 1.0.3 (latest) — 2022-12-14
- 1.0.1 — 2022-12-12
- 1.0.0 — 2022-12-12

## README

# Laravel Horizon Watcher

This package includes a command called laravel-horizon-watcher that
will start the Horizon service and automatically restart it whenever 
a PHP file is created, modified, or deleted. 
It can be used with any Laravel application without requiring any additional configuration.
This package is inspired by https://github.com/spatie/laravel-horizon-watcher

## Installation

```bash
npm i -g laravel-horizon-watcher
```

## Usage

Run this command in the root directory of your Laravel application:

```bash
laravel-horizon-watcher start
```

## Custom Php Interpreter

If you want to use a custom php interpreter, you can use the `--php` option:

```bash
laravel-horizon-watcher start --php="/usr/bin/php7.4"
```

## Custom Paths to Watch

If you want to watch a custom path, you can use the `--path` option:

```bash
laravel-horizon-watcher start --paths="app,config,.env"
```

---
_Source: https://npm.io/package/laravel-horizon-watcher · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
