Skip to content

Commit

Permalink
Document how to trigger the library autoload mechanism in the example
Browse files Browse the repository at this point in the history
  • Loading branch information
drslump committed Mar 13, 2012
1 parent 0490fc2 commit da4a455
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ For more information see the [included man pages](http://drslump.github.com/Prot

## Example usage

require_once 'DrSlump/Protobuf.php';
\DrSlump\Protobuf::autoload();

$person = new Tutorial\Person();
$person->name = 'DrSlump';
$person->setId(12);
Expand Down

0 comments on commit da4a455

Please sign in to comment.