定制 kmayo-ss/check-source-urls 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kmayo-ss/check-source-urls

Composer 安装命令:

composer require kmayo-ss/check-source-urls

包简介

Adds a task to find broken links in module source code, as well as a model admin for the results

README 文档

README

Introduction

The check source URLs module is to review the source code in a module or a directory to find any broken links. When the module is first installed it obtains a list of top level domains from http://data.iana.org/TLD/tlds-alpha-by-domain.txt To review a module a dev task has been created which can be run to check urls in the source code of php, JavaScript, SilverStripe templates and MarkDown files. It need the php module curl to be installed and it records all the suspected broken urls it finds in a table.

The list it returns can not be guaranteed but it gives a good indication of broken urls.

Maintainer Contact

    * Kirk Mayo kirk (at) silverstripe (dot) com

Requirements

    * SilverStripe 3.0 +

Features

  • Add a model admin for broken links
  • Add a task to track source code broken links

Installation

  1. Download the module form GitHub (Composer support to be added)
  2. Extract the file (if you are on windows try 7-zip for extracting tar.gz files
  3. Make sure the folder after being extracted is named 'check-source-urls'
  4. Place this directory in your sites root directory. This is the one with framework and cms in it.
  5. Run in your browser - /dev/build to rebuild the database.
  6. You should see a new menu called Broken URLs
  7. Run the following task http://path.to.silverstripe/BrokenScriptsURLS?module=framework to check the framework module for broken source code links

Dev task

Run the following task http://path.to.silverstripe/BrokenScriptsURLS?module=framework to check your site for broken source code links. To ignore certain directories add the param excludeDir=/directory/to/exclude as per the example below

http://localhost/brokenURLs/dev/tasks/BrokenScriptsURLS?module=framework&excludeDir=framework/docs/en/changelogs

Skipping Domains

By default certain domains are skipped like example.com and mysite.com to see or edit the full list view the skipDomains property of the BrokenScriptsURL class in code/tasks/BrokenScriptsURLS.php

Disable the Broken URL model admin

To disable the Broken URLs menu add the following code to mysite/_config.php

CMSMenu::remove_menu_item('BrokenURLModelAdmin');

TODO

Add support for Punycode top level domains.

Add multi language support

统计信息

  • 总下载量: 19
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2014-02-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固