GithubHelp home page GithubHelp logo

redirectchecker's Introduction

Redirect Checker

Automated URL redirection checker

Features

  • Automate URL redirections tests for your application
  • Add origin and destination urls to ensure redirections are working properly
  • Seamless integration with your existing project
  • Simple YAML file to define tests

Installation and usage

  1. Install this component using Composer
$ composer require gorkalaucirica/redirect-checker
  1. Create your yaml file
# tests/redirections/example.yml
https://google.com/services: https://www.google.com/services/
http://google.es/preferences: https://www.google.es/preferences
http://support.google.com: https://support.google.com/
  1. Run the command
$ ./bin/redirect-checker yaml tests/redirections/example.yml
$ ./bin/redirect-checker yaml tests/redirections/example-non-absolute.yml --base-url="https://www.google.com" 

Licensing Options

License

redirectchecker's People

Contributors

evilbmp avatar gorkalaucirica avatar rrjanbiah avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

redirectchecker's Issues

For few URLs getting 'PHP Fatal error: Uncaught Error: Call to a member function uri() on null in'

Complete error:

PHP Notice:  Undefined offset: -1 in /mine/redirect-checker/vendor/gorkalaucirica/redirect-checker/src/GorkaLaucirica/RedirectChecker/Infrastructure/RedirectTraceProvider/Guzzle.php on line 66
PHP Fatal error:  Uncaught Error: Call to a member function uri() on null in /mine/redirect-checker/vendor/gorkalaucirica/redirect-checker/src/GorkaLaucirica/RedirectChecker/Infrastructure/RedirectTraceProvider/Guzzle.php:66
Stack trace:
#0 /mine/redirect-checker/vendor/gorkalaucirica/redirect-checker/src/GorkaLaucirica/RedirectChecker/Infrastructure/RedirectTraceProvider/Guzzle.php(37): GorkaLaucirica\RedirectChecker\Infrastructure\RedirectTraceProvider\Guzzle->replaceLastItemsStatusCode(Array, 404)
#1 /mine/redirect-checker/vendor/gorkalaucirica/redirect-checker/src/GorkaLaucirica/RedirectChecker/Application/Query/CheckRedirectionHandler.php(27): GorkaLaucirica\RedirectChecker\Infrastructure\RedirectTraceProvider\Guzzle->getRedirectionTrace(Object(GorkaLaucirica\RedirectChecker\Domain\Redirection))
#2 /mine/redirect-checker/vendor/gorkalaucirica/redirect-checker/src/GorkaLaucirica/RedirectChecker/Infrastructure/Ui/Cli/Symfony/CheckRedirectionFromYaml in /mine/redirect-checker/vendor/gorkalaucirica/redirect-checker/src/GorkaLaucirica/RedirectChecker/Infrastructure/RedirectTraceProvider/Guzzle.php on line 66

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.