Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 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
7bd2004
Merge pull request #9 from seblucas/master
splitbrain Jul 6, 2016
55725b3
adjusted package name
splitbrain Jul 6, 2016
14460c3
fixed some undefined indexes in the manager
splitbrain Jul 6, 2016
0ebeafe
some first cleanup of the type hinting
splitbrain Jul 6, 2016
f060c68
fixed undefined variable
splitbrain Jul 6, 2016
a6f6090
use null as a default for getters, update type hints
splitbrain Jul 6, 2016
4fa07c8
rename serie to correct series
splitbrain Jul 6, 2016
f2d67db
more type hints
splitbrain Jul 6, 2016
ede178e
fixed order in tests, expectations should be first
splitbrain Jul 9, 2016
f1fa98a
introduced a namespace
splitbrain Jul 9, 2016
83b9a7d
more cleanup and type hinting
splitbrain Jul 9, 2016
9aa467b
simplify TOC and file management
splitbrain Jul 9, 2016
c92e2ff
file reading and tests
splitbrain Jul 10, 2016
53d4bf3
get and clear cover
splitbrain Jul 10, 2016
34b9d8a
setting cover file
splitbrain Jul 12, 2016
5d111d3
color phpunit output
splitbrain Jul 12, 2016
a7333f2
fix saving
splitbrain Jul 13, 2016
bc6f3a0
complete cover handling
splitbrain Jul 16, 2016
c390e05
some clean up
splitbrain Jul 16, 2016
51d86bf
added general Date handling
splitbrain Jul 16, 2016
26aa53e
use constants and general accessor for identifiers too
splitbrain Jul 16, 2016
52b8059
removed unused methods, more cleanup
splitbrain Jul 16, 2016
145bd24
suppress IDEA warning
splitbrain Jul 16, 2016
d484ff7
removed mercurial file
splitbrain Jul 16, 2016
a37ede7
adjust web manager
splitbrain Jul 16, 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

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 <[email protected]>

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",
}
```
41 changes: 41 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"name": "splitbrain/php-epub-meta",
"type": "library",
"description": "Reading and writing metadata included in the EPub ebook format",
"keywords": [
"epub",
"metadata",
"ebook"
],
"homepage": "https://github.com/splitbrain/php-epub-meta",
"license": "MIT",
"authors": [
{
"name": "Andreas Gohr",
"email": "[email protected]",
"homepage": "https://www.splitbrain.org/",
"role": "Developer"
},
{
"name": "Sébastien Lucas",
"email": "[email protected]",
"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": {
"psr-4": {
"splitbrain\\epubmeta\\test\\": "test",
"splitbrain\\epubmeta\\": "lib"
}
}
}
Loading