Timothy J Warren
0e9c257ab7
- Eradicated Guzzle from main codebase - All API requests now use Artax - Refactor code to use function and constant imports - And more! |
||
---|---|---|
app | ||
build | ||
migrations | ||
public | ||
src | ||
tests | ||
.editorconfig | ||
.gitignore | ||
.gitlab-ci.yml | ||
.htaccess | ||
.travis.yml | ||
CHANGELOG.md | ||
composer.json | ||
console | ||
humbug.json.dist | ||
index.php | ||
LICENSE | ||
phinx.yml | ||
phpdoc.dist.xml | ||
phpunit.xml | ||
README.md | ||
RoboFile.php |
Hummingbird Anime Client
A self-hosted client that allows custom formatting of data from the hummingbird api
Features
-
Anime List views (Each with list and cover views):
- Watching
- Plan to Watch
- On Hold
- Dropped
- Completed
- Combined View
-
Manga List views (Each with list and cover views):
- Reading
- Plan to Read
- On Hold
- Dropped
- Completed
- Combined View
-
Anime collection view (segmented by media type):
- Cover Images
- Table List
Requirements
- PHP 7.0+
- PDO SQLite or PDO PostgreSQL (For collection tab)
- GD
- Redis or Memcached for caching
Installation
- Install via composer:
composer create-project timw4mail/hummingbird-anime-client
or
-
Install via git, then install dependencies via composer:
composer install
-
Duplicate
app/config/*.toml.example
files asapp/config/*.toml
-
Configure settings in
app/config/config.toml
to your liking -
Create the following directories if they don't exist, and make sure they are world writable
- public/js/cache
-
Make sure the
console
script is executable
Using MAL API
- Update
app/config/mal.toml
with your username and password - Enable MAL api in
app/config/config.toml
Server Setup
Caching
Update app/config/cache.toml
based on the instructions here.
nginx
Basic nginx setup
server {
location / {
try_files $uri $uri/ /index.php$uri?$args;
}
location ~ ^(.+\.php)($|/) {
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_index index.php;
}
location ^~ /vendor {
deny all;
}
}
Apache
Make sure to have mod_rewrite
and AllowOverride All
enabled in order to take
advantage of the included .htaccess
file. If you don't wish to use an .htaccess
file,
include the contents of the .htaccess
file in your Apache configuration.
Anime Collection Additional Installation
- Run
php /vendor/bin/phinx migrate -e development
to create the database tables - For importing anime:
- Login
- Use the form to select your media
- Save & Repeat as needed