-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Yukihiro Arisawa
committed
Apr 28, 2024
1 parent
5622065
commit d38a6b0
Showing
46 changed files
with
3,684 additions
and
435 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
version: 2 | ||
|
||
updates: | ||
- package-ecosystem: composer | ||
directory: / | ||
schedule: | ||
interval: weekly | ||
|
||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: weekly |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: php | ||
|
||
on: | ||
- push | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-24.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.3' | ||
|
||
- name: Get Composer Cache Directory | ||
id: composer-cache | ||
run: | | ||
echo "name=dir::$(composer config cache-files-dir)" >> ${GITHUB_OUTPUT} | ||
- uses: actions/cache@v4 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir || '~/.cache/composer/files' }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-composer- | ||
- name: Install dependencies | ||
run: composer install --prefer-dist --no-progress --no-suggest | ||
|
||
- name: Check for Coding Standard | ||
run: composer cs | ||
|
||
- name: Check for Test | ||
run: composer test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
/vendor/ | ||
/build/ | ||
/composer.lock | ||
/phpunit.xml | ||
/.phpunit.result.cache | ||
/.idea | ||
/.php-version | ||
/.phpcs-cache | ||
/.phpcs-cache | ||
/.phpunit.cache/ |
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,34 @@ | ||
# iamyukihiro/aquarium | ||
|
||
PHPで水槽を再現してみる遊び用のアプリケーションです。 | ||
水槽にメダカを追加したり、水槽の中を見ることができます。 | ||
## Overview | ||
|
||
## Enviroment | ||
<img src="https://private-user-images.githubusercontent.com/42995313/326250292-a15d3a12-30aa-4796-9623-5565dbbde146.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTQzMDAyOTEsIm5iZiI6MTcxNDI5OTk5MSwicGF0aCI6Ii80Mjk5NTMxMy8zMjYyNTAyOTItYTE1ZDNhMTItMzBhYS00Nzk2LTk2MjMtNTU2NWRiYmRlMTQ2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA0MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNDI4VDEwMjYzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA2NWZjZGM5NDc5MzA2NjVhYzU1OGVhNDExODA4ZTY2MDFiNzQ3N2M3ZjlmMDI5YWY3MTc3ZWVkOWM1NjE2NjcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.nvxH8Tnctiwuqct49TZ-7stH8-NTIZg3g9WZvGuBY6E" width= "500px"> | ||
|
||
``` | ||
$ php -v | ||
PHP 8.0.0 (cli) (built: Jan 28 2021 17:16:40) ( NTS ) | ||
Copyright (c) The PHP Group | ||
Zend Engine v4.0.0-dev, Copyright (c) Zend Technologies | ||
with Zend OPcache v8.0.0, Copyright (c), by Zend Technologies | ||
with Xdebug v3.0.2, Copyright (c) 2002-2021, by Derick Rethans | ||
``` | ||
This is an application that simulates an aquarium using PHP. | ||
You can add Medaka (killifish) to the aquarium and view inside the tank. | ||
|
||
## Available Commands | ||
## Requirement | ||
|
||
以下のディレクトリにあります。 | ||
- Docker Engine | ||
- Docker Compose | ||
|
||
https://github.com/iamyukihiro/aquarium/tree/master/src/Service/PsySH | ||
## Usage | ||
|
||
### 1. Setup | ||
|
||
Please, booting container. | ||
|
||
`bin/compose` | ||
|
||
### 2. Start aqua life | ||
|
||
`bin/aquarium` | ||
|
||
> [!NOTE] | ||
> Playing water ASMR on YouTube is very effective. | ||
#### Command list | ||
|
||
- `init-tank` | ||
- `view-tank` | ||
- `add-medaka` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
cd bin/dev/ && | ||
docker compose exec -it aquarium sh -c "composer aquarium" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
COMPOSE_PROJECT_NAME=aquarium |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
cd bin/dev/ && | ||
docker compose up -d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
version: '3.9' | ||
|
||
services: | ||
aquarium: | ||
container_name: aquarium | ||
image: ghcr.io/iamyukihiro/php-base:8.3 | ||
volumes: | ||
- type: bind | ||
source: ../../ | ||
target: /var/www/html/ | ||
- type: bind | ||
source: ../../bin/dev/php/conf.d/php.ini | ||
target: /usr/local/etc/php/conf.d/php_override.ini | ||
tty: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
cd bin/dev/ || exit | ||
docker compose down -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
cd bin/dev/ && | ||
docker compose exec -it aquarium zsh |
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.