https://github.com/code16/sharp-ohdear-broken-links
https://github.com/code16/sharp-ohdear-broken-links
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/code16/sharp-ohdear-broken-links
- Owner: code16
- License: mit
- Created: 2023-05-25T08:30:53.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-10T12:57:28.000Z (4 months ago)
- Last Synced: 2025-03-10T13:41:46.363Z (4 months ago)
- Language: PHP
- Size: 27.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
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.phpreturn [
// ...'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.