{"id":19712160,"url":"https://github.com/fmstrat/spcs","last_synced_at":"2025-04-29T18:30:51.431Z","repository":{"id":76612860,"uuid":"44130920","full_name":"Fmstrat/spcs","owner":"Fmstrat","description":"SPCS, or Simple PHP Content Server, is a PHP based content server that reads directly from the Calibre metadata.db file.","archived":false,"fork":false,"pushed_at":"2015-10-12T20:14:06.000Z","size":200,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-05T18:52:03.391Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Fmstrat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-12T19:59:11.000Z","updated_at":"2020-06-03T10:43:33.000Z","dependencies_parsed_at":"2023-03-11T22:39:34.710Z","dependency_job_id":null,"html_url":"https://github.com/Fmstrat/spcs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fmstrat%2Fspcs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fmstrat%2Fspcs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fmstrat%2Fspcs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fmstrat%2Fspcs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Fmstrat","download_url":"https://codeload.github.com/Fmstrat/spcs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251559754,"owners_count":21609068,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T22:15:31.087Z","updated_at":"2025-04-29T18:30:51.193Z","avatar_url":"https://github.com/Fmstrat.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SPCS: Simple PHP Content Server for Calibre\nSPCS, or Simple PHP Content Server, is a PHP based content server that reads directly from the Calibre metadata.db file.\n\nFeatures include:\n\n- Support in most major desktop, mobile and Kindle browsers\n- Built-in multi-user login functionality allowing for direct book download to Kindle and Android devices\n- “Send-to” functionality to support Whispersync with Amazon’s Personal Documents feature\n- No need to have Calibre running\n- Sortable results\n- Cover display\n\n## Download\n\nGrab the latest zip from the \u003ca href=\"https://github.com/Fmstrat/spcs/tree/master/builds\"\u003ebuilds directory\u003c/a\u003e.\n\n##Usage/Installation\n\nInstallation is simple and straightforward:\n\n- Extract the archive to any folder on a system running PHP. Ensure Pear Mail tools are installed.\n- Edit /include/config.php to your liking.\n- Ensure the metadata.db file AND the folder it resides in is writable by the Apache/IIS user.\n- Visit https://\u003cserver\u003e/\u003cinstallfolder\u003e/setup.php to install. This will create a new table (spcs) in your Calibre database with a user “admin” and password “password”.\n- Visit https://\u003cserver\u003e/\u003cinstallfolder\u003e and login as “admin” with password “password”.\n- Go to settings to change password and Kindle email address.\n- Other users can be set up by using a Sqlite editor like Sqlite Database Browser. Just add a row with a username and blank password, and change it on first login.\n\n*NOTE: Downloading with “Basic Authentication” causes problems, thus the included login interface. However, we STRONGLY recommend you force HTTPS/SSL to secure your passwords. Also, this application has NOT undergone strict security testing.*\n\nPlease pose any questions or discussion to the thread at: http://www.mobileread.com/forums/showthread.php?t=203177\n\n\n##Configuration\n\nThe following variables should be edited before running setup.php for the first time.\n\nSets the number of results per page:\n```\n$results_per_page = 20;\n```\n\nThe location of your Calibre DB file (This can be a copy):\n```\n$calibre_db = \"/files/eBooks/metadata.db\";\n```\n\nThe location of your books library (include trailing slash):\n```\n$books_folder = \"/files/eBooks/\";\n```\n\nSet this to the book type you wish to use (file extension, all lower case):\n```\n$book_type = \"mobi\";\n```\n\nThe email address books are sent from (Ensure this is validated in your Kindle settings):\n```\n$from = \"myemail@gmail.com\";\n```\n\nThe server to send emails through:\n```\n$config=array(\n  'host'      =\u003e 'ssl://smtp.googlemail.com',\n  'port'      =\u003e 465,\n  'auth'      =\u003e true,\n  'username'  =\u003e 'user',\n  'password'  =\u003e 'password'\n);\n```\n\nTo-Do\n\n- Multi-format book download/send\n- Administration console for users\n- Full security test\n\n##Change Log\n\n**v0.04**\n\n- CSS fix for latest Android Chrome\n\n**v0.03**\n\n- Misc. bug fixes\n- Added PDF backup for if primary format isn’t found but PDF is\n- Added “Added” sort, for sorting by books modified or added latest\n- Added “NEW” banner for books added or modified in past week\n\n**v0.02**\n\n- Kindle stylesheet fixes\n\n**v0.01**\n\n- Release\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffmstrat%2Fspcs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffmstrat%2Fspcs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffmstrat%2Fspcs/lists"}