A Script that takes in LastFM username
and collages their most played albums in a grid.
Uses S3 to store the images in a persistant manner without filling up the local disk.
Fully supported to run on AWS Elastic Beanstalk
Tested using PHP 5.6
, PHP 7
and requires PHP-GD library
for building the images.
- AWS IAM Roles (running on your instance)
- LastFM API Key
{
"Statement": [
{
"Sid": "Stmt1402566164255",
"Action": [
"s3:GetObject",
"s3:GetObjectVersion",
"s3:ListBucket",
"s3:PutObject",
"s3:PutObjectAcl",
"s3:PutObjectVersionAcl",
"s3:DeleteObject"
],
"Effect": "Allow",
"Resource": [
"arn:aws:s3:::<Bucket Name/*",
"arn:aws:s3:::<Bucket Name>"
]
}
]
}
Don't forget to fill you API Key in the config.inc.php
file!
$config['api_key'] = '<LastFM Key>'
If no config.inc.php
file is found, it will use the following environment variables: api_key
and bucket
.
Japanese TrueType font by lindwurm - https://github.com/Koruri/Koruri under Apache v2.0