Skip to content

Instantly share code, notes, and snippets.

View ranm8's full-sized avatar

Ran Mizrahi ranm8

View GitHub Profile
@ranm8
ranm8 / Instance.php
Created February 28, 2013 12:50
Wix Instance class
<?php
namespace Wix\BaseBundle\Instance;
/**
* A class that represents a decoded instance and provides information on that instance.
*/
class Instance
{
/**
@ranm8
ranm8 / Decoder.php
Last active December 14, 2015 08:18
Wix Instance Decoder and Instance
<?php
namespace Wix\BaseBundle\Instance;
use Wix\BaseBundle\Exception\InvalidInstanceException;
use Wix\BaseBundle\Exception\MissingInstanceException;
/**
* A service that decodes Wix instances. It has one public method: parse. It accepts a Wix instance and returns an
* Instance object that provides information about the decoded instance.
<?php
if (isset($_GET['hi'])) {
echo 'hi';
}
?>
<?php
if (isset($_GET['hi'])) {
echo 'hi';
}
?>