Skip to content

Commit 7bd2004

Browse files
authored
Merge pull request #9 from seblucas/master
Allow downloading an updated epub without saving it in a temporary directory
2 parents 4fc37ad + 39620b9 commit 7bd2004

File tree

16 files changed

+2377
-629
lines changed

16 files changed

+2377
-629
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/coverage/*
2+
/vendor/*
3+
/php-epub-meta.sublime-*
4+
/clover.xml
5+
/composer.phar
6+

.hgtags

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
c5bdb12b19a22820b16b9f252b12e756f1ac8505 1.0.0

.travis.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
language: php
2+
php:
3+
- 7.0
4+
- 5.6
5+
- 5.5
6+
- hhvm
7+
before_script:
8+
- composer selfupdate
9+
- composer install
10+
script:
11+
- phpunit
12+
after_success:
13+
- chmod +x test/publishCoverage.sh
14+
- test/publishCoverage.sh
15+
matrix:
16+
allow_failures:
17+
- php: hhvm
18+
- php: 5.5

LICENSE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
MIT License
2+
13
Copyright (c) 2012 Andreas Gohr <[email protected]>
24

35
Permission is hereby granted, free of charge, to any person obtaining a copy of

README renamed to README.md

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
====== PHP EPub Meta ======
1+
PHP EPub Meta
2+
=============
23

34
This project aims to create a PHP class for reading and writing metadata
45
included in the EPub ebook format.
@@ -9,20 +10,35 @@ Please see the issue tracker for what's missing.
910

1011
Forks and pull requests welcome.
1112

12-
===== About the EPub Manager Web Interface =====
13+
14+
About the EPub Manager Web Interface
15+
------------------------------------
1316

1417
The manager expects your ebooks in a single flat directory (no subfolders). The
1518
location of that directory has to be configured at the top of the index.php file.
1619

1720
All the epubs need to be read- and writable by the webserver.
1821

1922
The manager also makes some assumption on how the files should be named. The
20-
format is: "<Author file-as>-<Title>.epub". Commas will be replaced by __ and
21-
spaces are replaced by _.
23+
format is: `<Author file-as>-<Title>.epub`. Commas will be replaced by `__` and
24+
spaces are replaced by `_`.
2225

23-
Note that the manager will RENAME your files to that form when saving.
26+
Note that the manager will **RENAME** your files to that form when saving.
2427

2528
Using the "Lookup Book Data" link will open a dialog that searches the book at
2629
Google Books you can use the found data using the "fill in" and "replace"
2730
buttons. The former will only fill empty fields, while the latter will replace
2831
all data. Author filling is missing currently.
32+
33+
34+
Installing via Composer
35+
=======================
36+
37+
You can use this package in your projects with [Composer](https://getcomposer.org/). Just
38+
add these lines to your project's `composer.json`:
39+
40+
```
41+
"require": {
42+
"seblucas/php-epub-meta": "dev-master",
43+
}
44+
```

composer.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "seblucas/php-epub-meta",
3+
"type": "library",
4+
"description": "Reading and writing metadata included in the EPub ebook format",
5+
"keywords": ["epub", "metadata", "ebook"],
6+
"homepage": "https://github.com/seblucas/php-epub-meta",
7+
"authors": [
8+
{
9+
"name": "Andreas Gohr",
10+
"email": "[email protected]",
11+
"homepage": "https://www.splitbrain.org/",
12+
"role": "Developer"
13+
},
14+
{
15+
"name": "Sébastien Lucas",
16+
"email": "[email protected]",
17+
"homepage": "http://www.slucas.fr/",
18+
"role": "Developer"
19+
}
20+
],
21+
"require": {
22+
"php": ">=5.3.0",
23+
"ext-xml": "*",
24+
"ext-zip": "*",
25+
"seblucas/tbszip": "~2.16.0"
26+
},
27+
"require-dev": {
28+
"phpunit/phpunit": "4.*"
29+
},
30+
"autoload": {
31+
"classmap": ["lib/"]
32+
}
33+
}

0 commit comments

Comments
 (0)