Skip to content

My long time hobby project about bass guitar, bass playing, music, and more.

Notifications You must be signed in to change notification settings

tbreuss/electricbass

Repository files navigation

Electricbass

My long time hobby project about bass playing and more.

https://www.electricbass.ch

Note

This project does not contain a database. Without one, it cannot be started locally. However, the project can serve as an illustrative example for a Yii2 web application. I hope this is helpful for one or the other.

Static Code Analysis

To analyse code base using PHPStan run the following command.

vendor/bin/phpstan analyse --memory-limit=256M

Or

docker-compose run php vendor/bin/phpstan analyse --memory-limit=256M

PHP CodeSniffer

Analyse

vendor/bin/phpcs

Fix

vendor/bin/phpcbf

Build Asset Files

Build CSS

npm run build-css

Build minified CSS

npm run build-min-css

Build JavaScript

npm run build-js

Build minified JavaScript

npm run build-min-js

Generated asset files are stored in folder /assets/app/dist.

cURL Calls (for local development)

Normal call

curl https://www.electricbass.test --insecure

Test redirection

curl -L --max-redirs 5 http://electricbass.test/blog/ --insecure

Google YouTube API

https://www.googleapis.com/youtube/v3/playlistItems?key=API_KEY&playlistId=PLsJsWn3-KmsqhFcERx2TjNH0VnUEk1lyG&part=snippet&maxResults=50