Skip to content

Instantly share code, notes, and snippets.

@pavlakis
Created March 30, 2013 23:12
Show Gist options
  • Save pavlakis/5278766 to your computer and use it in GitHub Desktop.
Save pavlakis/5278766 to your computer and use it in GitHub Desktop.
This is a basic hello world example for the composer tutorial. App/HelloWorld.php
<?php
namespace App;
class HelloWorld
{
private $msg = 'Hello World';
public function __construct($msg = '')
{
if('' !== $msg){
$this->msg = $msg;
}
}
public function __toString()
{
return $this->msg;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment