Download the PHP package avolle/cakephp-deadlinks without Composer
On this page you can find all versions of the php package avolle/cakephp-deadlinks. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download avolle/cakephp-deadlinks
More information about avolle/cakephp-deadlinks
Files in avolle/cakephp-deadlinks
Package cakephp-deadlinks
Short Description CakePHP Plugin to search database entries for dead links
License MIT
Informations about the package cakephp-deadlinks
Deadlinks CakePHP Plugin
Scan links inside your database records to make sure they're not dead.
The links you once inserted into your database may not work in the future. This plugin makes sure all your links are well and alive. If any links are found to be dead, the results can be ouput through various methods.
Output methods:
- Terminal
- Log file
Version map:
Plugin | Branch | Cake | PHP |
---|---|---|---|
2.x | main | 5.x | ^8.1 |
1.x | 1.x | 4.x | ^7.4 | ^8.0 |
Installation
composer require avolle/cakephp-deadlinks
Usage
Add a config file in your app config folder, describing which tables and fields to scan. Optionally you can insert an email recipient to receive results when selecting the mail ouput method.
Example config file (/config/deadlinks.php
):
This config file will scan the following tables and fields:
- Files
- linkOne
- linkTwo
- Links
- link
- Resources
- link
Add the plugin in your src/Application.php
file. Put it inside the bootstrapCli method
To run the scanner, execute this command in your terminal
- Output in terminal:
bin\cake scan -t
- Output to log file:
bin\cake scan -l
- Output to an email:
bin\cake scan -m
You can also ouput several methods. For both terminal and log file, run bin\cake scan -t -l
.
For help, run bin\cake scan -h