forked from Luracast/Restler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.html
63 lines (55 loc) · 2.57 KB
/
README.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!DOCTYPE html>
<html>
<head>
<title>Luracast Restler 2.0 Example:- CRUD</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="examples/resources/markdown.css"/>
</head>
<body>
<article>
<h1>Luracast Restler 2.0</h1>
<p>Restler is a simple and effective multi-protocol REST API Server written in PHP.
Just deal with your business logic in php, restler will take care of the REST!</p>
<ul>
<li><a href="http://luracast.com/products/restler/" target="_blank">Developer Home</a></li>
<li><a href="http://bit.ly/RestlerLiveExamples" target="_blank">Live Examples</a></li>
<li><a href="http://bit.ly/TakeCareOfREST" target="_blank">Taking Care of the REST - Presentation</a></li>
<li><a href="http://bit.ly/SingMood" target="_blank">Open Sourced Real World Example - SingMood</a></li>
<li><a href="http://twitter.com/Luracast" target="_blank">Updates on Twitter</a></li>
</ul>
<h2>Features</h2>
<ul>
<li>Light weight</li>
<li>Flexible</li>
<li>Customizable</li>
<li>Supports HTTP request methods GET, POST, PUT, and DELETE</li>
<li>Clients can use X-HTTP-Method-Override header</li>
<li>Two way format conversion</li>
<li>Pluggable Formatters</li>
<li>Comes with JSON, XML, Yaml, Amf, and Plist(both XML and Binary) formats</li>
<li>Pluggable Authentication schemes</li>
<li>Comes with many <a href="http://bit.ly/RestlerLiveExamples" target="_blank">Examples</a>
that can be tried on your localhost to get started</li>
<li>URL to Method mapping</li>
<li>URL part to Method parameter mapping</li>
<li>Supports URLEncoded format for simplified input</li>
<li>Query parameters to Method parameter mapping</li>
<li>Source code distributed under LGPL</li>
</ul>
<h2>Changes from Restler 1.0</h2>
<p>Restler 2.0 is a major rewrite to use convention over configuration and it is optimized
for performance. Here are some of the major changes and improvements</p>
<ul>
<li>PHPDoc comments to map a method to URI is now optional.</li>
<li>All public methods that does not begin with an underscore are mapped
automatically to the method name (<code>gateway\classname\methodname\param1\...</code>)</li>
<li>If we do not specify the second parameter for <code>$restler->addAPIClass</code> it will be mapped to the
class name instead of mapping it to the root</li>
<li>Restler 2 is written for PHP 5.3 and above but it make use of compat.php and work on
any version of PHP starting from PHP 5.0</li>
</ul>
<p>more information is available on the
<a href="http://luracast.com/products/restler/features/" target="_blank">features page</a>
</article>
</body>
</html></p>