-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 1005ee5
Showing
44 changed files
with
4,365 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Copyright (c) 2013 Titouan Galopin | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is furnished | ||
to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
Yampee Annotations: a PHP library that understand annotations | ||
============================================================= | ||
|
||
What is Yampee Annotations ? | ||
---------------------------- | ||
|
||
Yampee Annotations is a PHP library that parses annotations in DocBlocks comments and converts them to | ||
PHP objects. | ||
|
||
An example ? | ||
|
||
``` php | ||
<?php | ||
class TestController | ||
{ | ||
/** | ||
* @Route('/{page}', name = 'homepage', defaults = {}) | ||
*/ | ||
public function action() | ||
{ | ||
} | ||
} | ||
|
||
$reader = new Yampee_Annotations_Reader(); | ||
$reader->registerAnnotation(new RouteAnnotation()); | ||
|
||
$annotations = $reader->read(array('TestController', 'action')); | ||
``` | ||
|
||
But it's much more than this: discover all the possibilities in the documentation ! | ||
|
||
Documentation | ||
------------- | ||
|
||
The documentation is to be found in the `doc/` directory. | ||
|
||
About | ||
------- | ||
|
||
Yampee Annotations is licensed under the MIT license (see LICENSE file). | ||
The Yampee Annotations library is developed and maintained by the Titouan Galopin. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
// Yampee Annotations component autoloader | ||
|
||
function load($class) | ||
{ | ||
$file = dirname(__FILE__).'/src/'.strtr($class, '_', '/').'.php'; | ||
|
||
if (file_exists($file)) { | ||
require $file; | ||
return true; | ||
} | ||
} | ||
|
||
spl_autoload_register('load'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="robots" content="index, follow, all" /> | ||
<title> | API</title> | ||
<link rel="stylesheet" type="text/css" href="stylesheet.css"> | ||
</head> | ||
<body id="overview"> | ||
<div class="header"> | ||
<ul> | ||
<li><a href="classes.html">Classes</a></li> | ||
<li><a href="interfaces.html">Interfaces</a></li> | ||
<li><a href="doc-index.html">Index</a></li> | ||
|
||
</ul> | ||
|
||
<div id="title">API</div> | ||
|
||
<div class="type">Namespace</div> | ||
<h1></h1> | ||
</div> | ||
<div class="content"> | ||
<table> | ||
<tr> | ||
<td><a href="Yampee_Redis_Client.html"><abbr title="Yampee_Redis_Client">Yampee_Redis_Client</abbr></a></td> | ||
<td class="last">Implements a Redis client for PHP 5.2.</td> | ||
</tr> | ||
<tr> | ||
<td><a href="Yampee_Redis_Connection.html"><abbr title="Yampee_Redis_Connection">Yampee_Redis_Connection</abbr></a></td> | ||
<td class="last">Yampee_Reddis_Connection represents a Reddis connection.</td> | ||
</tr> | ||
</table> | ||
|
||
|
||
<h2>Exceptions</h2> | ||
<table> | ||
<tr> | ||
<td><a href="Yampee_Redis_Exception_Command.html"><abbr title="Yampee_Redis_Exception_Command">Yampee_Redis_Exception_Command</abbr></a></td> | ||
<td class="last">Command exception.</td> | ||
</tr> | ||
<tr> | ||
<td><a href="Yampee_Redis_Exception_Connection.html"><abbr title="Yampee_Redis_Exception_Connection">Yampee_Redis_Exception_Connection</abbr></a></td> | ||
<td class="last">Connection exception.</td> | ||
</tr> | ||
<tr> | ||
<td><a href="Yampee_Redis_Exception_Error.html"><abbr title="Yampee_Redis_Exception_Error">Yampee_Redis_Exception_Error</abbr></a></td> | ||
<td class="last">Redis error.</td> | ||
</tr> | ||
<tr> | ||
<td><a href="Yampee_Redis_Exception_ReadReply.html"><abbr title="Yampee_Redis_Exception_ReadReply">Yampee_Redis_Exception_ReadReply</abbr></a></td> | ||
<td class="last">Command exception.</td> | ||
</tr> | ||
</table> | ||
</div> | ||
<div id="footer"> | ||
Generated by <a href="http://sami.sensiolabs.org/" target="_top">Sami, the API Documentation Generator</a>. | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.8.1-DEV |
Oops, something went wrong.