aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/mikespub/php-epub-meta/app/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/mikespub/php-epub-meta/app/index.php')
-rw-r--r--vendor/mikespub/php-epub-meta/app/index.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/vendor/mikespub/php-epub-meta/app/index.php b/vendor/mikespub/php-epub-meta/app/index.php
new file mode 100644
index 000000000..da8b369f4
--- /dev/null
+++ b/vendor/mikespub/php-epub-meta/app/index.php
@@ -0,0 +1,23 @@
+<?php
+/**
+ * PHP EPub Meta - App public entrypoint
+ *
+ * @author mikespub
+ */
+
+require_once dirname(__DIR__) . '/vendor/autoload.php';
+
+use SebLucas\EPubMeta\App\Handler;
+
+// modify this to point to your book directory
+$bookdir = '/home/andi/Dropbox/ebooks/';
+$bookdir = dirname(__DIR__) . '/test/data/';
+
+$handler = new Handler($bookdir);
+try {
+ $handler->handle();
+} catch (Throwable $e) {
+ error_log($e);
+ echo $e->getMessage();
+}
+return;