1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cops_ynh.git synced 2024-09-03 18:25:57 +02:00
cops_ynh/sources
2016-12-22 00:51:06 +00:00
..
images add COPS sources 2016-12-21 17:48:44 +00:00
lang Use of release 1.0.1 instead of master git 2016-12-22 00:51:06 +00:00
resources Use of release 1.0.1 instead of master git 2016-12-22 00:51:06 +00:00
styles Use of release 1.0.1 instead of master git 2016-12-22 00:51:06 +00:00
templates Use of release 1.0.1 instead of master git 2016-12-22 00:51:06 +00:00
about.html Use of release 1.0.1 instead of master git 2016-12-22 00:51:06 +00:00
author.php Use of release 1.0.1 instead of master git 2016-12-22 00:51:06 +00:00
base.php Use of release 1.0.1 instead of master git 2016-12-22 00:51:06 +00:00
book.php Use of release 1.0.1 instead of master git 2016-12-22 00:51:06 +00:00
CHANGELOG Use of release 1.0.1 instead of master git 2016-12-22 00:51:06 +00:00
checkconfig.php Use of release 1.0.1 instead of master git 2016-12-22 00:51:06 +00:00
config.php Use of release 1.0.1 instead of master git 2016-12-22 00:51:06 +00:00
config_default.php Use of release 1.0.1 instead of master git 2016-12-22 00:51:06 +00:00
config_local.php.example Use of release 1.0.1 instead of master git 2016-12-22 00:51:06 +00:00
cops-1.0.1.zip Use of release 1.0.1 instead of master git 2016-12-22 00:51:06 +00:00
COPYING add COPS sources 2016-12-21 17:48:44 +00:00
customcolumn.php Use of release 1.0.1 instead of master git 2016-12-22 00:51:06 +00:00
data.php Use of release 1.0.1 instead of master git 2016-12-22 00:51:06 +00:00
epubfs.php Use of release 1.0.1 instead of master git 2016-12-22 00:51:06 +00:00
epubreader.php Use of release 1.0.1 instead of master git 2016-12-22 00:51:06 +00:00
favicon.ico add COPS sources 2016-12-21 17:48:44 +00:00
feed.php Use of release 1.0.1 instead of master git 2016-12-22 00:51:06 +00:00
fetch.php Use of release 1.0.1 instead of master git 2016-12-22 00:51:06 +00:00
getJSON.php Use of release 1.0.1 instead of master git 2016-12-22 00:51:06 +00:00
index.php Use of release 1.0.1 instead of master git 2016-12-22 00:51:06 +00:00
JSON_renderer.php Use of release 1.0.1 instead of master git 2016-12-22 00:51:06 +00:00
language.php Use of release 1.0.1 instead of master git 2016-12-22 00:51:06 +00:00
login.html Use of release 1.0.1 instead of master git 2016-12-22 00:51:06 +00:00
OPDS_renderer.php Use of release 1.0.1 instead of master git 2016-12-22 00:51:06 +00:00
publisher.php Use of release 1.0.1 instead of master git 2016-12-22 00:51:06 +00:00
rating.php Use of release 1.0.1 instead of master git 2016-12-22 00:51:06 +00:00
README.md Use of release 1.0.1 instead of master git 2016-12-22 00:51:06 +00:00
sendtomail.php Use of release 1.0.1 instead of master git 2016-12-22 00:51:06 +00:00
serie.php Use of release 1.0.1 instead of master git 2016-12-22 00:51:06 +00:00
tag.php Use of release 1.0.1 instead of master git 2016-12-22 00:51:06 +00:00
transliteration.php Use of release 1.0.1 instead of master git 2016-12-22 00:51:06 +00:00
util.js Use of release 1.0.1 instead of master git 2016-12-22 00:51:06 +00:00
web.config Use of release 1.0.1 instead of master git 2016-12-22 00:51:06 +00:00

COPS

COPS stands for Calibre OPDS (and HTML) Php Server.

See : COPS's home for more details.

Don't forget to check the Wiki.

Scrutinizer Quality Score

Code Coverage

Build Status

Selenium Test Status

Why ?

In my opinion Calibre is a marvelous tool but is too big and has too much dependencies to be used for its content server.

That's the main reason why I coded this OPDS server. I needed a simple tool to be installed on a small server (Seagate Dockstar in my case).

I initially thought of Calibre2OPDS but as it generate static file no search was possible.

Later I added an simple HTML catalog that should be usable on my Kobo.

So COPS's main advantages are :

  • No need for many dependencies.
  • No need for a lot of CPU or RAM.
  • Not much code.
  • Search is available.
  • With Dropbox / owncloud it's very easy to have an up to date OPDS server.
  • It was fun to code.

If you want to use the OPDS feed don't forget to specify feed.php at the end of your URL.

Prerequisites

  1. PHP 5.3, 5.4, 5.5, 5.6 or hhvm with GD image processing, Libxml, Intl, Json & SQLite3 support.
  2. A web server with PHP support. I only tested with various version of Nginx. Other people reported it working with Apache and Cherokee. You can also use PHP embedded server (https://github.com/seblucas/cops/wiki/Howto---PhpEmbeddedServer)
  3. The path to a calibre library (metadata.db, format, & cover files).

On any Debian base Linux you can use : aptitude install php5-gd php5-sqlite php5-json php5-intl

On Centos you may have to add : yum install php-xml

Install

  1. Extract the zip file to a folder in web space (visible to the web server).
  2. If you're doing a first-time install, copy config_local.php.example to config_local.php
  3. Edit config_local.php to match your config.
  4. If needed add other configuration item from config_default.php

If you choose to put your Calibre directory inside your web directory then you will have to edit /etc/nginx/mime.types to add this line : application/epub+zip epub;

If you like Docker, you can also try this project

Known problems

Not a lot, except for the bad quality of the code (first PHP project ever) ;)

Please see https://github.com/seblucas/cops/issues for open issues

Need help

Please read https://github.com/seblucas/cops/wiki and check the FAQ.

Credits

External libraries used :

Copyright & License

COPS - 2012-2016 (c) S<>bastien Lucas

See COPYING and file headers for license info