aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/mikespub/php-epub-meta/app/index.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-11-09 10:24:26 +0000
committerMario <mario@mariovavti.com>2024-11-09 10:24:26 +0000
commit0ed08274f16d65b427bd4a5bbd8bd5bd6b2a65c2 (patch)
tree25b05973f824b95fc5705cf8aa79b86a44cfde00 /vendor/mikespub/php-epub-meta/app/index.php
parent2a152e0803309eb3646316bbe0d2a47353bad2b9 (diff)
parent0534fe68869aae231259ee48a38b4533f3f1ff99 (diff)
downloadvolse-hubzilla-0ed08274f16d65b427bd4a5bbd8bd5bd6b2a65c2.tar.gz
volse-hubzilla-0ed08274f16d65b427bd4a5bbd8bd5bd6b2a65c2.tar.bz2
volse-hubzilla-0ed08274f16d65b427bd4a5bbd8bd5bd6b2a65c2.zip
Merge branch 'clean-up-some-dependencies' into 'dev'
Clean up deps and upgrade EpubMeta See merge request hubzilla/core!2162
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;