Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
df1e1b3
Use tbszip to allow to download an updated version of the epub without
seblucas Dec 9, 2012
af8069f
Add support of Calibre addition : Serie & Serie Index
seblucas Dec 24, 2012
5b5ad22
Fix xpath query & new meta adding
seblucas Dec 26, 2012
6a23fec
Add a way to set the Calibre identifier.
seblucas Jan 31, 2013
f528f1d
A little try to handle cover better (at least for my taste).
seblucas Jan 31, 2013
7bfa768
Fix epub save (hopefully)
seblucas Jan 31, 2013
7d9e3aa
Refactor a little to prepare another method
seblucas Feb 5, 2013
e31274f
Add a method to add another property to the epub to allow the cover
seblucas Feb 5, 2013
f4b19e1
Upgrade tbszip to latest release
seblucas Mar 19, 2013
4493e3c
Fix save method and a method to remove iTunes crap.
seblucas Mar 19, 2013
d2d3e68
Fix dirname output on Windows. Remove some leftover in Cover2.
seblucas Mar 26, 2013
b24061a
Update licence and Author shoud have done that a long time ago.
seblucas Mar 26, 2013
1e34945
Prepare the integration with Monocle. Heavily based on https://github…
seblucas May 3, 2013
8c8843e
Handle the case when the library is used inside a directory.
seblucas May 3, 2013
3ce1750
Forgot a /
seblucas May 3, 2013
9697706
Update TbsZip version 2.15 (which handle zip with comments)
seblucas Oct 23, 2013
943bb09
Fix a typo
seblucas Oct 23, 2013
586000e
Merge Marsender modifications
seblucas Oct 23, 2013
77f3790
Enable unit tests with Travis
seblucas Mar 4, 2014
3c670c2
Add a gitignore
seblucas Mar 6, 2014
8f6a8a9
Handle code coverage
seblucas Mar 6, 2014
fd627ec
Update epub.php
seblucas Mar 13, 2014
c23c2b5
Fix bug in epub navigation.
sbdomo Mar 20, 2014
71aaa24
In case the filename contains non ASCII characters then follow rfc6266.
seblucas Feb 19, 2016
5d40c59
Add composer.json.
mbirth Jun 30, 2016
ec1edb9
Removed TbsZip and added instructions how to get this via Composer.
mbirth Jun 30, 2016
e0b5f46
Moved class to lib/ folder.
mbirth Jun 30, 2016
aad60bd
Split file into single classes.
mbirth Jun 30, 2016
6b877db
Fix includes of index.php.
mbirth Jun 30, 2016
f470c86
Code cleanup.
mbirth Jul 1, 2016
eecd366
Code cleanup.
mbirth Jul 1, 2016
9e53f1e
Fix unit tests.
mbirth Jul 1, 2016
51c504f
Fixed requirements, now that seblucas/tbszip is on Packagist.
mbirth Jul 1, 2016
195584e
Removed part about external tbszip repo.
mbirth Jul 1, 2016
e5f62cc
Updated composer.lock.
mbirth Jul 3, 2016
935626f
Fix Travis config (added composer install).
mbirth Jul 3, 2016
1760c26
Updated Travis config to latest PHP versions. Also use older PHPUnit 4.8
mbirth Jul 3, 2016
ee222ba
Merge pull request #1 from mbirth/master
seblucas Jul 3, 2016
d8b3a2c
Étiquette 1.0.0 ajoutée à la révision c5bdb12b19a2
seblucas Jul 3, 2016
39620b9
Restore the licence file to its original state.
seblucas Jul 4, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/coverage/*
/vendor/*
/php-epub-meta.sublime-*
/clover.xml
/composer.phar

1 change: 1 addition & 0 deletions .hgtags
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
c5bdb12b19a22820b16b9f252b12e756f1ac8505 1.0.0
18 changes: 18 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
language: php
php:
- 7.0
- 5.6
- 5.5
- hhvm
before_script:
- composer selfupdate
- composer install
script:
- phpunit
after_success:
- chmod +x test/publishCoverage.sh
- test/publishCoverage.sh
matrix:
allow_failures:
- php: hhvm
- php: 5.5
2 changes: 2 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
MIT License

Copyright (c) 2012 Andreas Gohr <andi@splitbrain.org>

Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
26 changes: 21 additions & 5 deletions README → README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
====== PHP EPub Meta ======
PHP EPub Meta
=============

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

Forks and pull requests welcome.

===== About the EPub Manager Web Interface =====

About the EPub Manager Web Interface
------------------------------------

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

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

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

Note that the manager will RENAME your files to that form when saving.
Note that the manager will **RENAME** your files to that form when saving.

Using the "Lookup Book Data" link will open a dialog that searches the book at
Google Books you can use the found data using the "fill in" and "replace"
buttons. The former will only fill empty fields, while the latter will replace
all data. Author filling is missing currently.


Installing via Composer
=======================

You can use this package in your projects with [Composer](https://getcomposer.org/). Just
add these lines to your project's `composer.json`:

```
"require": {
"seblucas/php-epub-meta": "dev-master",
}
```
33 changes: 33 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "seblucas/php-epub-meta",
"type": "library",
"description": "Reading and writing metadata included in the EPub ebook format",
"keywords": ["epub", "metadata", "ebook"],
"homepage": "https://github.com/seblucas/php-epub-meta",
"authors": [
{
"name": "Andreas Gohr",
"email": "andi@splitbrain.org",
"homepage": "https://www.splitbrain.org/",
"role": "Developer"
},
{
"name": "Sébastien Lucas",
"email": "sebastien@slucas.fr",
"homepage": "http://www.slucas.fr/",
"role": "Developer"
}
],
"require": {
"php": ">=5.3.0",
"ext-xml": "*",
"ext-zip": "*",
"seblucas/tbszip": "~2.16.0"
},
"require-dev": {
"phpunit/phpunit": "4.*"
},
"autoload": {
"classmap": ["lib/"]
}
}
Loading