An open API service indexing awesome lists of open source software.

https://github.com/code16/sharp-ohdear-broken-links


https://github.com/code16/sharp-ohdear-broken-links

Last synced: 15 days ago
JSON representation

Awesome Lists containing this project

README

        

## Installation

```bash
composer require code16/sharp-ohdear-broken-links
```

## Usage

This package should only be added on a project that already have an OhDear monitoring setup. It will use the config value of `schedule-monitor.oh_dear.site_id`.

Add in `config/sharp.php`:

```php
// config/sharp.php

return [
// ...

'entities' => [
// ...
'brokenLinks' => Code16\SharpOhdearBrokenLinks\Sharp\Entities\BrokenLinkEntity::class,
],
```

and add in sharp menu file:

```php
class AppSharpMenu extends SharpMenu
{
public function build(): self
{
// [...]
return $this
->addEntityLink('brokenLinks', 'Broken links', 'fa-chain-broken');
}
}
```

## Credits

- [Arnaud Becher](https://github.com/smknstd)
- [All Contributors](../../contributors)

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.