GithubHelp home page GithubHelp logo

e-dschungel / checklinks Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 30 KB

PHP Wrapper Script for linkchecker to check multiple URLs and send reports via mail

Shell 14.68% PHP 71.42% Python 13.91%

checklinks's Introduction

checklinks

PHP Wrapper Script for linkchecker to check multiple URLs and send reports via mail if errors or warnings are found. Access to the proc_open PHP function is required. It uses PHPMailer for email sending and Process for executing command line programs.

Requirements

  • PHP > 7.2.5
  • enabled proc_open function
  • linkchecker executable

Installation

From Git

  • Clone this repo git clone https://github.com/e-dschungel/checklinks
  • Install dependencies using composer composer install --no-dev
  • Rename config/config.dist.php to config/config.conf.php and edit it according to your needs
  • Create url specific configuration (named like url, dots replaced with underscores, e.g. http://example.com => example_com.conf). Rename example_com.dist.conf and edit accordingly.)

From ZIP file

  • Download checklinks.zip (NOT Source Code (zip) or Source Code (tar.gz)) from https://github.com/e-dschungel/checklinks/releases/latest
  • Extract and upload it to your webserver
  • Rename config/config.dist.php to config/config.conf.php and edit it according to your needs
  • Create url specific configuration (named like url, dots replaced with underscores, e.g. http://example.com => example_com.conf). Rename example_com.dist.conf and edit accordingly.)

Configuration

The configuration is specific for a given URL (dots replaced with underscores).

variable description
$cl_config['linkcheckerPath'] path to linkchecker executable
$cl_config['URLs'] Array of URLs to check
$cl_config['subject'] Subject of the email
$cl_config['body'] Text of the email body
$cl_config['emailTo'] email adress of the recipient
$cl_config['emailFrom'] email adress shown as sender of the dump
$cl_config['emailBackend'] email backend,can be smtp oder sendmail
$cl_config['SMTPHost'] SMTP hostname
$cl_config['SMTPAuth'] use SMTP authentication? true or false
$cl_config['SMTPUsername'] SMTP username
$cl_config['SMTPPassword'] SMTP password
$cl_config['SMTPSecurity'] type of SMTP security setting, can be "starttls" or "smtps"
$cl_config['SMTPPort'] SMTP port

Changelog

Version 0.1

  • first public release

Version 0.2

  • update PHPMailer to 6.9.1
  • update dev dependencies

Version 0.3

  • remove shared configuration for all URLs
  • update dev dependencies
  • update process to 5.4.36

checklinks's People

Contributors

e-dschungel avatar

Stargazers

Elfangor avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.