edit | blame | history | raw

Book Shelf

Home book library tracker.
Rebuilt using Symfony 8.1, it runs on SQLite, MySQL and PostgreSQL.

Setup

Requires PHP 8.4 or newer with the GD, Exif and PDO extensions.

composer install
php bin/console doctrine:migrations:migrate
php -S 127.0.0.1:8080 -t public

Defaults to using SQLite in var directory.
To use another database, set DATABASE_URL in .env.local.
See .env for database URL fomats.

LibraryThing covers

With a LibraryThing developer key in .env.local,
a book added with an ISBN gets its cover from LibraryThing:

LIBRARYTHING_API_KEY=your-key

Upgrading the old system

app:import-legacy copies the data from legacy tables into the current schema.
Additionally covers can be imported from the covers_big directory.
Data is read from MySQL at LEGACY_DATABASE_URL set in .env.local.

php bin/console doctrine:migrations:migrate
php bin/console app:import-legacy --dry-run
php bin/console app:import-legacy --covers=/path/to/covers_big --dry-run
php bin/console app:import-legacy
php bin/console app:import-legacy --covers=/path/to/covers_big
edit | blame | history | raw
BSD 3-Clause License

Copyright (c) 2026, Jacek Kowalski

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
   list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
   this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its
   contributors may be used to endorse or promote products derived from
   this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
README 1 KB