2017 © Pedro Peláez
 

library external-link-purifier

image

nexuslinkservices/external-link-purifier

  • Friday, March 24, 2017
  • by nexuslinkservices
  • Repository
  • 1 Watchers
  • 0 Stars
  • 29 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

HOW TO USE - GUIDE:

Define true/false value to purify external or all links as per your need, (*1)

Latest Version Software License Scrutinizer Code Quality Build Status, (*2)

Installation

If you use composer, you can add this package by running, (*3)

composer require galiteintechnologies/external-link-purifier

Usage

i.e.: I want to remove external links from my content, so I need to define following variables in my configuration yaml file., (*4)

external_link:
    purify: true    
Note(s): 
1. If configuration yaml is not there in your project then the default configuration will be taken into consideration.
2. The bundle uses symfony yaml component to parse the yaml configuration.

Following is the reference code to make it working,, (*5)

/**
 * CODE

 * create a new object of LinkPurifier class
 * call purify method with 3 arguments
 * $content to purify links
 * $domain keep links of this domain and remove other external links (optional), If not specified remove all links
 * $purify true/false (optional)
 */

$linkPurifier = new LinkPurifier($pathToYaml);  //$pathToYaml is optional as mentioned earlier
$filteredContent = $linkPurifier->Purify($contentToBePurifyForLinks, $domainToKeep, $purify);

That's it with the bundle., (*6)

CONTRIBUTING:

Pull requests are always welcome., (*7)

The Versions

24/03 2017

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

  • php >=5.6.2

 

The Development Requires

by Nexuslink Services

31/08 2016

v1.2.2

1.2.2.0

  Sources   Download

MIT

The Requires

  • php >=5.6.2

 

The Development Requires

by Nexuslink Services

26/08 2016

v1.2.1

1.2.1.0

  Sources   Download

MIT

The Requires

  • php >=5.6.2

 

The Development Requires

by Nexuslink Services

24/08 2016

v1.1.1

1.1.1.0

  Sources   Download

MIT

The Requires

  • php >=5.6.2

 

The Development Requires

by Nexuslink Services

23/08 2016

v1.1.0

1.1.0.0

  Sources   Download

MIT

The Requires

  • php >=5.6.2

 

The Development Requires

by Nexuslink Services

23/08 2016

v1.0.0

1.0.0.0

  Sources   Download

MIT

The Requires

  • php >=5.6.2

 

The Development Requires

by Nexuslink Services