From 84fdd45e723f17fc3cea1dae003eb89e7cb9e7b2 Mon Sep 17 00:00:00 2001 From: Volodymyr Stelmakh Date: Sat, 14 Mar 2020 15:21:44 +0100 Subject: [PATCH 1/6] add composer url --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 45cf6a5..e840616 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ PHP library to parse urls from string input. Current features: ## 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 ``` From 0a09cdc1a3969043b4a6540eb3af48345b4cbe45 Mon Sep 17 00:00:00 2001 From: Volodymyr Stelmakh Date: Sat, 14 Mar 2020 15:27:23 +0100 Subject: [PATCH 2/6] add require composer autoload to setup example --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index e840616..cc672e7 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ $ composer require vstelmakh/url-highlight Just instantiate class object: ```php Date: Sat, 14 Mar 2020 16:05:56 +0100 Subject: [PATCH 3/6] add symfony and twig logos to readme --- README.md | 5 +++-- resources/symfony-logo.png | Bin 0 -> 284 bytes resources/twig-logo.png | Bin 0 -> 256 bytes 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 resources/symfony-logo.png create mode 100644 resources/twig-logo.png diff --git a/README.md b/README.md index cc672e7..a5dfd4b 100644 --- a/README.md +++ b/README.md @@ -9,12 +9,13 @@ PHP library to parse urls from string input. Current features: - 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 [composer](https://getcomposer.org/): ```bash $ 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: diff --git a/resources/symfony-logo.png b/resources/symfony-logo.png new file mode 100644 index 0000000000000000000000000000000000000000..1c573247d85d370b51e6b25e04f78976a2884603 GIT binary patch literal 284 zcmV+%0ptFOP)g)@Vv~5{r&p+`tfV^!DiL@!Zegw)_0}_4w}f`ReQR*W>QedoQm z%FmYY;KS79yxQQm%-^ua)TzVNoV(SLvB!#}x@?E1WRk62f}>QHvQUbxHh`iw zDNVK|0000_NklnX3 Date: Sat, 14 Mar 2020 16:35:46 +0100 Subject: [PATCH 4/6] add url highlight logo --- README.md | 7 ++++--- resources/url-highlight-logo.svg | 17 +++++++++++++++++ 2 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 resources/url-highlight-logo.svg diff --git a/README.md b/README.md index a5dfd4b..3dcf26a 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,10 @@ -# Url highlight +![Url highlight](./resources/url-highlight-logo.svg) +--- ![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) -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 @@ -11,7 +12,7 @@ PHP library to parse urls from string input. Current features: ## Installation 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) diff --git a/resources/url-highlight-logo.svg b/resources/url-highlight-logo.svg new file mode 100644 index 0000000..4c75c0b --- /dev/null +++ b/resources/url-highlight-logo.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + From 655afeb5b44fff4f150777ba26cde2a170925ae2 Mon Sep 17 00:00:00 2001 From: Volodymyr Stelmakh Date: Sat, 14 Mar 2020 17:30:33 +0100 Subject: [PATCH 5/6] add badges links --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3dcf26a..c13459b 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ ![Url highlight](./resources/url-highlight-logo.svg) --- -![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) +[![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) **Url highlight** - PHP library to parse urls from string input. Current features: - Check if string is url From 03e68c715a9599b69efe06df9dee9061de55f501 Mon Sep 17 00:00:00 2001 From: Volodymyr Stelmakh Date: Sat, 14 Mar 2020 17:54:11 +0100 Subject: [PATCH 6/6] add gitattributes --- .gitattributes | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..d3c7afe --- /dev/null +++ b/.gitattributes @@ -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