This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Steps used to setup the ~/src | |
1. Create a virtual disk on my external hard drive | |
Install the script https://gist.github.com/scottsb/479bebe8b4b86bf17e2d | |
mkdir /Volumes/SAMSUNG/disks/ | |
1.1. Review config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Function to validate if the phone number is Uk Mobile number | |
* Optinal first part: '+44' or '44', also a | |
* Optinal second part: '0' | |
* Mandatory: 7 followed by [1-9] excluding 0,2 followed by 8 digits | |
* Reference: https://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom | |
* | |
* @param $number | |
* @return bool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once __DIR__ . '/vendor/autoload.php'; | |
use Clue\React\Mq\Queue; | |
use Psr\Http\Message\ResponseInterface; | |
use React\Stream\ReadableResourceStream; | |
$loop = React\EventLoop\Loop::get(); | |
$browser = new React\Http\Browser($loop); |