You can download the Developer Documentation which explains the Simple LTI protocol and how to comply with the protocol.
You can download a set of sample source code in Java, Python, Perl, Php, and Ruby that shows now to handle both the client and server aspects of the protocol. The sample code is really just a set of building blocks. Each is self contained and simply runs from the command line.