Skip to content

Commit

Permalink
Merge pull request #4 from vstelmakh/improve-readme
Browse files Browse the repository at this point in the history
Improve readme and git attributes
  • Loading branch information
vstelmakh authored Mar 14, 2020
2 parents 4c21233 + 03e68c7 commit c03bae3
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 9 deletions.
10 changes: 10 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.gitattributes export-ignore
.gitignore export-ignore

/.github export-ignore
/resources export-ignore
/tests export-ignore

phpcs.xml export-ignore
phpstan.neon export-ignore
phpunit.xml export-ignore
21 changes: 12 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,28 @@
# Url highlight
![Build status](https://github.com/vstelmakh/url-highlight/workflows/build/badge.svg?branch=master)
![PHP version](https://img.shields.io/packagist/php-v/vstelmakh/url-highlight)
![License](https://img.shields.io/github/license/vstelmakh/url-highlight)
![Url highlight](./resources/url-highlight-logo.svg)
---
[![Build status](https://github.com/vstelmakh/url-highlight/workflows/build/badge.svg?branch=master)](https://github.com/vstelmakh/url-highlight/actions)
[![PHP version](https://img.shields.io/packagist/php-v/vstelmakh/url-highlight)](https://www.php.net/)
[![License](https://img.shields.io/github/license/vstelmakh/url-highlight)](LICENSE)

PHP library to parse urls from string input. Current features:
**Url highlight** - PHP library to parse urls from string input. Current features:
- Check if string is url
- Parse urls from string
- Replace urls in string by html tags

## Installation
There are [Twig extension](https://github.com/vstelmakh/url-highlight-twig-extension) and [Symfony bundle](https://github.com/vstelmakh/url-highlight-symfony-bundle) available.

Install the latest version with:
Install the latest version with [composer](https://getcomposer.org/):
```bash
$ composer require vstelmakh/url-highlight
composer require vstelmakh/url-highlight
```
Also, there are
[![Twig](./resources/twig-logo.png) Twig extension](https://github.com/vstelmakh/url-highlight-twig-extension)
and [![Symfony](./resources/symfony-logo.png) Symfony bundle](https://github.com/vstelmakh/url-highlight-symfony-bundle) available.

## Setup
Just instantiate class object:
```php
<?php
require __DIR__ . '/vendor/autoload.php';

use VStelmakh\UrlHighlight\UrlHighlight;

Expand Down
Binary file added resources/symfony-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/twig-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions resources/url-highlight-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c03bae3

Please sign in to comment.