Skip to content

Add Basic Vagrant box for dev. #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
language: php

sudo: false
dist: xenial

php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3

matrix:
fast_finish: true
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
=========

Unreleased
----------

* Add Vagrant Box

1.1.4
-----

Expand Down
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
Linkify
=======
Linkify Fork
============

[![Build Status](https://secure.travis-ci.org/misd-service-development/php-linkify.png)](http://travis-ci.org/misd-service-development/php-linkify)
[![Build Status](https://api.travis-ci.org/JMB-Technology-Limited/php-linkify.png)](http://travis-ci.org/misd-service-development/php-linkify)

Converts URLs and email addresses into clickable links. It works on both snippets of HTML (or plain text) and complete HTML pages.

There are many regex variations shared on the internet for performing this task, but few are robust. Linkify contains a large number of unit tests to counter this.

It does not cover every possible valid-yet-never-used URLs and email addresses in order to handle 'real world' usage (eg no 'gopher://'). This means, for example, that it copes better with punctuation errors.

It was forked in March 2019 as the original maintainers have stopped responding. See https://github.com/misd-service-development/php-linkify

Authors
-------

* Chris Wilkinson
* JMB Technology https://www.jmbtechnology.co.uk/

It uses regex based on John Gruber's [Improved Liberal, Accurate Regex Pattern for Matching URLs](http://daringfireball.net/2010/07/improved_regex_for_matching_urls).

Expand Down Expand Up @@ -91,3 +94,8 @@ $linkify = new \Misd\Linkify\Linkify(array('callback' => function($url, $caption
}));
echo $linkify->process('This link will be converted to bold: www.example.com.'));
```

Developers
----------

There is a vagrant box. Simply ssh in and type `test` to test.
24 changes: 24 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure(2) do |config|

config.vm.box = "boxcutter/ubuntu1604"

config.vm.define "app" do |normal|

config.vm.synced_folder ".", "/vagrant", :owner=> 'vagrant', :group=>'users', :mount_options => ['dmode=777', 'fmode=777']

config.vm.provider "virtualbox" do |vb|
# Display the VirtualBox GUI when booting the machine
vb.gui = false

# Customize the amount of memory on the VM:
vb.memory = "512"
end

config.vm.provision :shell, path: "vagrant/bootstrap.sh"

end

end
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "misd/linkify",
"name": "jmbtechnologylimited/linkify",
"type": "library",
"description": "Converts URLs and email addresses in text into HTML links",
"keywords": ["url", "email address", "convert", "link"],
"homepage": "https://github.com/misd-service-development/php-linkify",
"homepage": "https://github.com/JMB-Technology-Limited/php-linkify",
"license": "MIT",
"support": {
"issues": "https://github.com/misd-service-development/php-linkify/issues"
"issues": "https://github.com/JMB-Technology-Limited/php-linkify/issues"
},
"require": {
"php": ">=5.3.0"
"php": ">=7.0.0"
},
"require-dev": {
"phpunit/phpunit": "^4.0 || ^5.0"
Expand Down
8 changes: 8 additions & 0 deletions vagrant/bootstrap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash


sudo apt-get update
sudo apt-get install -y php-cli php-mbstring php-intl composer zip php-zip php-xml

echo "cd /vagrant" >> /home/vagrant/.bashrc
echo "alias test=\"/vagrant/vendor/bin/phpunit -c /vagrant/\"" >> /home/vagrant/.bashrc