- 27" iMac, late 2013
- 3.2 GHz Intel Core i5
- 8 GB 1600 MHz DDR3
- PHP
memory_limit
of 128MB
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
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "hashicorp/precise64" | |
config.vm.provision "shell", inline: <<-shell | |
echo "Installing apt packages" | |
apt-get install curl git python-software-properties screen vim -y --force-yes | |
echo "Installing HHVM" |
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 ipv4AddressData() | |
{ | |
// address isValid | |
return array( | |
'Single digit 0' => array('0.0.0.0', true), | |
'Single digit 1' => array('1.1.1.1', true), | |
'Single digit 9' => array('9.9.9.9', true), | |
'Double digit 10' => array('10.10.10.10', true), |
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
#!/usr/bin/env php | |
<?php | |
$header = <<<'EOD' | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> |
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 | |
/** | |
* Firstly, some background information on reflection. | |
* | |
* Reflection is a way to find out information about objects, methods, | |
* functions, and other language constructs at runtime. In the case of PHP, it | |
* can also be used to change the behaviour of these constructs. One of the ways | |
* it can do this is to tell PHP to ignore 'private' and 'protected' access | |
* modifiers. |
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 | |
class Version1 extends AbstractApiDefinition | |
{ | |
public function configure() | |
{ | |
$this->setMajorVersion(1); | |
$this->add('kjdfgiuhdfg', $endPoint); | |
$this->add('kjdfgiuhdfg', $endPoint); |
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
{ | |
"hash": "9eecffb49244d2f6f97097ad928bb43c", | |
"packages": [ | |
], | |
"packages-dev": [ | |
{ | |
"name": "eloquent/enumeration", | |
"version": "3.0.1", | |
"source": { |
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 | |
namespace Foo\Bar; | |
use Typhoon\Foo\Bar\BazTyphoon; | |
class Baz | |
{ | |
public function __construct() | |
{ | |
$this->typhoon = Typhoon::getValidator(__CLASS__, func_get_args()); |