agnesoft/agdb/php-composer-setup
Claude Code and agent skill by agnesoft/agdb
- community
Checking that the SKILL.md file is still in the repository.
Install PHP and Composer, verify they are available in PATH, and confirm the PHP tooling required by this repository works. Use this when PHP or Composer are missing, or when commands under agdb_api/php fail because the environment is not set up.
Install
npx vskill@latest install agnesoft/agdb/php-composer-setupSKILL.md
PHP and Composer Setup
Use this skill when the workspace needs PHP and Composer installed or verified before running commands in agdb_api/php.
Repository context:
- The PHP API client lives in
agdb_api/php. - Common PHP validation commands in this repository are:
cd agdb_api/php/ && ./ci.sh coveragecd agdb_api/php/ && ./ci.sh analysecd agdb_api/php/ && ./ci.sh format
Goals
- Detect whether PHP and Composer are already installed.
- Install missing tools using the most appropriate package manager for the current OS.
- Verify that both tools are available in
PATH. - Confirm that the repository's PHP tooling can run.
General procedure
- Detect the operating system and check whether
phpandcomposerare already available. - Prefer the native package manager for the OS.
- Do not reinstall tools that are already working unless the user explicitly asks for a version change.
- If installation updates
PATH, tell the user a new terminal might be required and re-run verification. - After installation, verify both binaries before attempting repository commands.
- If a command requires elevated privileges, explain that clearly before running it.
Verification commands
Run these first:
php --versioncomposer --version
If both succeed, move directly to repository verification.
Windows
Preferred package manager order:
wingetchoco
Suggested commands:
- Check for
winget:winget --version - Install PHP with winget:
winget install --id PHP.PHP.8.4 --source winget - Install Composer with winget:
winget install --id Composer.Composer --source winget - Install PHP with Chocolatey:
choco install php - Install Composer with Chocolatey:
choco install composer
If the exact winget package ID changes, search for it with:
winget search phpwinget search composer
After installation, re-run:
php --versioncomposer --version
If the current shell still does not see the binaries, open a new terminal and verify again.
Linux
Prefer the system package manager. Typical commands include:
- Debian or Ubuntu:
sudo apt update && sudo apt install -y php-cli composer - Fedora:
sudo dnf install -y php-cli composer - Arch:
sudo pacman -Sy php composer
After installation, re-run:
php --versioncomposer --version
macOS
Prefer Homebrew if available:
- Check for Homebrew:
brew --version - Install PHP:
brew install php - Install Composer:
brew install composer
After installation, re-run:
php --versioncomposer --version
Repository verification
Once PHP and Composer are available, verify the repository setup with the least expensive relevant command first.
Recommended order:
cd agdb_api/php/ && ./ci.sh formatcd agdb_api/php/ && ./ci.sh analysecd agdb_api/php/ && ./ci.sh coverage
Choose the command that best matches the user's goal. If the user only asked for installation, stop after binary verification unless they want a repo-level check.
Operating rules
- Prefer detection before installation.
- Prefer non-destructive verification before long-running checks.
- Report exact installation blockers instead of guessing.
- If package installation is not possible in the current environment, tell the user what command they need to run locally.
- When verification fails, distinguish between missing system tools and repository-level PHP dependency problems.
Example invocations
/php-composer-setup windows/php-composer-setup windows using winget/php-composer-setup verify php tooling for agdb_api/php/php-composer-setup linux/php-composer-setup macos with Homebrew
Security
- Security scanPassed, 93 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/php-composer-setup/SKILL.md
Popularity
- Repository stars
- 137
- Repository forks
- 7
- 7-day trend score
- 25
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/agnesoft/agdb/php-composer-setup)