Permalink
Browse files

Implemented namespace, files moved to the src folder

  • Loading branch information...
1 parent 8d06ed1 commit 7977ba6e1b3f21162bdfee325cea6bae07b816fa @sergiovilar committed Aug 28, 2013
View
@@ -1 +1,4 @@
-vendor/
+vendor/
+cache/
+out/
+test.php
View
@@ -43,7 +43,7 @@ First you need to create an array with the content of the periodical:
With this, you can now generate your .mobi file with KindlePeriodical:
- $ebook = new KindlePeriodical(array(
+ $ebook = new \Kindle\Periodical(array(
"outputFolder" => "out",
View
@@ -9,8 +9,12 @@
"name": "Sérgio Vilar",
"email": "vilar@me.com"
}
- ],
+ ],
+ "autoload": {
+ "psr-0": { "Kindle": "src/" }
+ },
"require": {
+ "php": ">=5.3.0",
"rain/raintpl": "dev-master"
},
"minimum-stability": "dev"
@@ -1,12 +1,11 @@
<?php
-include_once dirname(__FILE__)."/vendor/autoload.php";
+namespace Kindle;
-// namespace
+include_once dirname(__FILE__)."/vendor/autoload.php";
use Rain\Tpl;
-class KindlePeriodical
-{
+class Periodical{
private $title;
private $creator;
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 7977ba6

Please sign in to comment.