commit c768729ce613d376697500adc8fbf7d7bbb25f3b Author: hmw1001 Date: Thu Jun 11 18:45:18 2026 +0900 first commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8f4af5d --- /dev/null +++ b/.gitignore @@ -0,0 +1,97 @@ +# ============================================================================== +# Created by https://gitignores.com/ +# LANGUAGE-SPECIFIC TEMPLATE for PHP +# Website: https://www.php.net/ +# Repository: https://github.com/php/php-src +# ============================================================================== + +# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +# TEMPLATE OVERVIEW & USAGE NOTES +# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +# • TEMPLATE TYPE: LANGUAGE-SPECIFIC TEMPLATE +# • PURPOSE: PHP development patterns for Composer dependencies, cache files, and runtime artifacts +# • DESIGN PHILOSOPHY: Modular — combine with common templates +# • COMBINATION GUIDANCE: Must combine with common/security.gitignore for sensitive data protection +# • SECURITY CONSIDERATIONS: No security patterns included — add common/security.gitignore +# • BEST PRACTICES: Review patterns before use, test with git check-ignore, customize for your project +# • OFFICIAL SOURCES: PHP documentation and community best practices + + +# •••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• +# BUILD ARTIFACTS & DISTRIBUTION +# •••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• + + +# •••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• +# DEPENDENCY MANAGEMENT & PACKAGE CACHE +# •••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• + +vendor/ + +# •••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• +# DEVELOPMENT & RUNTIME ARTIFACTS +# •••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• + +!var/cache/.gitkeep +!var/logs/.gitkeep +!var/sessions/.gitkeep +.php-built-in-web-server.pid +.php_cs.cache +.phpstan.cache +.psalm.cache +php_errors.log +var/cache/* +var/logs/* +var/sessions/* +xdebug.log + +# •••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• +# LANGUAGE-SPECIFIC PATTERNS +# •••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• + +.pdepend/ +.phpcbf/ +.phpcpd/ +.phpcs/ +.phpdcd/ +.phploc/ +.phpmd/ +.phpmetrics/ +.phpstan/ +.psalm/ +docs/ +phpdoc/ +sess_* +uploads/ + +# •••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• +# TESTING & QUALITY ASSURANCE +# •••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• + +.phpunit.cache +.phpunit.result.cache + +# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +# TEMPLATE CUSTOMIZATION & BEST PRACTICES +# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +# 1. REVIEW: Examine all patterns before use +# 2. CUSTOMIZE: Adapt to your project's specific structure +# 3. TEST: Use `git check-ignore` to verify patterns +# 4. SECURE: Always protect sensitive data and credentials +# 5. UPDATE: Review periodically as technology evolves + +# For comprehensive coverage, consider combining with: +# - common/security.gitignore (REQUIRED — this template has no security patterns) +# - common/cache.gitignore +# - common/build.gitignore +# - common/logs.gitignore +# - ides/*.gitignore +# - os/*.gitignore +# +# EXAMPLE COMBINATION: +# cat languages/php.gitignore \ +# common/security.gitignore \ +# common/cache.gitignore \ +# common/build.gitignore \ +# common/logs.gitignore \ +# ides/visual-studio-code.gitignore | sort -u > .gitignore