No description
  • PHP 71.7%
  • JavaScript 19.1%
  • CSS 9.2%
Find a file
2026-01-27 21:39:39 -05:00
.github Add initial application structure with database interface and JSON storage implementation 2026-01-17 11:12:43 -05:00
.serena feat: Update comic and series data with new entries and additional fields 2026-01-27 21:39:30 -05:00
.vscode Refactor(view.php): update header meta and detail items for improved display; enhance modal styles for better visibility 2026-01-13 23:00:37 -05:00
api Refactor series handling to include volume information 2026-01-18 00:19:11 -05:00
assets feat: Update comic and series data with new entries and additional fields 2026-01-27 21:39:30 -05:00
cache Add performance test HTML for gallery optimization analysis 2025-09-01 14:14:59 -04:00
data feat: Update comic and series data with new entries and additional fields 2026-01-27 21:39:30 -05:00
inc style: Clean up code formatting in functions.php and logger.php 2026-01-26 22:35:10 -05:00
scripts feat: Enhance thumbnail generation and logging 2026-01-26 22:35:01 -05:00
src Add initial application structure with database interface and JSON storage implementation 2026-01-17 11:12:43 -05:00
tests feat: Enhance thumbnail generation and logging 2026-01-26 22:35:01 -05:00
uploads minor changes 2025-06-15 20:18:26 -04:00
.gitattributes Create .gitattributes 2026-01-15 20:39:26 -05:00
.gitignore Normalize file modes 2026-01-24 22:24:52 -05:00
.phpunit.result.cache Plan async edit and sorting updates 2026-01-18 22:37:27 +00:00
artist_gallery.php Add async edit toasts and volume sorting 2026-01-18 22:47:11 +00:00
comic.code-workspace Add workspace and DB config; update demo mode IP logic 2025-10-11 18:45:23 -04:00
composer.json Add initial application structure with database interface and JSON storage implementation 2026-01-17 11:12:43 -05:00
composer.lock Add initial application structure with database interface and JSON storage implementation 2026-01-17 11:12:43 -05:00
edit.php Optimize rotation calculation for better performance 2026-01-23 03:53:34 +00:00
gallery.php Refactor series handling to include volume information 2026-01-18 00:19:11 -05:00
index.php Refactor series handling to include volume information 2026-01-18 00:19:11 -05:00
info.php Refactor code structure for improved readability and maintainability 2025-06-09 20:17:32 -04:00
label.php style: Adjust label artist display for improved formatting 2026-01-27 21:39:39 -05:00
list.php Hide demo mode editing controls 2026-01-18 02:51:58 +00:00
manage_artists.php Replace manage pages with galleries 2026-01-18 00:37:58 +00:00
manage_series.php Allow external series links 2026-01-18 02:14:43 +00:00
phpunit.xml Add initial application structure with database interface and JSON storage implementation 2026-01-17 11:12:43 -05:00
process_thumbnails.php Address code review feedback: add validation, caching, and update dependencies 2026-01-11 06:59:49 +00:00
README.md Add initial application structure with database interface and JSON storage implementation 2026-01-17 11:12:43 -05:00
redirect.php commiting changes as initial commit 2025-06-09 19:20:36 -04:00
series_gallery.php Add functionality to delete empty series and script to update series from CSV 2026-01-24 22:57:48 -05:00
status.php Address code review feedback: add validation, caching, and update dependencies 2026-01-11 06:59:49 +00:00
thumbnail_processor.php Implement thumbnail processing queue and AJAX functionality; add processing button and status display in comic view 2026-01-11 00:02:47 -05:00
view.php Remove unused backup and fixed JS files 2026-01-22 18:56:45 -05:00

Comic PHP

This repository now includes Composer configuration and PSR-4 autoloading.

What's added

  • composer.json with:
    • php requirement ^8.3
    • PSR-4 autoload mapping: App\\ => src/
    • phpunit/phpunit as a dev dependency
  • src/Bootstrap.php (example PSR-4 class)
  • tests/BootstrapTest.php and phpunit.xml for running unit tests
  • index.php updated to conditionally require vendor/autoload.php

Quickstart

  1. Install dependencies:

    composer install
    
  2. Run tests:

    composer test
    # or
    vendor/bin/phpunit --configuration phpunit.xml
    
  3. If you add new classes under src/, run:

    composer dump-autoload
    

Notes / Next steps 💡

  • This repository currently contains procedural code and includes (inc/ files). To fully adopt PSR-4 I recommend gradually refactoring logic into namespaced classes under src/ and replacing manual include/require calls with dependency injection and Composer autoloading.
  • I can help migrate specific modules (database layer, thumbnail processing, etc.) into PSR-4 classes and add tests.