src/Session.php
public function globalise($alias = 'Session')
	{
		// Create the alias name
		if (substr($alias, 0, 1) != '\\')
		{
			// This ensures the alias is created in the global namespace.
			$alias = '\\'.$alias;
		}

		// Check if a class already exists
		if (class_exists($alias))
		{
			// Bail out, a class already exists with the same name.
			throw new RuntimeException('Class already exists!');
		}

		// Create the alias
		class_alias('\Gears\Session', $alias);

		// Save our instance
		self::$instance = $this;
	}
public function globalise($alias = 'Session')
	{
		// Create the alias name
		if (substr($alias, 0, 1) != '\\')
		{
			// This ensures the alias is created in the global namespace.
			$alias = '\\'.$alias;
		}

		// Check if a class already exists
		if (class_exists($alias))
		{
			// Bail out, a class already exists with the same name.
			throw new RuntimeException('Class already exists!');
		}

		// Create the alias
		class_alias('\Gears\Session', $alias);

		// Save our instance
		self::$instance = $this;
	}
Method: globalise
=========================================================================
Now in a normal laravel application you can call the session api like so:

```php
Session::push('key', 'value');
```

This is because laravel has the IoC container with Service Providers and
Facades and other intresting things that work some magic to set this up
for you. Have a look in you main app.php config file and checkout the
aliases section.

If you want to be able to do the same in your
application you need to call this method.

Parameters:
-------------------------------------------------------------------------
- $alias: This is the name of the alias to create. Defaults to Session.

Returns:
-------------------------------------------------------------------------
void

Throws:
-------------------------------------------------------------------------
- RuntimeException: When a class of the same name as the alias
already exists.