Skip to main content

Lang Php

Navigate, test, and lint PHP via composer tools.

Skill metadata​

SourceBundled (installed by default)
Pathskills/software-development/lang-php
Version1.1.0
AuthorVibeOS
LicenseMIT
Platformslinux, macos, windows

Reference: full SKILL.md​

info

The following is the complete skill definition that VibeOS loads when this skill is triggered. This is what the agent sees as instructions when the skill is active.

PHP Language Pack Skill

Drive PHP work with the project index and standard CLI recipes. LSP hint: phpactor (editor-side when applicable). Zero new core tools.

What this language is (beginner)​

Классический язык веба. На PHP до сих пор работает огромная доля сайтов (WordPress, Laravel).

Лучше всего для:

  • классические сайты и CMS (WordPress)
  • бизнес-веб на Laravel / Symfony
  • хостинг-friendly серверный рендер HTML
  • поддержка legacy-интернет-проектов

When to Use​

Выбирай этот pack, если:

  • репозиторий уже на Composer / Laravel / WordPress
  • нужен быстрый серверный сайт на дешёвом хостинге
  • пользователь просит PHP/Laravel явно

Manifests (автодетект репозитория): composer.json

Обычно рядом: Vue/React фронт; MySQL/Postgres.

См. также skill choose-language-pack, если цель ещё не ясна.

When NOT to use​

  • новый SPA/SSR продукт с богатым UI → TypeScript
  • API-first + ML → Python
  • высоконагруженные сервисы → Go / Rust

Prerequisites​

vibeos pack apply lang-php --apply
vibeos pack apply project-intelligence --apply

How to Run​

vibeos project index build
composer test # or phpunit
composer lint # project-specific

Quick Reference​

GoalCommand
Apply packvibeos pack apply lang-php --apply
Doctorvibeos language doctor php
Primary testcomposer test
Choose guideskill choose-language-pack

Procedure​

  1. Если язык ещё не выбран для нового проекта — сначала choose-language-pack.
  2. Work from the project root that matches pack manifests.
  3. Index query → read_file → edit → path-scoped tests when iterating.
  4. Prefer the package manager / toolchain already locked in the repo.
  5. Explain non-obvious toolchain choices in plain language for the user.

Pitfalls​

  • Prefer vendor/bin tools from the project, not global PHPUnit.
  • Do not invent core tools.
  • Do not invent core tools; stay on terminal + read_file + index CLI.

Verification​

vibeos language doctor php
composer test || ./vendor/bin/phpunit